question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mac OS - lib failing to load

See original GitHub issue

Hello,

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:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
ocorcollcommented, Feb 8, 2019

Meanwhile, you can just go to the pyhanabi.py file and replace PYHANABI_LIB = "libpyhanabi.so" with PYHANABI_LIB = "libpyhanabi.dylib"

0reactions
nolanbardcommented, Mar 15, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found