Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 17th, 2004, 12:26 PM
kace kace is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Atlanta
Posts: 9 kace User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m
Reputation Power: 0
MySQLdb won't find lib

Here's the problem in a nutshell:

>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "MySQLdb/__init__.py", line 27, in ?
import _mysql
ImportError: Shared object "libmysqlclient_r.so.12" not found


This had been working. What changed I have no idea. (I'm afraid there are other people on this box.) I tried totally wiping the module (including install directory and re-extracting from tarball) and reinstalling. Same thing. The library file does exist, in the directory that setup.py expects it to be in (FreeBSD 4):

$ ls /usr/local/lib/mysql/libmysqlclient_r.so.12
-rwxr-xr-x 1 root wheel 160971 Feb 27 12:14 /usr/local/lib/mysql/libmysqlclient_r.so.12

I don't think anything is wrong with this file because the command line mysql client works just fine. Any ideas will be greatly appreciated. Thanks.

K.C.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > MySQLdb won't find lib


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT