I am Trying to freeze a script whcih uses MySQLdb.
At run time (of the frozen executable) I get the following error message:
Traceback (most recent call last):
File "epigrass.py", line 401, in onVisual
db='epigrass',user=str(self.uidEdit.text()), pw=str(self.pwEdit.text()))
File "Epigrass/epiplay.py", line 25, in init
self.tables = self.getTables()
File "Epigrass/epiplay.py", line 42, in getTables
Cursor.execute('SHOW TABLES')
File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 142, in execute
query = query.encode(self.connection.charset)
LookupError: no codec search functions registered: can't find encoding
The unfrozen script works normally. This type of error with frozen executables is normally due to a dependency ( a module) that is missing from the frozen executable package.
I have tried to track down what could be missing but couldn't figure out.
any ideas?
thanks,
Flávio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What is your default character set on your MySQL server? What version of MySQL are you using? Are you trying to change the default character set, and if so how are you doing it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am Trying to freeze a script whcih uses MySQLdb.
At run time (of the frozen executable) I get the following error message:
Traceback (most recent call last):
File "epigrass.py", line 401, in onVisual
db='epigrass',user=str(self.uidEdit.text()), pw=str(self.pwEdit.text()))
File "Epigrass/epiplay.py", line 25, in init
self.tables = self.getTables()
File "Epigrass/epiplay.py", line 42, in getTables
Cursor.execute('SHOW TABLES')
File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 142, in execute
query = query.encode(self.connection.charset)
LookupError: no codec search functions registered: can't find encoding
The unfrozen script works normally. This type of error with frozen executables is normally due to a dependency ( a module) that is missing from the frozen executable package.
I have tried to track down what could be missing but couldn't figure out.
any ideas?
thanks,
Flávio
Sorry for posting here.
the default character set on my MySQL server must be the default 'cause I never changed it. And I have no plans to change it.
maybe I should take this post to the cx_Freeze list.
Thanks,
You know, there is a Help forum.
What is your default character set on your MySQL server? What version of MySQL are you using? Are you trying to change the default character set, and if so how are you doing it?