Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
MySQLdb returns "ValueError: invalid literal for float():" for cursor.execute('show databases')
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Tim Williams, post: 1761911"] I think I found the problem. I installed mysql and MySQLdb in non-standard places so I wouldn't need root access. (I'm not an admin.) It turns out that the switch --enable-thread-safe-client is *not* used by default in the mysql install, but the default for MySQLdb is to assume that it is used. What was happening was that MySQL db was loading in /usr/lib/mysql/libmysqlclient_r.so.10 since my install dir for mysql didn't have that library built. If I change the MySQL setup.py to # set this to YES if you have the thread-safe mysqlclient library thread_safe_library = NO and reinstall it, things work. I'm working on building my version of mysql with --enable-thread-safe-client and MySQLdb with thread_safe_library = YES to see if this works too. I expect so. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
MySQLdb returns "ValueError: invalid literal for float():" for cursor.execute('show databases')
Top