Menu

problem on freebsd

Help
perica
2004-06-09
2012-09-19
  • perica

    perica - 2004-06-09

    Hi I just installed python-mysql and after:

    #!/usr/bin/python

    import MySQLdb
    db = MySQLdb.connect(host="localhost", user="joe",
    passwd="secret",
    db="my_db")

    i get this:
    Traceback (most recent call last):
      File "<stdin>", line 1, in ?
      File "/usr/local/lib/python2.3/site-packages/MySQLdb/__init__.py", line 64, in Connect
        return apply(Connection, args, kwargs)
      File "/usr/local/lib/python2.3/site-packages/MySQLdb/connections.py", line 117, in __init__
        self.converter[types.StringType] = self.string_literal
    TypeError: object does not support item assignment

    HELPPPPPP please...

     
    • Andy Dustman

      Andy Dustman - 2004-06-10

      OK, you're the second person to report this, but I can't replicate it on Linux (x86) with Python 2.3.4. Put in a bug report and include OS, Python, and MySQL details.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.