PyInstaller not working with module asyncpg?

26 views
Skip to first unread message

Tonny Gram

unread,
Oct 13, 2020, 10:36:19 AM10/13/20
to PyInstaller
I want to create an executable file "Interface.exe". To do this, I execute the command:

pyinstaller -F Interface.py

and run the file "Interface.exe". But an error occurs:

On line 10 is the code: import asyncpg

If you copy the directory site-packages\asyncpg and execute:
pyinstaller -F --add-data="asyncpg;asyncpg" Interface.py
then on startup there will be an error again: http://prntscr.com/uyibq3

The uuid.pyx file is in a subfolder asyncpg\pgproto\

How can you copy a script to EXE?
I am using Python 3.8 and latest asyncpg 0.21.0
Reply all
Reply to author
Forward
0 new messages