Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asyngpg doesn't work due to c-bindings #202

Open
arunhallan opened this issue Dec 24, 2021 · 0 comments
Open

asyngpg doesn't work due to c-bindings #202

arunhallan opened this issue Dec 24, 2021 · 0 comments

Comments

@arunhallan
Copy link

arunhallan commented Dec 24, 2021

Hi,

I am currently compiling using the following command:

shiv --site-packages .env\Lib\site-packages -c runx -o runx.pyz

"runx" is a custom console app I have packaged.

asyncpg is one of the dependencies.

However when I run C:\python310\python.exe runx.pyz, I get the following error:

  File "\site-packages\psccommon\db\db.py", line 4, in <module>
    import asyncpg
  File "\site-packages\asyncpg\__init__.py", line 8, in <module>
    from .connection import connect, Connection  # NOQA
  File "\site-packages\asyncpg\connection.py", line 19, in <module>
    from . import connect_utils
  File "\site-packages\asyncpg\connect_utils.py", line 27, in <module>
    from . import protocol
  File "\site-packages\asyncpg\protocol\__init__.py", line 8, in <module>
    from .protocol import Protocol, Record, NO_TIMEOUT  # NOQA
ModuleNotFoundError: No module named 'asyncpg.protocol.protocol'

Note that this is on a different machine to the build machine, however they are both Windows 10 builds.

What can I do to mitigate this?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant