[Zope] ZMySQLDA/Navigator startup error

working4aliving working4aliving@hotmail.com
Wed, 21 Aug 2002 13:08:46 -0400


I had to uninstall python 2.2 and install 2.1 to get this to work.

----- Original Message -----
From: <wayne@wayneconnolly.com>
To: <dieter@handshake.de>
Cc: <zope@zope.org>
Sent: Monday, August 19, 2002 9:54 PM
Subject: Re: [Zope] ZMySQLDA/Navigator startup error


> Deiter,
>
> I followed this procedure and ended up recieving the
> following error. It basically says that I dont have the
> right version of the python installed. I have python2.2
> installed. I unistalled zope-zmysqlda-2.0.8 and the
> py-MySQLdb-0.9.1 and then reinstalled
> zope-zmysqlda-2.0.8. This installs the correct version
> of required packages.. It should work...any idea's?
>
> WARNING: Python C API version mismatch for module
> _mysql:
>   This Python has API version 1010, module _mysql has
> version 1011.
> ------
> 2002-08-20T01:45:30 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: _mysql: init failed
>
>
> *************************************************
>
> On Mon, 19 August 2002, Dieter Maurer wrote:
>
> >
> > wayne@wayneconnolly.com writes:
> >  &gt; ...
> >  &gt;
> >
> /usr/local/www/Zope/lib/python/Products/ZMySQLDA/db.py,
> >  &gt; line 89, in ?
> >  &gt; ImportError: No module named _mysql
> > It does not find the &quot;_mysql&quot; shared object.
> >
> > Ensure that it can be found via the PYTHONPATH (search
> > the Python documentation,
> > when you do not know what this is).
> > Note that &quot;z2.py&quot; adds its
> &quot;lib/python&quot; folder to
> > Python's search path.
> >
> > Thus, if you put &quot;_mysql.so&quot; (this might
> also be
> > &quot;_mysqlmodule.so&quot;)
> > inside &quot;/usr/local/www/Zope/lib/python&quot;, if
> will be
> > found.
> >
> > You can also use a symbolic link rather than copying
> > &quot;_mysql.so&quot;.
> >
> >
> > Dieter
>
> _______________________________________________
> 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 )
>