Upload error in Mac environment

[4573] Failed to execute script ambiq_bin2board

Traceback (most recent call last):

File “ambiq_bin2board.py”, line 19, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

File “serial/tools/list_ports.py”, line 29, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

File “serial/tools/list_ports_posix.py”, line 31, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

File “serial/tools/list_ports_osx.py”, line 32, in

ValueError: dlsym(RTLD_DEFAULT, kIOMasterPortDefault): symbol not found

Hi Seong-Ro Bae,

Please provide more information. For example, which version of macOS are you using? What MicroMod products are you using? I assume Artemis Processor.

Apple recently released macOS 12 Monterey and I’m curious if will cause issues like what was experienced with Big Sur. Very hesitant to upgrade.

Cheers,

Adam

I am actually surprised this known issue is still around. There are a number of posts in this forum about this. Also according to https://github.com/sparkfun/Arduino_Apollo3/issues/299 it was solved in version 2.06. If you look on the same link you will find a workaround

Hey Paul,

The issues with artemis_svl.py and macOS Big Sur were resolved a while back. It looks like Seong-Ro Bae is now running into a problem with ambiq_bin2board.py. I haven’t yet upgraded to macOS Monterey, so I’m curious if this may be what’s causing the errors. It could also be they are using an outdated Apollo3 Core.

Cheers,

Adam

Good point Adam.

Interesting no one had a complaint about an issue with ambiq_bin2board on Big Sur, as the root cause is exactly the same and also the solution. The workaround posted on the earlier mentioned link on 15 feb by Kirk-sfe is a good workable , but then applied to “asb” instead of “svl”.

I think you have to open a bug for development on https://github.com/sparkfun/Arduino_Apollo3/issues to make sure it is fixed for next releases.

Hey Paul,

You may be interested to know that I updated my MacBook Air to macOS Monterey today and can confirm that there are no issues with compiling code on either version of the Apollo3 Core: 1.2.3 or 2.1.1.

@Seong-Ro Bae, please let us know if you require any further assistance.

Cheers,

Adam

Hi there,

I’m having the exact same problem as the original post: Artemis MicroMod on a Monterey Mac.

I’m following along with the MicroMod Environmental board hookup guide: https://learn.sparkfun.com/tutorials/mi … okup-guide

I get the following when I try to upload:

Arduino: 1.8.16 (Mac OS X), Board: “SparkFun Artemis MicroMod, 921600, SparkFun Variable Loader (Recommended)”

Sketch uses 26580 bytes (2%) of program storage space. Maximum is 960000 bytes.

Global variables use 50316 bytes of dynamic memory.

[89923] Failed to execute script artemis_svl

Traceback (most recent call last):

File “artemis_svl.py”, line 38, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

File “serial/tools/list_ports.py”, line 29, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

File “serial/tools/list_ports_posix.py”, line 31, in

File “”, line 983, in _find_and_load

File “”, line 967, in _find_and_load_unlocked

File “”, line 677, in _load_unlocked

File “/usr/local/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module

File “serial/tools/list_ports_osx.py”, line 32, in

ValueError: dlsym(RTLD_DEFAULT, kIOMasterPortDefault): symbol not found

ValueError: dlsym(RTLD_DEFAULT, kIOMasterPortDefault): symbol not found

Thanks for any help!

Cheers,

Derek

Hi Derek,

Which version of the SparkFun Apollo3 Boards did you select in the Arduino IDE?

I’d also suggest changing the baud rate to 460800 or lower. I don’t know if 921600 is supported on v2.1.1. It wasn’t on v1.2.x.

The errors you’re getting aren’t a surprise, so we should be able to get you up and running.

Cheers,

Adam

Adam - thanks for the reply!

I’ve selected Sparkfun Apollo 3 | Sparkfun Artemis MicroMod

and I tried changing the SVL baud rate all the way down to 115200, but still get the same error.

Thanks again any help you can provide!

Cheers,

Derek

which version of the library do you use.?

The error “ValueError: dlsym(RTLD_DEFAULT, kIOMasterPortDefault): symbol not found” is a known issue with the uploader and as Adam indicated before should be solved in the latest version.

Hi Derek,

Thanks for the update. As Paul mentioned, the big question is what version of the Apollo3 Core you’re using.

Please let us know and we can go from there!

Cheers,

Adam

Thanks for the responses Paul and Adam. I’m using “Sparkfun Apollo3 Boards” version 1.2.1. According the Select Version options, it appears to be the latest (?)

Hi Derek,

In the screenshot I attached, you’ll see that v1.2.3 is currently installed. I’m wondering if you have the correct Apollo3 board definitions in your Arduino IDE:

https://raw.githubusercontent.com/spark … index.json

Note that these differ from SparkFun’s AVR and SAMD board definitions listed on their website (https://learn.sparkfun.com/tutorials/in … definition).

They should probably remove the Artemis-based boards from the AVR/SAMD definitions as they are out of date.

Cheers,

Adam

Created a GitHub issue to have SparkFun remove references to Artemis-based boards in the AVR/SAMD board definition file:

https://github.com/sparkfun/Arduino_Boards/issues/95

Derek, I’m almost certain this is your issue. There are currently 4 different board definition files for the various architectures SparkFun products are based on (i.e., AVR/SAMD, Apollo3, ESP8266, ESP32). Once you add the Apollo3 URL, you should be able to select v1.2.3 or 2.2.0.

Cheers,

Adam

Replacing the sparkfun example github file (form their MicroMod hookup guide page) with your link did the trick! (I went with the latest Apollo3 version, 2.2.0).

Thanks very much for the excellent help!!