Mac OS - lib failing to load
See original GitHub issueHello,
I am trying to run the environment on a macOS Mojave (version 10.14) and when trying to run rl_env_example.py I get
'NoneType' object has no attribute 'NewGame'
when trying to run lib.NewGame, meaning lib probably wasn’t loaded.
Similarly, when running game_examply.py, I get AssertionError: lib failed to load
on line 122. The instructions on the readme don’t specify differences between OS, so I’d appreciate some help on this issue.
Thank you!
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
How to Fix 'Dyld: Library not Loaded' Error on MacOS - Appuals
How to Fix 'Dyld: Library not Loaded' Error on MacOS ; Navigate to the “/usr/lib” folder. Press the “Command” + “Space” simultaneously. Type...
Read more >Resolving Library Loading Problems | Apple Developer Forums
A critical concern is dynamic library impersonation attacks. If your program references a library, you want the dynamic linker to load that ...
Read more >macos - dyld: Library not loaded ... Reason: Image not found
Go to Build Phases · Hit the '+' button at the top and select "New Copy File Phase" · Select Destination as Frameworks...
Read more >DYLD Library is Not Loaded on Mac - A Guide to Fix It | Nektony
Open the default Apple application called Terminal. · Type in the following command and press Return (Enter). brew update · Then, type this ......
Read more >dyld: Library not loaded: /usr/local/opt/lua/lib/liblua.5.3.dylib ...
I've tried following steps to fix the problem: Made sure macOS is most recent version; In terminal: sudo xcode-select --install (already ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Meanwhile, you can just go to the
pyhanabi.py
file and replacePYHANABI_LIB = "libpyhanabi.so"
withPYHANABI_LIB = "libpyhanabi.dylib"
Just changed how pyhanabi.py loads libpyhanabi to handle both the typical .so and OSX .dylib file extensions. This should just work without modification now.