Skip to content
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

Issues when installing on Mac m1 #43

Open
tobicoveo opened this issue May 8, 2023 · 0 comments
Open

Issues when installing on Mac m1 #43

tobicoveo opened this issue May 8, 2023 · 0 comments

Comments

@tobicoveo
Copy link

Hello,

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant