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

MacOS Monterey library issue #6

Closed
ghost opened this issue Feb 21, 2022 · 13 comments
Closed

MacOS Monterey library issue #6

ghost opened this issue Feb 21, 2022 · 13 comments

Comments

@ghost
Copy link

ghost commented Feb 21, 2022

Dear,
I have successfully used the driver before on macOS Big Sur, but now after upgrading the system (fresh install) the driver stopped working. My code is written in python but I have also tested the MacCAN Monitor, both without success.

Further details:
CPU: Intel
macOS: 12.2.1
hardware: PCAN-USB adapter

python output: "The driver is not loaded"
MacCAN Monitor output: "Something went terribly wrong! Error 0200: The driver is not loaded"

I tried the universal_64 and Intel_x86_64 0.10.1 and 0.11 version. The result is always the same.

@mac-can
Copy link
Owner

mac-can commented Feb 21, 2022

I´ve created a troubleshooting guide for analyzing issues on Monterey and/or M1 chip as a Gist: https://gist.github.com/mac-can/a43f08e530714dd74689762f62f88dca

@daniInfi7 Could you pl. check this step by step and send me your results. Thx. Uwe

See also issue #4

@ghost
Copy link
Author

ghost commented Feb 21, 2022

As you have suggested I have checked the issue #4 and the solution was to use the binary macOS_Library_for_PCANUSB_v0.10.1.tar.gz from https://www.uv-software.de/dokuwiki/doku.php?id=uvs:programs:pcbusb_library

is there any difference with this binary and the one that is included in the Library folder inside MacCAN_Monitor.0.4_x86.1.dmg?

@ghost ghost closed this as completed Feb 21, 2022
@mac-can
Copy link
Owner

mac-can commented Feb 21, 2022

As stated in my comment of 11/10/21, the x86_64 version is compiled to run on old OS X versions (tested with 10.13).
Maybe this is denied by Monterey. No further differences.

@daniInfi7 What´s about PCBUSB-Library version 0.11 (universal binary) is it running on you Mac now?

@ghost
Copy link
Author

ghost commented Feb 22, 2022

@mac-can I have now tested different scenarios and the 0.11 (universal binary) as also 0.10.1 (included in the .dmg) work only with the c++ example and test/monitor example, with mac-can app and python they don't.

macOS_Library_for_PCANUSB_v0.10.1.tar.gz works with everything.

@mac-can
Copy link
Owner

mac-can commented Feb 22, 2022

Issue reopened because it is not solved for v0.11 of the library on Monterey.

I was able to reproduce the error on a system with Monterey (12.1):

  • The C++ examples, which load the library at compile time, work fine.
  • The Python example, which loads the library at runtime, throws the error code 512 ("The driver is not loaded").
  • The MacCAN Monitor App does the same.

Further investigations required.

@kedvall
Copy link

kedvall commented Mar 28, 2022

Hi @mac-can @daniInfi7. I'm currently experiencing the exact same issue. Any updates?

  • I'm on Monterey 12.3
  • I'm trying to use the v0.11 universal binary release on Python 3.9
  • I can't use anything that loads the library at runtime, also throws the 512 (driver is not loaded) error
    I would be happy to help debugging but I'm not really sure where to start

@mac-can
Copy link
Owner

mac-can commented Mar 31, 2022

Hi @mac-can @daniInfi7. I'm currently experiencing the exact same issue. Any updates?

  • I'm on Monterey 12.3
  • I'm trying to use the v0.11 universal binary release on Python 3.9
  • I can't use anything that loads the library at runtime, also throws the 512 (driver is not loaded) error
    I would be happy to help debugging but I'm not really sure where to start

Hi @kedvall,
Occasionally, I get this crash report when I try to connect to a PCAN interface in the MacCAN Monitor App while using PCBUSB-Library version 0.11 on macOS Monterey (arm64). (I have never seen this behavior on Big Sur (x86_64) nor on High Sierra.)
I can't figure it out, but maybe it's a starting point for root causing or debugging.

@herrspade
Copy link

Hi, I have the same problem.

  • Monterey 12.3.1 (21E258)
  • Intel Core i7
  • Python 3.10.2 (pyenv)
  • can_moni works
  • building and running pcbusb_recv and pcbusb_send examples work
  • Everything python seems to fail with status 0x200 'The driver is not loaded'

Anything I can do to assist finding/fixing the problem?

@Dan-Kouba
Copy link

Dan-Kouba commented Apr 25, 2022

I am seeing the same "The driver is not loaded" issue on my machine:

  • Monterrey 12.2.1
  • Intel Core i9
  • Python 3.8
  • Library v0.11 (also tried 0.10.1 and 0.8 with the same failures)
  • Both python-can v4.0.0 and MacCAN fail with the same error

@mac-can
Copy link
Owner

mac-can commented Apr 26, 2022

Preliminary version that should solve the issue: macOS_Library_for_PCANUSB_v0.11.1.pre.tar.gz

@herrspade
Copy link

Great work, tested it and It works from me!

@Dan-Kouba
Copy link

This works for me as well, thank you!

mac-can added a commit that referenced this issue Apr 30, 2022
Bugfix release for Monterey issue #6 and `@rpath` issue #7
@mac-can
Copy link
Owner

mac-can commented Apr 30, 2022

Bug fix release v0.11.1 available. Issue can be closed

mac-can added a commit that referenced this issue Jul 31, 2022
Bugfix release for Monterey issue #6 and `@rpath` issue #7
@mac-can mac-can closed this as completed Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants