I tried installing pytrec_eval under m1 and the installation work, but when I try to import it I get this issues.
Traceback (most recent call last):
File "/Users/tcarvalho/Library/Caches/pypoetry/virtualenvs/evaluation-suite-iSLcvJiA-py3.10/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3508, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-2-b628730d1a82>", line 1, in <module>
import pytrec_eval
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/tcarvalho/Library/Caches/pypoetry/virtualenvs/evaluation-suite-iSLcvJiA-py3.10/lib/python3.10/site-packages/pytrec_eval/__init__.py", line 7, in <module>
from pytrec_eval_ext import RelevanceEvaluator as _RelevanceEvaluator
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ImportError: dlopen(/Users/tcarvalho/Library/Caches/pypoetry/virtualenvs/evaluation-suite-iSLcvJiA-py3.10/lib/python3.10/site-packages/pytrec_eval_ext.cpython-310-darwin.so, 0x0002): tried: '/Users/tcarvalho/Library/Caches/pypoetry/virtualenvs/evaluation-suite-iSLcvJiA-py3.10/lib/python3.10/site-packages/pytrec_eval_ext.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/tcarvalho/Library/Caches/pypoetry/virtualenvs/evaluation-suite-iSLcvJiA-py3.10/lib/python3.10/site-packages/pytrec_eval_ext.cpython-310-darwin.so' (no such file), '/Users/tcarvalho/Library/Caches/pypoetry/virtualenvs/evaluation-suite-iSLcvJiA-py3.10/lib/python3.10/site-packages/pytrec_eval_ext.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
My understanding is that the underlying C packages aren't supported for M1. I tried installing directly from the tar file, but I have the same issue.
Hello,
I tried installing pytrec_eval under m1 and the installation work, but when I try to import it I get this issues.
My understanding is that the underlying C packages aren't supported for M1. I tried installing directly from the tar file, but I have the same issue.