[ZODB-Dev] Error when running zeopack (zeopack.py) from command line ("ImportError: No module named ZEO.ClientStorage")

Andreas Jung lists at zopyx.com
Fri Feb 17 15:28:37 UTC 2012


 PYTHONPATH=/soft/Plone/Zope-2.10.9-final-py2.4/lib/python/ZEO

This is wrong. You must not include the package itself into the PATH
(that's why it is call path). ..../lib/python is good enough

-aj

Ricardo Dias Marques wrote:
> Hi all,
>
> I'm getting an error when trying to run zeopack (zeopack.py) from the
> command line. This is a Linux server running the following "Zope
> Version": "Zope 2.10.9-final, python 2.4.6, linux2". The Plone version
> is 3.3.1
>
> The error message is "ImportError: No module named ZEO.ClientStorage".
> Here's my attempt to run the command:
>
> myhost:/soft/Plone/Zope-2.10.9-final-py2.4/lib/python/ZEO/scripts #
> /soft/Plone/Python-2.4/bin/python
> /soft/Plone/Zope-2.10.9-final-py2.4/lib/python/ZEO/scripts/zeopack.py
> Traceback (most recent call last):
>   File "/soft/Plone/Zope-2.10.9-final-py2.4/lib/python/ZEO/scripts/zeopack.py",
> line 33, in ?
>     from ZEO.ClientStorage import ClientStorage
> ImportError: No module named ZEO.ClientStorage
>
>
> I saw some threads about this error that suggested to set / expand the
> PYTHONPATH environment variable. I did not have that PYTHONPATH
> environment variable defined.  So, I tried to define that variable:
>
> myhost:# export
> PYTHONPATH=/soft/Plone/Zope-2.10.9-final-py2.4/lib/python/ZEO:/soft/Plone/Zope-2.10.9-final-py2.4/lib/python/ZEO/scripts
>
> myhost:# env | grep -i pythonpath
> PYTHONPATH=/soft/Plone/Zope-2.10.9-final-py2.4/lib/python/ZEO:/soft/Plone/Zope-2.10.9-final-py2.4/lib/python/ZEO/scripts
>
>
> ... but I still get the same "ImportError: No module named
> ZEO.ClientStorage" error message when trying to run again the command,
> event after having defined PYTHONPATH with the above values.  :(
>
>
> Could anyone give me some tips / pointers to what I'm doing wrong /
> should be doing instead, please?
>
>
> Thanks in advance!  :)
>
> Best wishes,
> Ricardo Dias Marques
> lists AT ricmarques DOT net
> Identi.ca / Twitter: @ricmarques
> _______________________________________________
> For more information about ZODB, see http://zodb.org/
>
> ZODB-Dev mailing list  -  ZODB-Dev at zope.org
> https://mail.zope.org/mailman/listinfo/zodb-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 324 bytes
Desc: not available
URL: <http://mail.zope.org/pipermail/zodb-dev/attachments/20120217/e13f484b/attachment.vcf>


More information about the ZODB-Dev mailing list