473,505 Members | 13,925 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with installing MySQL-python-1.2.1_p2

Hi,

I have tried to install MySQL-python-1.2.1_p2 under Windows XP with
Python 2.4.3 and I get some problems.

1- I get this warning when I run setup.py build:

C:\tools\Python\lib\distutils\extension.py:133: UserWarning: Unknown
Extension options: 'mysql_root'
warnings.warn(msg)

2- When I compile _mysql.c, there are errors in the file:

DL_EXPORT(void)
init_mysql(void)
{
....
if (PyDict_SetItemString(dict, "version_info",
PyRun_String(version_info, Py_eval_input,
dict, dict)))
goto error;
if (PyDict_SetItemString(dict, "__version__",
PyString_FromString(__version__)))

PyRun_String parameter version_info and PyString_FromString parameter
__version__ are not defined. I suspect that they should be surrounded by
double quotes but if I do that and compile _mysql.pyd. When that module
is initialized, python is crashing because PyRun_String returns a NULL
pointer instead of the expected valid PyObject pointer.

Is there anybody that can help me?

Thank you,
Olivier Langlois
http://www3.sympatico.ca/olanglois

May 23 '06 #1
0 968

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3401
by: Kerry Shetline | last post by:
I've successfully installed MySQL and the Perl DBI module, but when I try to install DBD::mysql, it keeps failing like this: -------------------- (from the CPAN shell) --------------------- .......
0
1427
by: Andrew Keating | last post by:
------=_NextPart_000_0005_01C36576.78A1ECD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit To whom it may concern, We are having some trouble installing a...
0
1184
by: Andrew Keating | last post by:
------=_NextPart_000_0005_01C36576.78A1ECD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit To whom it may concern, We are having some trouble installing a...
1
3193
by: manish deshpande | last post by:
Hi, When i'm installing MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm by the following command: rpm -i MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm the following error is being shown: ...
2
5203
by: sbettadpur | last post by:
Hiiii > > I have installed mysql , Active perl 5.10 successfully but > Template-GD: ppm install Template-GD > PerlMagick: ppm install PerlMagick > SOAP-Lite: ppm install SOAP-Lite > ...
0
7298
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3187
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1526
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.