-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
django-spirit[files] python-magic-bin cannot be installed on mac silicon (m3) #331
Comments
This should work:
You'll need to install libmagic, see https://github.com/ahupp/python-magic?tab=readme-ov-file#installation
Then start Spirit and try to upload some file in a comment to check it works. django-spirit[files] just installs python-magic-bin which should only be needed in Windows. |
The above should work, and I should change this https://github.com/nitely/Spirit/blob/master/setup.py#L22 to match windows only. Alternative:
Until ahupp/python-magic#294 gets merged and released. |
you don't need the |
It worked, thank you! |
if no dev in your project is on Windows, you can just remove it, yes. |
Python 3.11.7 (same as 3.12.5)
pip 24.2
crashing library - python-magic-bin
Attempt1:
this requirements.txt CRASHES on an Apple Silicon M3 MAC:
this requirements.txt WORKS on an INTEL MAC:
requirements.txt:
INFO: pip is looking at multiple versions of django-spirit[files] to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement python-magic-bin==0.4.14; extra == "files" (from django-spirit[files]) (from versions: none)
ERROR: No matching distribution found for python-magic-bin==0.4.14; extra == "files"
Attempt2:
requirements.txt:
INFO: pip is looking at multiple versions of django-spirit[files] to determine which version is compatible with other requirements. This could take a while.
Collecting django-spirit[files] (from -r app/requirements.txt (line 61))
Using cached django-spirit-0.12.3.tar.gz (2.4 MB)
...
The text was updated successfully, but these errors were encountered: