I installed MySQLdb on a server running Mac OS X 10.4 Server with the built-in Python that come with the system.
When I run my software, I have this error. This error doesn't occur on my system (Mac OS X 10.4 client).
Traceback (most recent call last):
File "vacations.py", line 572, in mysql_connect
sql = MySQLdb.connect(host=mysql_server, user=mysql_login, passwd=mysql_pass, db=mysql_base)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MySQLdb/init.py", line 74, in Connect
from connections import Connection
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MySQLdb/connections.py", line 9, in ?
import cursors
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MySQLdb/cursors.py", line 10, in ?
from _mysql_exceptions import Warning, Error, InterfaceError, DataError, \
ImportError: cannot import name Warning
What's my problem ?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I developped and tested my app on 10.4 client without any problems. But when it was the time to install it on the server, this was an another story :(.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I removed all thing relative to mysql or MySQLdb in
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/ and I installed the lib again.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using MySQLdb on OS X 10.4 (latest update) and I don't get this problem, but probably my MySQLdb version differs from yours since I installed it about one year ago. I'm using v1.2.0.
Oliver
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I installed MySQLdb on a server running Mac OS X 10.4 Server with the built-in Python that come with the system.
When I run my software, I have this error. This error doesn't occur on my system (Mac OS X 10.4 client).
Traceback (most recent call last):
File "vacations.py", line 572, in mysql_connect
sql = MySQLdb.connect(host=mysql_server, user=mysql_login, passwd=mysql_pass, db=mysql_base)
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MySQLdb/init.py", line 74, in Connect
from connections import Connection
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MySQLdb/connections.py", line 9, in ?
import cursors
File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MySQLdb/cursors.py", line 10, in ?
from _mysql_exceptions import Warning, Error, InterfaceError, DataError, \ ImportError: cannot import name Warning
What's my problem ?
Thanks.
Are you using OS X server or client ?
I developped and tested my app on 10.4 client without any problems. But when it was the time to install it on the server, this was an another story :(.
Good news, it's working :)
I removed all thing relative to mysql or MySQLdb in
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/ and I installed the lib again.
nobody ? :/
I'm using MySQLdb on OS X 10.4 (latest update) and I don't get this problem, but probably my MySQLdb version differs from yours since I installed it about one year ago. I'm using v1.2.0.
Oliver