[ckan-dev] ImportError: No module named importlib.command

James Gardner james at 3aims.com
Tue Apr 12 12:23:02 UTC 2011


Hi Adria,

Before ckanext was split into multiple extensions it existed as a single 
package called "ckanext". David Read is continuing to work on moving 
things out of the old ckanext into extensions so that we can deprecate 
it. It looks like he created ckanext-importlib which you will most 
likely now need to install separately:

https://bitbucket.org/okfn/ckanext-importlib

Cheers,

James


On 12/04/11 13:12, Adrià Mercader wrote:
> Hi all,
> I'm getting this error multiple times when I try to run the
> ckanext-dgu tests (traceback follows):
>
> ImportError: No module named importlib.command
>
> Traceback (most recent call last):
>    File "/home/adria/dev/envs/ckan/bin/paster", line 8, in<module>
>      load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
>    File "/home/adria/dev/envs/ckan/lib/python2.6/site-packages/paste/script/command.py",
> line 83, in run
>      command = commands[command_name].load()
>    File "/home/adria/dev/envs/ckan/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
> line 1954, in load
>      entry = __import__(self.module_name, globals(),globals(), ['__name__'])
>    File "/home/adria/dev/envs/ckan/src/ckanext-dgu/ckanext/dgu/testtools/mock_drupal.py",
> line 6, in<module>
>      from ckanext.dgu.testtools.organisations import test_organisations, \
>    File "/home/adria/dev/envs/ckan/src/ckanext-dgu/ckanext/dgu/testtools/organisations.py",
> line 5, in<module>
>      from ckanext.dgu.command import XmlRpcCommand
>    File "/home/adria/dev/envs/ckan/src/ckanext-dgu/ckanext/dgu/command.py",
> line 1, in<module>
>      from ckanext.importlib.command import Command
> ImportError: No module named importlib.command
>
> I checked ckanext and there's no mention of importlib.
> Does anyone have a clue of what's going on?
>
> Thanks
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev





More information about the ckan-dev mailing list