Open dtdannen opened 1 year ago
Thanks for raising the issue and sharing the workaround. Can confirm I was able to reproduce. I think I originally tested on x86 mac. I'll investigate and see if I can see what is going wrong.
The same issue was encountered using Mac OS silicon, and the workaround did not work. Can you explain it in more detail or describe an alternative way?
Hi @saharad1 , sorry for the inconvenience, I'm looking into it. I'm not exactly sure what the problem is but I think when the package is installed the nle-language-wrapper library is re-compiled for the current architecture but the nle library is not. The workaround should work as it recompiles both from scratch, but you have to remember to clone the submodules as well. Steps:
git clone https://github.com/ngoodger/nle-language-wrapper --recursive
pip install -e nle-language-wrapper
Thank you! worked for me as well.
I followed the instructions on the README to install from pypi via pip (not source), and kept running into this error where
from nle_language_wrapper import NLELanguageWrapper
would fail to dlopen libnethack.so . More details below, but a current workaround is just to install viapip install -e .
after cloning the repo. This problem may be mac specific, I've only tested on apple silicon mac os.Here's the error output:
Python 3.9.6 (default, Oct 18 2022, 12:41:40) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin Type "help", "copyright", "credits" or "license" for more information.