Zope normally does use its own python (in Zopes bin directory) You have to symlink (or copy) _mysql.?? into its python path. To learn what directories are scanned by python you can ask python as follows: robert@extranet:~/zope> cd bin robert@extranet:~/zope/bin> python Python 2.2 (#1, Mar 26 2002, 15:46:04) [GCC 2.95.3 20010315 (SuSE)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import sys sys.path ['', '/usr/lib/python2.2', '/usr/lib/python2.2/plat-linux2', '/usr/lib/python2.2/lib-tk', '/usr/lib/python2.2/lib-dynload', '/usr/lib/python2.2/site-packages', '/usr/lib/python2.2/site-packages/PIL']
Robert ----- Original Message ----- From: <wayne@wayneconnolly.com> To: <allison@sumeru.stanford.EDU>; <zope@zope.org> Sent: Monday, August 19, 2002 7:30 AM Subject: Re: [Zope] ZMySQLDA/Navigator startup error
Dennis,
Thanks for this. I tried it by uninstalling zope-zmysqlda-2.0.8.tgz and then py-MySQLdb-0.9.1.tgz. After this i re-installed both.
Unfortunately I get the same error...
Any idea's?
Wayne
--- In zope@y..., Dennis Allison <allison@s...> wrote:
When I start up Zope 2.5.1_ on freebsd I recieve the following unnerving errors. Can you please help me?
Thanks in advance,
Wayne ------ 2002-08-19T03:28:14 ERROR(200) Zope Could not import Products.ZMySQLDA Traceback (innermost last): File /usr/local/www/Zope/lib/python/OFS/Application.py,
line
531, in import_product File
/usr/local/www/Zope/lib/python/Products/ZMySQLDA/__init__.py, line 91, in ?
File
/usr/local/www/Zope/lib/python/Products/ZMySQLDA/DA.py,
line 92, in ? File
/usr/local/www/Zope/lib/python/Products/ZMySQLDA/db.py,
line 89, in ? ImportError: No module named _mysql
Looks like ZMySQLDA is missing MySQL-python-0.9.1 which it uses to interface with MySQL. Get the package and install it in the Python you use for Zope.
_______________________________________________ Zope maillist - Zope@z... http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )