You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Installation instruction for M1 not working. mmh3 dependency has incompatible architecture.
Error message
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/var/folders/wg/c6yzw8y93gq6bvs2l_kd98jm0000gr/T/ipykernel_72582/1213873530.py in<cell line: 2>()
1 import os
----> 2 from haystack.document_stores import ElasticsearchDocumentStore
3
4 # Get the host where Elasticsearch is running, default to localhost
5 host = os.environ.get("ELASTICSEARCH_HOST", "localhost")
~/Documents/QA/haystack/haystack/__init__.py in<module>
18 import pandas as pd
19
---> 20 from haystack.schema import Document, Answer, Label, MultiLabel, Span, EvaluationResult
21 from haystack.nodes.base import BaseComponent
22 from haystack.pipelines.base import Pipeline
~/Documents/QA/haystack/haystack/schema.py in<module>
18 from dataclasses import asdict, InitVar
19
---> 20 import mmh3
21 import numpy as np
22 import pandas as pd
ImportError: dlopen(/Users/xxx/opt/miniconda3/envs/m1/lib/python3.8/site-packages/mmh3.cpython-38-darwin.so, 0x0002): tried: '/Users/xxx/opt/miniconda3/envs/m1/lib/python3.8/site-packages/mmh3.cpython-38-darwin.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
Expected behavior
Example code shall run without error after following installation instruction in doc.
Additional context
Add any other context about the problem here, like document types / preprocessing steps / settings of reader etc.
To Reproduce
fromhaystack.document_storesimportElasticsearchDocumentStore# Get the host where Elasticsearch is running, default to localhosthost=os.environ.get("ELASTICSEARCH_HOST", "localhost")
Installation instructions work for me (M1 Pro, macOS 12.5.1). I have a more recent version of Python but that shouldn't be the issue, did you try from a clean env? Also, can you try installing only mmh3 in a clean env to see if that's the problem?
Installation instructions work for me (M1 Pro, macOS 12.5.1). I have a more recent version of Python but that shouldn't be the issue, did you try from a clean env? Also, can you try installing only mmh3 in a clean env to see if that's the problem?
Hi, thanks for the response! It turns out pip installs x86_64.
I had to pip uninstall mmh3 then conda install mmh3, which picks it up from channel pkgs/main/osx-arm64.
Same thing happens with lxml in the next step.
Though later would run into problem described here: bastibe/python-soundfile#310, I would close this issue for now.
Describe the bug
Installation instruction for M1 not working.
mmh3
dependency has incompatible architecture.Error message
Expected behavior
Example code shall run without error after following installation instruction in doc.
Additional context
Add any other context about the problem here, like document types / preprocessing steps / settings of reader etc.
To Reproduce
FAQ Check
System:
The text was updated successfully, but these errors were encountered: