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.

Doesn't run on OSX

See original GitHub issue

Firstly, it bails out with Libraries not available for this platform: Darwin, as the lib is not setup. The “32 bit” dylib from openvr, is actually a universal library, so has x86 and x64 images. (you can test this using lipo -info libopenvr_api_32.dylib), so init.py needs updating.

Secondly, you need to specify the full path for LoadLibrary on osx or it won’t find the library with dlopen() (updating the PATH means nothing)

loadpath = os.path.dirname(__file__) + '/' + _openvr_lib_name
openvr = cdll.LoadLibrary(loadpath)

Working on next set of errors… 😃

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
liffitoncommented, Nov 16, 2017

I’ve gotten pyopenvr to load and work perfectly (at least with a single VR tracker) on OS X with just a single change in __init__.py to make it load the libopenvr_api_32.dylib library on 64-bit Darwin. I didn’t run into any of the other issues SoyletGraham mentions. Perhaps those have been fixed in more recent changes.

Regardless, if you simply copy the Darwin check:

elif platform.system() == 'Darwin':
    _openvr_lib_name = "libopenvr_api_32.dylib"

into the 64-bit “else:” clause in __init__.py, it works for me. I can open a pull request if it would be helpful.

0reactions
SoylentGrahamcommented, Feb 24, 2019

Yeah, I’m also no longer using this either. I just wanted to make sure I made records of stuff I found in case other people had the same problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If you can't open an app on Mac - Apple Support
If you aren't an administrator of your Mac, the administrator may be preventing you from using the app. · You may be trying...
Read more >
MacBook won't turn on? Here's how to fix it - Macworld
If it's not responsive because it's stuck on a grey, blue or white screen, just hold down the Mac's power button for several...
Read more >
Mac Won't Boot or Start? How to Fix Issues With a Mac Not ...
1. Check If the Mac Has Power · 2. Run a Power Cycle · 3. Boot Into Safe Mode · 4. Reset SMC...
Read more >
Mac Not Turning On? Take These 8 Steps to Fix It - MacKeeper
Mac Not Turning On? Take These 8 Steps to Fix It · 1. Ensure your Mac has power · 2. Check your Mac's...
Read more >
How to Fix a Mac Application That's Not Starting - Lifewire
Reasons a Mac Application Won't Start · There's a chance a file became corrupt because of a system crash. · The app may...
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