Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to run the command:

easy_install MySQLdb

But, I'm getting the error:

'NoneType' object has no attribute 'clone'

I'm using Windows 7 x64 with Python 2.6 x86 (I've tried Python x64, but I get the same error). I'm also using setuptools 0.6c11 (only available in 32-bit).

Please see the full error on Pastebin.

share|improve this question
up vote 2 down vote accepted

There seems to only be an egg for Python 2.5 on Windows. Try with Python 2.5 on Windows for now, and it should work, yet I agree having two versions of Python can really put you in a horrible situation sometimes. Also, the package is MySQL-python and not MySQLdb.

See this other answered SU question for a workaround to get it on Python 2.6

share|improve this answer

The package is called MySQL-python. Before barfing up the Traceback, python output:

Creating /Users/fideli/py2.6/lib/python2.6/site-packages/site.py
Searching for MySQLdb
Reading http://pypi.python.org/simple/MySQLdb/
Couldn't find index page for 'MySQLdb' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for MySQLdb
Best match: None

Try easy_install MySQL-python instead.

share|improve this answer
    
I get the error, "error: The system cannot find the file specified". pastebin.com/f676f67ae – nbolton Jan 14 '10 at 3:23
    
Ack, that's the limit of my help here. I don't use Python on Windows and I don't use MySQL at all. You can either edit this question with your new error and I'll delete this answer, or you can post a new question for that. Sorry! – fideli Jan 14 '10 at 3:29
    
Wait, your question is valid - just update it with "you need Python 2.5". – nbolton Jan 14 '10 at 3:45

Ah, looks like the error is caused because MySQLdb does not exist. They need a better error message I think. Furthermore, to use setup.py install on windows, we need to install the "Developer Components" during the MySQL server setup, and I think we must use MySQL 5.0 but I'm not sure.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .