Note that there are some explanatory texts on larger screens.

plurals
  1. POZopeskel ImportError: cannot import name BasicNamespace
    primarykey
    data
    text
    <p>I have zopeskel 2.21.2 in my virtualenv python and it works fine. Meanwhile, I also have the same version of zopeskel in my Plone buildout (located in <code>~/.buildout/eggs</code>). However, it does not work. Running <code>zopeskel --list</code> throws the following error:</p> <pre><code>ImportError: cannot import name BasicNamespace </code></pre> <p>An advice from this <a href="http://collective-docs.readthedocs.org/en/latest/troubleshooting/exceptions.html#from-zopeskel-basic-namespace-import-basicnamespace" rel="nofollow">link</a> says to remove the egg. I have removed the egg as well as the cached package in ~/.buildout/cache/dist/ and ran buildout again. However, the problem persists. The funny thing is that the paster script in the same buildout is working.</p> <p>My zopeskel section in buildout.cfg looks like below:</p> <pre><code>[zopeskel] recipe = zc.recipe.egg eggs = ZopeSkel Paste PasteDeploy PasteScript zopeskel.dexterity ${instance:eggs} </code></pre> <p>Some package versions used in my buildout:</p> <pre><code>'/home/user/.buildout/eggs/Paste-1.7.5.1-py2.6.egg', '/home/user/.buildout/eggs/distribute-0.6.24-py2.6.egg', '/home/user/.buildout/eggs/PasteDeploy-1.3.4-py2.6.egg', '/home/user/.buildout/eggs/PasteScript-1.7.4.2-py2.6.egg', </code></pre> <p>Full traceback:</p> <pre><code>[user@rizal myplone.site]$ ./bin/zopeskel --list Traceback (most recent call last): File "./bin/zopeskel", line 346, in &lt;module&gt; import zopeskel.zopeskel_script File "/home/user/.buildout/eggs/ZopeSkel-2.21.2-py2.6.egg/zopeskel/__init__.py", line 2, in &lt;module&gt; from zopeskel.basic_namespace import BasicNamespace File "/home/user/.buildout/eggs/ZopeSkel-2.21.2-py2.6.egg/zopeskel/basic_namespace.py", line 2, in &lt;module&gt; from zopeskel.vars import var, DottedVar, StringVar, BooleanVar, TextVar File "/home/user/.buildout/eggs/ZopeSkel-2.21.2-py2.6.egg/zopeskel/vars.py", line 2, in &lt;module&gt; from paste.script.templates import var as base_var File "/home/user/.buildout/eggs/PasteScript-1.7.4.2-py2.6.egg/paste/script/templates.py", line 6, in &lt;module&gt; import copydir File "/home/user/.buildout/eggs/PasteScript-1.7.4.2-py2.6.egg/paste/script/copydir.py", line 4, in &lt;module&gt; import pkg_resources File "/home/user/.buildout/eggs/distribute-0.6.24-py2.6.egg/pkg_resources.py", line 2727, in &lt;module&gt; add_activation_listener(lambda dist: dist.activate()) File "/home/user/.buildout/eggs/distribute-0.6.24-py2.6.egg/pkg_resources.py", line 700, in subscribe callback(dist) File "/home/user/.buildout/eggs/distribute-0.6.24-py2.6.egg/pkg_resources.py", line 2727, in &lt;lambda&gt; add_activation_listener(lambda dist: dist.activate()) File "/home/user/.buildout/eggs/distribute-0.6.24-py2.6.egg/pkg_resources.py", line 2230, in activate map(declare_namespace, self._get_metadata('namespace_packages.txt')) File "/home/user/.buildout/eggs/distribute-0.6.24-py2.6.egg/pkg_resources.py", line 1827, in declare_namespace _handle_ns(packageName, path_item) File "/home/user/.buildout/eggs/distribute-0.6.24-py2.6.egg/pkg_resources.py", line 1797, in _handle_ns loader.load_module(packageName); module.__path__ = path File "/usr/lib/python2.6/pkgutil.py", line 238, in load_module mod = imp.load_module(fullname, self.file, self.filename, self.etc) File "/home/user/.buildout/eggs/ZopeSkel-2.21.2-py2.6.egg/zopeskel/__init__.py", line 2, in &lt;module&gt; from zopeskel.basic_namespace import BasicNamespace ImportError: cannot import name BasicNamespace </code></pre> <p>What could be wrong?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload