2021年1月7日星期四

PyInstaller + Asyncpg: Cannot import name excetiosn

I have a problem when I create a build with PyInstaller.

This is the stacktrace of error:

File "asyncpg/protocol/__init__.py", line 8, in <module>  File "asyncpg/protocol/protocol.pyx", line 1, in init asyncpg.protocol.protocol  File "asyncpg/pgproto/./buffer.pyx", line 12, in init asyncpg.pgproto.pgproto  ImportError: cannot import name exceptions  

I added the asyncpg.pgproto.pgproto when I compiled my application but the error persists. This is an example of pyinstaller command:

pyinstaller --hidden-import=asyncpg.pgproto.pgproto --onefile --distpath  folter/example_service example/__main__.py --name example-app  

Thanks!

https://stackoverflow.com/questions/65623306/pyinstaller-asyncpg-cannot-import-name-excetiosn January 08, 2021 at 12:04PM

没有评论:

发表评论