How do I debug a non-functioning PyInstaller build?

后端 未结 2 1323
逝去的感伤
逝去的感伤 2020-12-10 13:57

I have used PyInstaller only once before, and it worked pretty straight forward with wxPython. I\'m currently trying to build a different project though. The project works w

2条回答
  •  鱼传尺愫
    2020-12-10 14:29

    I know this answer doesn't answer how to debug issues like this, so I won't mark it as correct, but I managed to build the application and I thought I should share how. I did three things, each of which could be the cause of the error, but we'll never know:

    • I replaced ActivePython 2.7.3 with the official Python 2.7.3.
    • I replaced MySQLdb with the pure python drop-in replacement pymysql.
    • I replaced Levenshtein with the very similar method difflib.SequenceMatcher.ratio.

提交回复
热议问题