[Zope] RE: Zope and MySQL on Windows

Deb B. intranetdeb@yahoo.com
Tue, 14 Jan 2003 11:41:56 -0800 (PST)


--0-1070981375-1042573316=:24690
Content-Type: text/plain; charset=us-ascii


Well, I installed MySQL-python 0.9.1 (because I'm running Python 2.1.x with my Zope installation) and extracted the ZMySQLDA into the products directory and for the ZMySQLDA product (which is broken), I get the following error:
Product at  /Control_Panel/Products/ZMySQLDA Import Traceback
Traceback (most recent call last):  File "D:\IntranetSite\lib\python\OFS\Application.py", line 531, in import_product    product=__import__(pname, global_dict, global_dict, silly)  File "D:\IntranetSite\lib\python\Products\ZMySQLDA\__init__.py", line 91, in ?    import DA  File "D:\IntranetSite\lib\python\Products\ZMySQLDA\DA.py", line 92, in ?    from db import DB  File "D:\IntranetSite\lib\python\Products\ZMySQLDA\db.py", line 99, in ?    from MySQLdb.converters import conversionsImportError: No module named MySQLdb.converters

This is the problem I recall encountering when I attempted these installs several weeks ago and gave up. Now, it should be noted that during the MySQL-python install, it did find an existence of Python 2.1 in the registry BUT wouldn't let me indicate an installation directory (that field was grayed out). I accepted the default (whatever that is) and continued the installation. My ZOPE installation is on DRIVE D: and not C: on a W98 computer (interim solution until the new server comes). Does this make any difference or have any impact on ZMySQLDA not finding the MySQLdb.converters module? How do I fix this installation...?
Thanks.
 
 Chris Withers <chrisw@nipltd.com> wrote:Deb B. wrote:
> I am going through the documentation for MySQL-python and aren't there a 
> few more steps to the installation? 

I didn't do anything special and it worked for me...
Dunno why you're looking at setup.py if you're using the binary installer.

Chris



---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--0-1070981375-1042573316=:24690
Content-Type: text/html; charset=us-ascii

<P>Well, I installed MySQL-python 0.9.1 (because I'm running Python 2.1.x with my Zope installation) and extracted the ZMySQLDA into the products directory and for the ZMySQLDA product (which is broken), I get the following error:
<P><STRONG>Product at </STRONG><A href="http://intranet:8080/manage_workspace"><STRONG>&nbsp;/</STRONG></A><A href="http://intranet:8080/Control_Panel/manage_workspace"><STRONG>Control_Panel</STRONG></A><STRONG>/</STRONG><A href="http://intranet:8080/Control_Panel/Products/manage_workspace"><STRONG>Products</STRONG></A><STRONG>/</STRONG><A class=strong-link href="http://intranet:8080/Control_Panel/Products/ZMySQLDA/manage_workspace"><STRONG>ZMySQLDA</STRONG></A><STRONG> </STRONG>
<H3>Import Traceback</H3><PRE>Traceback (most recent call last):
  File "D:\IntranetSite\lib\python\OFS\Application.py", line 531, in import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File "D:\IntranetSite\lib\python\Products\ZMySQLDA\__init__.py", line 91, in ?
    import DA
  File "D:\IntranetSite\lib\python\Products\ZMySQLDA\DA.py", line 92, in ?
    from db import DB
  File "D:\IntranetSite\lib\python\Products\ZMySQLDA\db.py", line 99, in ?
    from MySQLdb.converters import conversions
ImportError: No module named MySQLdb.converters
</PRE>
<P>This is the problem I recall encountering when I attempted these installs several weeks ago and gave up. Now, it should be noted that during the MySQL-python install, it did find an existence of Python 2.1 in the registry BUT wouldn't let me indicate an installation directory (that field was grayed out). I accepted the default (whatever that is) and continued the installation. My ZOPE installation is on DRIVE D: and not C: on a W98 computer (interim solution until the new server comes). Does this make any difference or have any impact on ZMySQLDA not finding the MySQLdb.converters module? How do I fix this installation...?
<P>Thanks.
<P>&nbsp;
<P>&nbsp;<B><I>Chris Withers &lt;chrisw@nipltd.com&gt;</I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Deb B. wrote:<BR>&gt; I am going through the documentation for MySQL-python and aren't there a <BR>&gt; few more steps to the installation? <BR><BR>I didn't do anything special and it worked for me...<BR>Dunno why you're looking at setup.py if you're using the binary installer.<BR><BR>Chris<BR></BLOCKQUOTE><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Yahoo! Mail Plus</a> - Powerful. Affordable. <a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Sign up now</a>
--0-1070981375-1042573316=:24690--