tgeijten / sconegym

Gym environments for SCONE
Apache License 2.0
26 stars 4 forks source link

Errors occured when trying to run example_environment.py #2

Open Biomechicshub opened 8 months ago

Biomechicshub commented 8 months ago

Dear Thomas, I got an error as shown below, could you please help me with that? "import sconepy ImportError: dlopen(/Applications/SCONE.app/Contents/MacOS/lib/sconepy.cpython-39-darwin.so, 0x0002): tried: '/Applications/SCONE.app/Contents/MacOS/lib/sconepy.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Applications/SCONE.app/Contents/MacOS/lib/sconepy.cpython-39-darwin.so' (no such file), '/Applications/SCONE.app/Contents/MacOS/lib/sconepy.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))" Kind regards.

tgeijten commented 7 months ago

It is indeed true that there is no SCONE release for Apple silicon (arm64). When running SCONE studio, this is handled automatically via Rosetta, but apparently this is not the case for SconePy. It seems the architecture is tied to the Python environment here.

Do you have the option to use a Python environment based on x86_64? Then everything should run properly through Rosetta.

Biomechicshub commented 7 months ago

Thanks Thomas, I will try to run it using the x86_64 based Python environment to see if it works.

tgeijten commented 7 months ago

Thanks, let me know!

Nazerek commented 3 weeks ago

Hey, I fixed the error and could run on Mac by installing it on conda environment:

conda create -n my_x86_env -y conda activate my_x86_env conda config --env --set subdir osx-64

Then install everything as stated in the instruction