+ Reply to Thread
Results 1 to 3 of 3

Thread: MySQLdb not available for Python???

  1. #1
    rickmorn43 is offline x10Hosting Member rickmorn43 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    2

    MySQLdb not available for Python???

    I've gotten a simple Python test script to work, but when I try to import the MySQLdb module, I get an error message saying that it's not available.

    The Python line is:
    import MySQLdb

    and the error message is:
    ImportError: No module named MySQLdb
    args = ('No module named MySQLdb',)

    Can something be done about this? Is there a different database available for use with Python?

  2. #2
    phoenixreviews's Avatar
    phoenixreviews is offline x10Hosting Member phoenixreviews is an unknown quantity at this point
    Join Date
    Apr 2010
    Location
    Australia
    Posts
    34

    Re: MySQLdb not available for Python???

    You could try downloading the MySQL module from http://sourceforge.net/projects/mysql-python/ and including the file(s) manually.

  3. #3
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: MySQLdb not available for Python???

    It was installed at one point, but with the various server rebuilds it went away, along with a few other problematic changes. You can request that it be re-installed. In the short term, you can try manually installing the egg (add it to sys.path, possibly after unzipping it first).
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Similar Threads

  1. MySQLdb in python
    By mytunes in forum Free Hosting
    Replies: 0
    Last Post: 02-22-2009, 02:52 PM
  2. MySQLdb on Python
    By hardbyte in forum Free Hosting
    Replies: 0
    Last Post: 11-25-2008, 02:03 AM
  3. Python / MySQLdb
    By Korexio in forum Free Hosting
    Replies: 9
    Last Post: 11-29-2007, 08:29 AM
  4. Python - MySQLdb
    By emit.smith in forum Feedback and Suggestions
    Replies: 1
    Last Post: 11-20-2007, 08:49 PM
  5. MySQLdb for Python
    By *Face in forum Free Hosting
    Replies: 6
    Last Post: 09-28-2007, 07:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers