Error dialects = eval(dialects.strip()) File "<string>", line 0 when try to create exe file in PyInstaller
Question:
Console error:
File "C:UserssemnomeAppDataLocalProgramsPythonPython310libsite-packagesPyInstallerhookshook-sqlalchemy.py", line 31, in <module>
dialects = eval(dialects.strip())
File "<string>", line 0
when that happened I usually solved it with:
pip install sqlalchemy --upgrade
but now it doesn’t work anymore, what do I do?
Answers:
pip uninstall sqlalchemy > pip install sqlalchemy
that solved the problem
I found the solution and it worked for me when I had the same problem
pyinstaller App.py --noconfirm --onefile --windowed --exclude-module sqlalchemy
Console error:
File "C:UserssemnomeAppDataLocalProgramsPythonPython310libsite-packagesPyInstallerhookshook-sqlalchemy.py", line 31, in <module>
dialects = eval(dialects.strip())
File "<string>", line 0
when that happened I usually solved it with:
pip install sqlalchemy --upgrade
but now it doesn’t work anymore, what do I do?
pip uninstall sqlalchemy > pip install sqlalchemy
that solved the problem
I found the solution and it worked for me when I had the same problem
pyinstaller App.py --noconfirm --onefile --windowed --exclude-module sqlalchemy