Menu

cx_freeze and MySQLdb

2006-03-22
2012-09-19
  • Flávio Codeço Coelho

    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

     
    • Flávio Codeço Coelho

      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,

       
    • Andy Dustman

      Andy Dustman - 2006-03-22

      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?

       

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.