[Zope-dev] MySQL-python-0.3.5 with ZMySQLDA
Mike Blake
Mike.Blake@cellnetwork.com
Wed, 4 Apr 2001 18:53:10 +0200
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C0BD27.BB53D673
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
>>> Traceback (innermost last):
>>> File C:\zopes\chikoon\lib\python\OFS\Application.py, line 536 in
import_products
>>> (Object: string)
>>> File C:\zopes\chikoon\lib\python\Products\ZMySQLA\__init__.py, line =
91,
in ?
>>> File C:\zopes\chikoon\lib\python\Products\ZMySQLA\DA.py, line 91, =
in ?
>>> File C:\zopes\chikoon\lib\python\Products\ZMySQLA\db.py, line 89, =
in ?
sorry, but I forgot to include the last line of the message:
>>> ImportError: No module named _mysql
--
[morcilla@ketden.com chikoon]$ whoami
------------------------------------------------------------
[whoami] >> Mike Blake >> Web Developer / CellNetwork, Spain
[e-mail] >> mike.blake@cellnetwork.com [icq] >> 103631268
[mobile] >> 678 642 392 [direct office phone] >> 91 761 4913
[office] >> Plaza Alonso Martinez 3, 4=AA Planta, 28004 Madrid
------------------------------------------------------------
-----Original Message-----
From: Mike Blake=20
Sent: mi=E9rcoles, 04 de abril de 2001 18:50
To: Zope-Dev (E-mail)
Cc: 'Phil Harris'
Subject: RE: [Zope-dev] MySQL-python-0.3.5 with ZMySQLDA=20
mike wrote:
>> I just tried a build of the MySQL-python-0.3.5 module and
>> I get a file not found error because I don't have a cl.exe,
>> which is apparently something I need to finish the build.
>> Does anyone know what I'm missing?
>> I have Python 2.0 and MySQL 3.23.33 on win2000
phil wrote:
> You need Microsoft Visual C (6.x?) to compile what you want.
Ok, I installed Microsoft Visual C++ from Studio 6, and=20
after I did a successful build and install of the
setup.py file for the MySQL-python-0.3.5
I installed it in a folder in my python directory:
C:\Python20\win32comext\MySQL-python-0.3.5
But the reason I was compiling this module is because it is
required for the installation of the ZMySQLDA database adaptor.
>>> Installation
>>>
>>> The Z MySQL database adapter uses the MySQLdb package. =20
>>> This must be installed before you can use the Z MySQL DA.
>>> Instructions on building the extension modules are given in the
>>> the README.txt file in the source directory.
Ok, I got this far, but I extract the ZMySQLDA to the=20
<zope-root>/lib/pyton/products directory, and the product doesn't
install properly. It appears broken in the products list.
Here is the error it gives on startup:
>>> Traceback (innermost last):
>>> File C:\zopes\chikoon\lib\python\OFS\Application.py, line 536 in
import_products
>>> (Object: string)
>>> File C:\zopes\chikoon\lib\python\Products\ZMySQLA\__init__.py, line =
91,
in ?
>>> File C:\zopes\chikoon\lib\python\Products\ZMySQLA\DA.py, line 91, =
in ?
>>> File C:\zopes\chikoon\lib\python\Products\ZMySQLA\db.py, line 89, =
in ?
Any ideas??? Is there something else besides the MySQLdb that=20
I must compile for the product to be successfully installed?
Thanks,
mike
--
[morcilla@ketden.com chikoon]$ whoami
------------------------------------------------------------
[whoami] >> Mike Blake >> Web Developer / CellNetwork, Spain
[e-mail] >> mike.blake@cellnetwork.com [icq] >> 103631268
[mobile] >> 678 642 392 [direct office phone] >> 91 761 4913
[office] >> Plaza Alonso Martinez 3, 4=AA Planta, 28004 Madrid
------------------------------------------------------------
------_=_NextPart_001_01C0BD27.BB53D673
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: [Zope-dev] MySQL-python-0.3.5 with ZMySQLDA </TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>>>> Traceback (innermost last):</FONT>
<BR><FONT SIZE=3D2>>>> File =
C:\zopes\chikoon\lib\python\OFS\Application.py, line 536 in =
import_products</FONT>
<BR><FONT SIZE=3D2>>>> (Object: =
string)</FONT>
<BR><FONT SIZE=3D2>>>> File =
C:\zopes\chikoon\lib\python\Products\ZMySQLA\__init__.py, line 91, in =
?</FONT>
<BR><FONT SIZE=3D2>>>> File =
C:\zopes\chikoon\lib\python\Products\ZMySQLA\DA.py, line 91, in =
?</FONT>
<BR><FONT SIZE=3D2>>>> File =
C:\zopes\chikoon\lib\python\Products\ZMySQLA\db.py, line 89, in =
?</FONT>
</P>
<P><FONT SIZE=3D2>sorry, but I forgot to include the last line of the =
message:</FONT>
<BR><FONT SIZE=3D2>>>> ImportError: No module named =
_mysql</FONT>
</P>
<P><FONT SIZE=3D2>--</FONT>
<BR><FONT SIZE=3D2>[morcilla@ketden.com chikoon]$ whoami</FONT>
<BR><FONT =
SIZE=3D2>------------------------------------------------------------</F=
ONT>
<BR><FONT SIZE=3D2>[whoami] >> Mike Blake >> Web Developer =
/ CellNetwork, Spain</FONT>
<BR><FONT SIZE=3D2>[e-mail] >> =
mike.blake@cellnetwork.com [icq] >> =
103631268</FONT>
<BR><FONT SIZE=3D2>[mobile] >> 678 642 392 [direct office phone] =
>> 91 761 4913</FONT>
<BR><FONT SIZE=3D2>[office] >> Plaza Alonso Martinez 3, 4=AA =
Planta, 28004 Madrid</FONT>
<BR><FONT =
SIZE=3D2>------------------------------------------------------------</F=
ONT>
</P>
<BR>
<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Mike Blake </FONT>
<BR><FONT SIZE=3D2>Sent: mi=E9rcoles, 04 de abril de 2001 18:50</FONT>
<BR><FONT SIZE=3D2>To: Zope-Dev (E-mail)</FONT>
<BR><FONT SIZE=3D2>Cc: 'Phil Harris'</FONT>
<BR><FONT SIZE=3D2>Subject: RE: [Zope-dev] MySQL-python-0.3.5 with =
ZMySQLDA </FONT>
</P>
<BR>
<P><FONT SIZE=3D2>mike wrote:</FONT>
<BR><FONT SIZE=3D2>>> I just tried a build of the =
MySQL-python-0.3.5 module and</FONT>
<BR><FONT SIZE=3D2>>> I get a file not found error because I =
don't have a cl.exe,</FONT>
<BR><FONT SIZE=3D2>>> which is apparently something I need to =
finish the build.</FONT>
<BR><FONT SIZE=3D2>>> Does anyone know what I'm missing?</FONT>
<BR><FONT SIZE=3D2>>> I have Python 2.0 and MySQL 3.23.33 on =
win2000</FONT>
</P>
<P><FONT SIZE=3D2>phil wrote:</FONT>
<BR><FONT SIZE=3D2>> You need Microsoft Visual C (6.x?) to compile =
what you want.</FONT>
</P>
<P><FONT SIZE=3D2>Ok, I installed Microsoft Visual C++ from Studio 6, =
and </FONT>
<BR><FONT SIZE=3D2>after I did a successful build and install of =
the</FONT>
<BR><FONT SIZE=3D2>setup.py file for the MySQL-python-0.3.5</FONT>
</P>
<P><FONT SIZE=3D2>I installed it in a folder in my python =
directory:</FONT>
<BR><FONT SIZE=3D2>C:\Python20\win32comext\MySQL-python-0.3.5</FONT>
</P>
<P><FONT SIZE=3D2>But the reason I was compiling this module is because =
it is</FONT>
<BR><FONT SIZE=3D2>required for the installation of the ZMySQLDA =
database adaptor.</FONT>
</P>
<P><FONT SIZE=3D2>>>> Installation</FONT>
<BR><FONT SIZE=3D2>>>></FONT>
<BR><FONT SIZE=3D2>>>> The Z MySQL database =
adapter uses the MySQLdb package. </FONT>
<BR><FONT SIZE=3D2>>>> This must be =
installed before you can use the Z MySQL DA.</FONT>
<BR><FONT SIZE=3D2>>>> Instructions on =
building the extension modules are given in the</FONT>
<BR><FONT SIZE=3D2>>>> the README.txt file =
in the source directory.</FONT>
</P>
<P><FONT SIZE=3D2>Ok, I got this far, but I extract the ZMySQLDA to the =
</FONT>
<BR><FONT SIZE=3D2><zope-root>/lib/pyton/products directory, and =
the product doesn't</FONT>
<BR><FONT SIZE=3D2>install properly. It appears broken in the products =
list.</FONT>
</P>
<P><FONT SIZE=3D2>Here is the error it gives on startup:</FONT>
</P>
<P><FONT SIZE=3D2>>>> Traceback (innermost last):</FONT>
<BR><FONT SIZE=3D2>>>> File =
C:\zopes\chikoon\lib\python\OFS\Application.py, line 536 in =
import_products</FONT>
<BR><FONT SIZE=3D2>>>> (Object: =
string)</FONT>
<BR><FONT SIZE=3D2>>>> File =
C:\zopes\chikoon\lib\python\Products\ZMySQLA\__init__.py, line 91, in =
?</FONT>
<BR><FONT SIZE=3D2>>>> File =
C:\zopes\chikoon\lib\python\Products\ZMySQLA\DA.py, line 91, in =
?</FONT>
<BR><FONT SIZE=3D2>>>> File =
C:\zopes\chikoon\lib\python\Products\ZMySQLA\db.py, line 89, in =
?</FONT>
</P>
<P><FONT SIZE=3D2>Any ideas??? Is there something else besides the =
MySQLdb that </FONT>
<BR><FONT SIZE=3D2>I must compile for the product to be successfully =
installed?</FONT>
</P>
<P><FONT SIZE=3D2>Thanks,</FONT>
</P>
<P><FONT SIZE=3D2>mike</FONT>
</P>
<P><FONT SIZE=3D2>--</FONT>
<BR><FONT SIZE=3D2>[morcilla@ketden.com chikoon]$ whoami</FONT>
<BR><FONT =
SIZE=3D2>------------------------------------------------------------</F=
ONT>
<BR><FONT SIZE=3D2>[whoami] >> Mike Blake >> Web Developer =
/ CellNetwork, Spain</FONT>
<BR><FONT SIZE=3D2>[e-mail] >> =
mike.blake@cellnetwork.com [icq] >> =
103631268</FONT>
<BR><FONT SIZE=3D2>[mobile] >> 678 642 392 [direct office phone] =
>> 91 761 4913</FONT>
<BR><FONT SIZE=3D2>[office] >> Plaza Alonso Martinez 3, 4=AA =
Planta, 28004 Madrid</FONT>
<BR><FONT =
SIZE=3D2>------------------------------------------------------------</F=
ONT>
</P>
<BR>
<BR>
<BR>
</BODY>
</HTML>
------_=_NextPart_001_01C0BD27.BB53D673--