Hello, I get an error when I want to create a backup with repozo.py. Traceback (most recent call last): File "./repozo.py", line 74, in ? from ZODB.FileStorage import FileStorage ImportError: No module named ZODB.FileStorage I already searched with google for a solution. I found that it could be a problem with PYTHONPATH, but I've set this path already. What else can be wrong ? Regards, Martin Koekenberg
On 20.03.2006, at 07:45, Martin Koekenberg wrote:
Hello,
I get an error when I want to create a backup with repozo.py.
Traceback (most recent call last):
File "./repozo.py", line 74, in ?
from ZODB.FileStorage import FileStorage
ImportError: No module named ZODB.FileStorage
I already searched with google for a solution. I found that it could be a problem with PYTHONPATH, but I’ve set this path already. are you sure, looks as if the path is not correct
you have to set it to <your-zope-installation-directory>/lib/python just startup the python interpreter and type import sys; sys.path then it should print the path defined above, if not something is wrong
What else can be wrong ?
Regards,
Martin Koekenberg
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Hmm, There could be something wrong. I get this: ['', '/usr/lib/python23.zip', '/usr/lib/python2.3', '/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk', '/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages', '/usr/lib/python2.3/site-packages/PIL', '/usr/lib/python2.3/site-packages/gtk-2.0'] How do I set the right path in Python ? Regards, Martin Koekenberg _____ Van: zope-bounces@zope.org [mailto:zope-bounces@zope.org] Namens Bernd Dorn Verzonden: maandag 20 maart 2006 8:49 Aan: [Zope] List Mailing Onderwerp: Re: [Zope] error with repozo.py On 20.03.2006, at 07:45, Martin Koekenberg wrote: Hello, I get an error when I want to create a backup with repozo.py. Traceback (most recent call last): File "./repozo.py", line 74, in ? from ZODB.FileStorage import FileStorage ImportError: No module named ZODB.FileStorage I already searched with google for a solution. I found that it could be a problem with PYTHONPATH, but I've set this path already. are you sure, looks as if the path is not correct you have to set it to <your-zope-installation-directory>/lib/python just startup the python interpreter and type import sys; sys.path then it should print the path defined above, if not something is wrong What else can be wrong ? Regards, Martin Koekenberg _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Martin Koekenberg wrote:
What else can be wrong ?
Just guessing, but could it be that you have not "exported" the PYTHONPATH variable? E.g.: Without exporting: $ PYTHONPATH="/foo" $ python -c "import sys; print sys.path" ['', '/usr/lib/python24.zip', '/usr/lib/python2.4', ... '/usr/lib/python2.4/site-packages/gtk-2.0'] Setting on the command line: $ PYTHONPATH="/bar" python -c "import sys; print sys.path" ['', '/bar', '/usr/lib/python24.zip', '/usr/lib/python2.4', ... '/usr/lib/python2.4/site-packages/gtk-2.0'] Exporting: $ export PYTHONPATH $ python -c "import sys; print sys.path" ['', '/foo', '/usr/lib/python24.zip', '/usr/lib/python2.4', ... '/usr/lib/python2.4/site-packages/gtk-2.0'] Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEHqv1+gerLs4ltQ4RAgP0AKCkLty9VOODcttERF7Dqtt9201vvgCfc6JZ EDK+lMzz33NVr9p8HFc+81w= =yvH+ -----END PGP SIGNATURE-----
Guys, zope@zope.org is a *plain text* list, please stop posting html... Chris Martin Koekenberg wrote:
Hmm,
There could be something wrong.
I get this:
['', '/usr/lib/python23.zip', '/usr/lib/python2.3', '/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk', '/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages', '/usr/lib/python2.3/site-packages/PIL', '/usr/lib/python2.3/site-packages/gtk-2.0']
How do I set the right path in Python ?
Regards,
Martin Koekenberg
_____
Van: zope-bounces@zope.org [mailto:zope-bounces@zope.org] Namens Bernd Dorn Verzonden: maandag 20 maart 2006 8:49 Aan: [Zope] List Mailing Onderwerp: Re: [Zope] error with repozo.py
On 20.03.2006, at 07:45, Martin Koekenberg wrote:
Hello,
I get an error when I want to create a backup with repozo.py.
Traceback (most recent call last):
File "./repozo.py", line 74, in ?
from ZODB.FileStorage import FileStorage
ImportError: No module named ZODB.FileStorage
I already searched with google for a solution. I found that it could be a problem with PYTHONPATH, but I've set this path already.
are you sure, looks as if the path is not correct
you have to set it to <your-zope-installation-directory>/lib/python
just startup the python interpreter and type
import sys; sys.path
then it should print the path defined above, if not something is wrong
What else can be wrong ?
Regards,
Martin Koekenberg
_______________________________________________
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )
------------------------------------------------------------------------
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (4)
-
Bernd Dorn -
Chris Withers -
Martin Koekenberg -
Tres Seaver