You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure no duplicated issue has already been reported. You should look for closed issues, too.
Make sure you are not asking us to help to solve your specific issue. GitHub issues are opened mainly for development purposes. If you want to ask someone to help to solve your problem, go to some community site like StackOverflow, etc.
Make sure your problem is not derived from packaging (e.g. Homebrew).
Describe the bug
When I was packaging the Flask project, the exe program encountered an error:
ModuleNotFoundError: No module named 'MySQLdb'
Desktop (please complete the following information):
Do you get success if you run the Flask project on the command line?
Well, you are using two packages that may have the same functionality, but it seems that you are using mysqlclient.
cx_Freeze detects __import__ with a string but it may not be detecting an extension, so try using --includes=MySQLdb._mysql to test. For instance: python setup.py build_exe --includes=MySQLdb._mysql
Prerequisite
Describe the bug
When I was packaging the Flask project, the exe program encountered an error:
ModuleNotFoundError: No module named 'MySQLdb'
Desktop (please complete the following information):
Flask==1.1.2
Flask-Bcrypt==0.7.1
Flask-Cors==3.0.8
Flask-Migrate==2.5.3
Flask-Script==2.0.6
Flask-SQLAlchemy==2.4.3
mysqlclient==2.0.0
PyMySQL==1.1.1
SQLAlchemy==1.3.18
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: