intake / intake/python-snappy

python snappy fails on Mac M2 processor

Offen
#123 1 Kommentar 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
490
Forks
104
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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
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
import snappy
File "<...snip...>/venv/lib/python3.10/site-packages/snappy/__init__.py", line 3, in
from .snappy import (
File "<...snip...>/venv/lib/python3.10/site-packages/snappy/snappy.py", line 51, in
from .snappy_cffi import UncompressError, compress, decompress, \
File "<...snip...>/venv/lib/python3.10/site-packages/snappy/snappy_cffi.py", line 3, in
from ._snappy_cffi import ffi, lib
ModuleNotFoundError: No module named 'snappy._snappy_cffi'
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.