[Zope] Connecting Mysql

Kevin Carlson khcarlso@bellsouth.net
Wed, 8 Jan 2003 12:54:08 -0500


Try moving the files you mentioned in item 3 to C:\Program
Files\proton\lib\python

It looks to me as if your zope instance is running one version of python and
your mysql files are in another.  I say this because you have a
c:\zope\lib\python directory and you also have the other one mentioned
above.  It appears that ZMySQLDA is in the right place so I'd try moving all
those files to  the directory above.

Hope that helps,

Kevin

-----Original Message-----
From: McDonnell, Larry [mailto:lmcdonnell@protonenergy.com]
Sent: Wednesday, January 08, 2003 12:16 PM
To: Kevin Carlson; McDonnell, Larry; 'Zope@Zope. Org' (E-mail)
Subject: RE: [Zope] Connecting Mysql


Hi,

I am still having a problem. On the SourceForge site, they said to do the
following:

1) Installed Python 2.1
==========================================
2) Installed MySQLdb with the Windows installer
==========================================
3) Coppied the following files from my Python 2.1 directory to
c:\zope\lib\python:
CompatMysqldb.py
CompatMysqldb.pyc
CompatMysqldb.pyo
_mysql.pyd
_mysql_exceptions.py
_mysql_exceptions.pyc
_mysql_exceptions.pyo
MySQLdb (the entire directory)
==========================================
4) Installed ZMySQLDA

I did this and still have the same error. What am I missing or do I have
things in the wrong place.
I put ZMySQLDA in this path C:\Program
Files\proton\lib\python\Products\ZMySQLDA. I know it must be just one thing
wrong. Thanks.

-----Original Message-----
From: Kevin Carlson [mailto:khcarlso@bellsouth.net]
Sent: Tuesday, January 07, 2003 4:04 PM
To: McDonnell, Larry; 'Zope@Zope. Org' (E-mail)
Subject: RE: [Zope] Connecting Mysql


If you haven't installed MySQL-Python you need to do that.  You can get that
on sourceforge at:

http://sourceforge.net/project/showfiles.php?group_id=22307&release_id=10289
3

Kevin

-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
McDonnell, Larry
Sent: Tuesday, January 07, 2003 11:42 AM
To: 'Zope@Zope. Org' (E-mail)
Subject: [Zope] Connecting Mysql



Hi,

I am trying to install the Mysql Zope adaptor but I get this message:

2003-01-07T09:26:16 ERROR(200) Zope Could not import Products.ZMySQLDA
Traceback (innermost last):
  Module OFS.Application, line 541, in import_product
  Module Products.ZMySQLDA, line 106, in ?
  Module Products.ZMySQLDA.DA, line 108, in ?
  Module Products.ZMySQLDA.db, line 106, in ?
ImportError: No module named MySQL

I have the MySQLmodule.so in the following path
..\usr\lib\python2.1\site-packages. Any ideas? Thanks.


Larry McDonnell

Proton Energy Systems
10 Technology Drive
Wallingford, CT 06492
(203) 678-2181
Email:lmcdonnell@protonenergy.com
www.protonenergy.com


_______________________________________________
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 )