Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joulescope 0.9.3 wont work on MacOs 10.15.7 #112

Closed
git-dimiz opened this issue Dec 4, 2020 · 5 comments
Closed

Joulescope 0.9.3 wont work on MacOs 10.15.7 #112

git-dimiz opened this issue Dec 4, 2020 · 5 comments
Assignees
Labels
bug Something isn't working
Projects

Comments

@git-dimiz
Copy link

git-dimiz commented Dec 4, 2020

Hi,

when trying to start joulescope it wont start with an older MacOs version. Heres the error I get.

$> /Applications/joulescope.app/Contents/MacOS/joulescope_launcher
[5877] Error loading Python lib '/Applications/joulescope.app/Contents/MacOS/Python': dlopen: dlopen(/Applications/joulescope.app/Contents/MacOS/Python, 10): Symbol not found: _preadv
Referenced from: /Applications/joulescope.app/Contents/MacOS/Python (which was built for Mac OS X 11.0)
Expected in: /usr/lib/libSystem.B.dylib
in /Applications/joulescope.app/Contents/MacOS/Python

@mliberty1
Copy link
Member

mliberty1 commented Dec 4, 2020

Yes, Apple has made life very difficult for developers. From our perspective, one Mac platform has now become three:

  1. macOS 11.0.1 (Big Sur) on AMD64
  2. macOS 10.x on AMD64
  3. macOS 11.0.1 (Big Sur) on ARM

The official 0.9.3 release only supports (1). Since you are running on (2), you have a few choices:

  1. Run Joulescope UI 0.9.2 (which does not run on macOS 11, see Joulescope UI does not work with macOS 11.0.1, Big Sur #108 and the forum).
  2. Wait until we figure out how to support macOS 10. We may end up dropping official release support in favor of (3).
  3. Run from homebrew.

If you choose to run from homebrew, you will be using the Joulescope python packages available on pypi. First, install brew on your machine. Open a terminal, and type:

brew update
brew upgrade
brew install python3 libusb
Close and then open the terminal to ensure paths are correctly configured.
pip3 install -U  joulescope_ui PySide2

You should then be able to run the Joulescope UI using:

python3 -m joulescope

Do any of these options work for you?

@git-dimiz
Copy link
Author

Thanks for the quick replay!

For now I have reverted to Joulescope 0.9.2. I didn't know that homebrew was also an option. Maybe I will give it a shot later.

@mliberty1
Copy link
Member

Reopening. Although we have workarounds, we still need to determine the official course of action.

@mliberty1 mliberty1 reopened this Dec 4, 2020
@mliberty1 mliberty1 self-assigned this Jan 21, 2021
@mliberty1 mliberty1 added the bug Something isn't working label Jan 21, 2021
@mliberty1 mliberty1 added this to To Do in 2021-03 via automation Jan 21, 2021
@mliberty1 mliberty1 moved this from To Do to In Progress in 2021-03 Jan 21, 2021
@mliberty1
Copy link
Member

After investigating, we have no easy answer. We will distribute two macOS binaries for the upcoming release. The two versions will be:

  • macOS 10 x86_64
  • macOS 11 x86_64

macOS 11 arm64 will run under Rosetta using the x86_64 binaries. We will punt on creating universal binaries through pyinstaller.

@mliberty1 mliberty1 moved this from In Progress to Done in 2021-03 Apr 14, 2021
@mliberty1
Copy link
Member

Address in v0.9.7 with two download options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

2 participants