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

from griddly import GymWrapperFactory failed on osx-arm64 Reason: incompatible architecture #296

Open
RobbenRibery opened this issue Feb 1, 2024 · 0 comments

Comments

@RobbenRibery
Copy link

RobbenRibery commented Feb 1, 2024

Describe the bug
from griddly import GymWrapperFactory
has failed due to
miniconda3/envs/myenv/lib/python3.11/site-packages/griddly/libs/python_griddly.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

To Reproduce

Steps to reproduce the behavior:
conda create -n myenv python=3.11
conda install -c conda-forge lxml pip
pip install griddly

Expected behavior
GymWrapperFactory to be imported

Desktop (please complete the following information):

  • OS: Apple M1 Pro
  • Version 14.2.1 (23C71)

Additional context

Traceback (most recent call last):
  File "test.py", line 2, in <module>
    from griddly import GymWrapperFactory
  File "miniconda3/envs/myenv/lib/python3.11/site-packages/griddly/__init__.py", line 16, in <module>
    gd = importlib.import_module("python_griddly")
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "miniconda3/envs/myenv/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: dlopen(miniconda3/envs/myenv/lib/python3.11/site-packages/griddly/libs/python_griddly.cpython-311-darwin.so, 0x0002): tried: 'miniconda3/envs/myenv/lib/python3.11/site-packages/griddly/libs/python_griddly.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/miniconda3/envs/myenv/lib/python3.11/site-packages/griddly/libs/python_griddly.cpython-311-darwin.so' (no such file), miniconda3/envs/myenv/lib/python3.11/site-packages/griddly/libs/python_griddly.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
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