MySQLdb for Python on Stoli

Status
Not open for further replies.

danbalthasar

New Member
Messages
8
Reaction score
0
Points
0
Hi,

My previously working python script is now generating import errors - says it can't find MySQLdb. I assume this has something to do with the upgrade and perhaps MySQLdb not being reinstalled... Any chance that it could be reinstalled for stoli?

Here's the error message and offending portion of the script:

Code:
    2 import cgi, cgitb; cgitb.enable()
    3 import MySQLdb, datetime, calendar, re
    4 from decimal import Decimal
    5 import zipfile, os
    6 from os.path import join
MySQLdb undefined, datetime undefined, calendar undefined, re undefined
<type 'exceptions.ImportError'>: No module named MySQLdb 
      args = ('No module named MySQLdb',) 
      message = 'No module named MySQLdb'

Thanks!

Dan
 
Last edited:

masshuu

Head of the Geese
Community Support
Enemy of the State
Messages
2,293
Reaction score
50
Points
48
The servers are being played with, so not everything may be installed right now. IF you still get this error after corey is done, make a new thread
though i will bug someone if i can
 

danbalthasar

New Member
Messages
8
Reaction score
0
Points
0
How long should I wait before opening a new thread on this? It's still not installed, but I'm not really sure when the maintenance is supposed to end.

I'm not sure if it's related, but I did initially have to ask to have MySQLdb installed on Stoli - it wasn't when I first signed up for the account.
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
Check the latest news and server alerts threads. These two should give your a pretty accurate info on which is the current server and which server is next or done.
 

danbalthasar

New Member
Messages
8
Reaction score
0
Points
0
Unless I'm looking in the wrong place, it seems like the updates on Stoli should be done by now, but I could very well be wrong.

I think the python module probably just needs to be reinstalled for Stoli...
 

genealogy1

New Member
Messages
56
Reaction score
1
Points
0
My WordPress is down stating : Error connecting to database
Tried changing config file to read 'localhost' as NOW the MySQL reads 'localhost' instead of the mysql-blah blah etc.

Initially config for database read 'mysql-stoli.x10hosting.com' and worked fine.

Doesnt work either now.

See previous post
 
Status
Not open for further replies.
Top