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

library suddenly not loading on M1 mac #54

Closed
logi opened this issue Feb 10, 2023 · 3 comments
Closed

library suddenly not loading on M1 mac #54

logi opened this issue Feb 10, 2023 · 3 comments

Comments

@logi
Copy link

logi commented Feb 10, 2023

I don't know if this being on macos and M1 is important, but it seems like it might be.

This minimal test fails consistantly:

❯ virtualenv .venv
created virtual environment CPython3.10.3.final.0-64 in 176ms
  creator CPython3Posix(dest=/Users/logi.ragnarsson/asyncmy-test/.venv, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/logi.ragnarsson/Library/Application Support/virtualenv)
    added seed packages: pip==22.3.1, setuptools==65.7.0, wheel==0.38.4
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
❯ source .venv/bin/activate
❯ pip install asyncmy==0.2.5
Looking in indexes: https://pypi.org/simple, <redacted>
Collecting asyncmy==0.2.5
  Using cached asyncmy-0.2.5-cp310-cp310-macosx_13_0_arm64.whl
Installing collected packages: asyncmy
Successfully installed asyncmy-0.2.5

[notice] A new release of pip available: 22.3.1 -> 23.0
[notice] To update, run: pip install --upgrade pip
❯ python3
Python 3.10.3 (main, Mar 27 2022, 13:44:57) [Clang 13.1.6 (clang-1316.0.21.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import asyncmy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/logi.ragnarsson/asyncmy-test/.venv/lib/python3.10/site-packages/asyncmy/__init__.py", line 1, in <module>
    from .connection import Connection, connect  # noqa:F401
ModuleNotFoundError: No module named 'asyncmy.connection'

If I install cython and then run pyximport.install() it works, but now we're building the library at startup which is much too slow. Also, using 0.2.7rc6 works immediately.

@Shoumil
Copy link

Shoumil commented Feb 11, 2023

Same issue on M2 Mac

@optsing
Copy link

optsing commented Feb 12, 2023

This problem is reproduced not only on macOS, but also on Windows (python 3.11.2, pip 23.0) and Linux (python 3.8.10, pip 20.0.2)

@long2ice
Copy link
Owner

#50

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

4 participants