Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

i am unable to install python-mysql for python2.5 and get the following error:

(cccorder2.5)☺  python -c "import MySQLdb"                                                                                                             ruby-2.0.0-p195cccorder2.5"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "MySQLdb/__init__.py", line 19, in <module>
    import _mysql
ImportError: dlopen(/Users/khinester/.virtualenvs/cccorder2.5/lib/python2.5/site-packages/_mysql.so, 2): Symbol not found: _mysql_affected_rows
  Referenced from: /Users/khinester/.virtualenvs/cccorder2.5/lib/python2.5/site-packages/_mysql.so
  Expected in: flat namespace
 in /Users/khinester/.virtualenvs/cccorder2.5/lib/python2.5/site-packages/_mysql.so

i have an old application that runs on python2.5 so i have setup a virtualenv for this.

(cccorder2.5)☺  python --version                                                                                                                       ruby-2.0.0-p195cccorder2.5"
Python 2.5.4

it works fine on python2.6 and 2.7 which are on my OSX 10.6 system

any advice much appreciated

share|improve this question
    
possible duplicate of Django - MySQLdb: Symbol not found: _mysql_affected_rows –  Wooble Mar 18 at 15:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.