python snappy fails on Mac M2 processor
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- macos, python
- Domain
- operating-systems
Research direction
Reproduce the failure with the script shown in test_snappy.py on a Mac with an M2 processor, after installing snappy with Homebrew and python-snappy in Python 3.10. Start with the traceback paths under site-packages/snappy, especially _snappy.cpython-310-darwin.so and snappy_cffi.py. Done means importing snappy and completing the compress/uncompress round trip successfully.
Written by the indexing model from the issue text.
Description
I have installed snappy via brew and that says it installed fine.
But when I pip install python-snappy and then run the following script:
import snappy
compressed = snappy.compress("some data")
assert "some data" == snappy.uncompress(compressed)
it fails with:
(venv) ~/code/projectblue-api/src (feature/ARM/build-stuff) $ python test_snappy.py
Traceback (most recent call last):
File "<...snip...>/venv/lib/python3.10/site-packages/snappy/snappy.py", line 48, in <module>
from ._snappy import UncompressError, compress, decompress, \
ImportError: dlopen(<...snip...>/venv/lib/python3.10/site-packages/snappy/_snappy.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_snappy_compress'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<...snip...>/src/test_snappy.py", line 1, in <module>
import snappy
File "<...snip...>/venv/lib/python3.10/site-packages/snappy/__init__.py", line 3, in <module>
from .snappy import (
File "<...snip...>/venv/lib/python3.10/site-packages/snappy/snappy.py", line 51, in <module>
from .snappy_cffi import UncompressError, compress, decompress, \
File "<...snip...>/venv/lib/python3.10/site-packages/snappy/snappy_cffi.py", line 3, in <module>
from ._snappy_cffi import ffi, lib
ModuleNotFoundError: No module named 'snappy._snappy_cffi'
- Dominant language
- Python
- Stars
- 490
- Forks
- 104
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from intake/python-snappy
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
intake/python-snappy#152 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
intake/python-snappy#151 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
intake/python-snappy#150 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
intake/python-snappy#147 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
intake/python-snappy#140 · 1 comment · 1 reaction ·
All issues in intake/python-snappy
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·