[Zope] ZMySQLDA/Navigator startup error

wayne@wayneconnolly.com wayne@wayneconnolly.com
Mon, 19 Aug 2002 18:54:03 -0700 (PDT)


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:
>  > ...
>  >
>
/usr/local/www/Zope/lib/python/Products/ZMySQLDA/db.py,
>  > line 89, in ?
>  > ImportError: No module named _mysql
> It does not find the "_mysql" 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 "z2.py" adds its
"lib/python" folder to
> Python's search path.
> 
> Thus, if you put "_mysql.so" (this might
also be
> "_mysqlmodule.so")
> inside "/usr/local/www/Zope/lib/python", if
will be
> found.
> 
> You can also use a symbolic link rather than copying
> "_mysql.so".
> 
> 
> Dieter

  (`'·.¸(`'·.¸'Ô'¸.·'´)¸.·'´) 
 «´·.¸¸.·´£A¥GØ´·.¸¸.·`»
www.wayneconnolly.com
  «¸.·´`·(¸.·-·.¸)·´`·.¸»
  (¸.·'´(¸.·'´  `'·.¸)`'·.¸)