Skip to content

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

Description

@RobbenRibery

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'))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions