I just deiscover CKAn and I am trying to install it on a Ubuntu 14.04. I install it from source.
AT a step we have to install the Python module that CKAn requires.
pip install -r /usr/lib/ckan/default/src/ckan/requirements.txt
I first got an error
Command python setup.py egg_info failed with error code 1 in /usr/lib/ckan/default/build/html5lib
I solved it by upgrading setuptools
pip install --upgrade setuptools
But now I got a new error with pbr and I do not know what to do
Command python setup.py egg_info failed with error code 1 in /usr/lib/ckan/default/build/pbr
Before ending the installation and displaying that error, I got that message:
Downloading/unpacking pbr==0.11.0 (from -r /usr/lib/ckan/default/src/ckan/requirements.txt (line 27)) Running setup.py egg_info for package pbr Traceback (most recent call last): File "", line 14, in File "/usr/lib/ckan/default/build/pbr/setup.py", line 22, in **util.cfg_to_args()) File "pbr/util.py", line 261, in cfg_to_args wrap_commands(kwargs) File "pbr/util.py", line 482, in wrap_commands for cmd, _ in dist.get_command_list(): File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/setuptools/dist.py", line 528, in get_command_list cmdclass = ep.resolve() File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pkg_resources/init.py", line 2255, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "pbr/testr_command.py", line 47, in from testrepository import commands ImportError: No module named testrepository Complete output from command python setup.py egg_info: Traceback (most recent call last):
File "", line 14, in
File "/usr/lib/ckan/default/build/pbr/setup.py", line 22, in
**util.cfg_to_args())File "pbr/util.py", line 261, in cfg_to_args
wrap_commands(kwargs)File "pbr/util.py", line 482, in wrap_commands
for cmd, _ in dist.get_command_list():File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/setuptools/dist.py", line 528, in get_command_list
cmdclass = ep.resolve()File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/pkg_resources/init.py", line 2255, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)File "pbr/testr_command.py", line 47, in
from testrepository import commandsImportError: No module named testrepository
Someone can help me to complete the installation? Many thank for your help
I ran into this same error trying to install something else with pip (
httplib2.ca_certs_locater-0.2.0IIRC).My issue turned out to be caused by a really old version of
pbr, which happened to be the same as the one that's blowing up for you - 0.11.0. In my case, I had what I can only assume was garbage left over from an old installation of something:/usr/local/lib/python2.7/dist-packages/pbr-0.11.0-py2.7.egg.In my case, since it was my application's
requirements.txtfile that was blowing up, I just addedpbr==1.10.0as a dependency and that fixed the problem. Runningpip install pbrwould also work.Also, I'm always in the habit of keeping pip itself up to date, so that might be worth trying too, though it wasn't able to prevent the error for me this time.