Jump to content

No module named MySQLdb


Recommended Posts

Does anyone have a MySQLdb to FTP to?
I am trying to create item_proto and mob_proto.txt via proto.py in my files and a message pops up:


Can anyone help/send?

python proto.py
proto.py:583: SyntaxWarning: name 'errors' is assigned to before global declaration
  global errors
proto.py:592: SyntaxWarning: name 'errors' is assigned to before global declaration
  global errors
Traceback (most recent call last):
  File "proto.py", line 4, in <module>
    import MySQLdb
ImportError: No module named MySQLdb

proto.py line 4:

#!/usr/bin/env python
#-*- coding" utf-8 -*-
#Modified by Deucalion
import MySQLdb
host_mysql = 'xxx'
user_mysql = 'xxx'
passwd_mysql = 'xxx'

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.