Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Problem with installing MySQL-python-1.2.1_p2

Reply
Thread Tools

Problem with installing MySQL-python-1.2.1_p2

 
 
Olivier Langlois
Guest
Posts: n/a
 
      05-23-2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing wireless USB Adapter =?Utf-8?B?cmZz?= Wireless Networking 2 07-10-2005 05:58 AM
Problem installing wireless card w/ Windows =?Utf-8?B?UmFuZGFsbA==?= Wireless Networking 0 03-28-2005 09:55 PM
problem installing firefox Brian Barringer Firefox 1 02-17-2005 06:01 PM
Problem installing modules on redhat 9 - strange connection problem championsleeper Perl Misc 0 01-26-2005 12:19 PM
Problem w/ Windows 98SE installing 802.11g router Wireless Networking 3 01-21-2005 01:08 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57