Re: [Zope3-Users] Problem importing zope modules from /usr/local/zope3Instance/lib/python/productname folder
On Oct 7, 2005, at 12:43 PM, Christian Lueck wrote: Ronald L Chichester wrote: In chapter 4 of Philipp's book, he runs the python interpreter from the command line and imports several zope modules. I tried doing that from /usr/local/zope3Instance/lib/python/productX but python said the zope modules were unavailable. Is there some trick to this? Did I miss a configuration? Note, the instance of Zope3 was/is running properly. You have to set the PYTHONPATH environment variable, see page 9 of Philipp's book. Kind regards, Christian Note that you can enter debug mode from the python interpreter for your zope instance. As mentioned above, you need to have your PYTHONPATH set to include the path to your /lib/python dir. Then just do this: cd python > > > from zope.app.debug import Debugger > > > debugger = Debugger('var/Data.fs', 'etc/site.zcml')" > > > root = debugger.root() and then you're off and running... For more details, see http://svn.zope.org/Zope3/trunk/doc/DEBUG.txt d ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problem importing zope modules from /usr/local/zope3Instance/lib/python/productname folder
Hello Ronald, I would say that either you have to put your zope source in the PYTHONPATH or copy/link the same into the site-packages folder. Friday, October 7, 2005, 7:28:08 PM, you wrote: > In chapter 4 of Philipp's book, he runs the python interpreter from > the command line and imports several zope modules. I tried doing that > from /usr/local/zope3Instance/lib/python/productX but python said the > zope modules were unavailable. Is there some trick to this? Did I > miss a configuration? > Note, the instance of Zope3 was/is running properly. -- Best regards, Adammailto:[EMAIL PROTECTED] -- Quote of the day: If Presidents don't do it to their wives, they do it to the country. - Mel Brooks ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problem importing zope modules from /usr/local/zope3Instance/lib/python/productname folder
You have to set the PYTHONPATH environment variable, see page 9 of Philipp's book. Kind regards, Christian Ronald L Chichester wrote: > In chapter 4 of Philipp's book, he runs the python interpreter from > the command line and imports several zope modules. I tried doing that > from /usr/local/zope3Instance/lib/python/productX but python said the > zope modules were unavailable. Is there some trick to this? Did I > miss a configuration? > > Note, the instance of Zope3 was/is running properly. > ___ > Zope3-users mailing list > Zope3-users@zope.org > http://mail.zope.org/mailman/listinfo/zope3-users > > ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Problem importing zope modules from /usr/local/zope3Instance/lib/python/productname folder
In chapter 4 of Philipp's book, he runs the python interpreter from the command line and imports several zope modules. I tried doing that from /usr/local/zope3Instance/lib/python/productX but python said the zope modules were unavailable. Is there some trick to this? Did I miss a configuration? Note, the instance of Zope3 was/is running properly. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users