Remove Python executable from Arduin

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
blnkjns
 
Posts: 963
Joined: Fri Oct 02, 2020 3:33 am

Remove Python executable from Arduin

Post by blnkjns »

I can't compile code for my Clue in the Arduino IDE.
I get errors from some Python module:
[9328] Error loading Python lib '/var/folders/gk/s9m9x2t13ys0493jh09b4k9c0000gn/T/_MEIXZqrim/libpython3.8.dylib':
Why is there Python code in Arduino libraries to begin with? I can imagine the oposite, C++ parts for low level tasks underneath Python, but Pythun under C++?

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Remove Python executable from Arduin

Post by dastels »

It's for the build tooling (some of which are apparently written in Python (very common). Not for inclusion in the compiled code.

Dave

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Remove Python executable from Arduin

Post by dastels »

Try reinstalling Arduino.

Dave

User avatar
blnkjns
 
Posts: 963
Joined: Fri Oct 02, 2020 3:33 am

Re: Remove Python executable from Arduin

Post by blnkjns »

It's also happening on a fresh install.
Only works on Windows. Will use my work laptop for the Clue....

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Remove Python executable from Arduin

Post by dastels »

Make sure all your libraries, and especially board support packages are up to date.

Dave

User avatar
blnkjns
 
Posts: 963
Joined: Fri Oct 02, 2020 3:33 am

Re: Remove Python executable from Arduin

Post by blnkjns »

Tried every variation on the Mac, 1.8.6, 1.8.13, 1.8.19, all NRF versions from ancient 0.5.0 to the latest 1.3, but now I give up. Adafruit nRF and Mac is no option. Free Clue for grabs!

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Remove Python executable from Arduin

Post by dastels »

It's looking for Python 3.8. If it didn't install it itself, it must be relying on it being there. Try installing Python 3.8.

Dave

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Remove Python executable from Arduin

Post by dastels »

You said you're using the most recent version of MacOS?

Dave

User avatar
blnkjns
 
Posts: 963
Joined: Fri Oct 02, 2020 3:33 am

Re: Remove Python executable from Arduin

Post by blnkjns »

Not the most recent MacOS, I use the best: Mojave. Lean and mean. The new direction is too much Candy Crush for me and under Mojave my vintage 2015 MBP has roughly the same battery life as a new M1 MBA and boots as fast. So there has been injected some bloat along the way.

How comes the Adafruit nRF boards look for Python, where ATSAMD/Atmel boards compile without a hiccup?

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Remove Python executable from Arduin

Post by dastels »

Yes, the Nordic toolchain has some python components.

Dave

User avatar
blnkjns
 
Posts: 963
Joined: Fri Oct 02, 2020 3:33 am

Re: Remove Python executable from Arduin

Post by blnkjns »

Strange enough the stuff from Sandeep compiles without issues. For example for the Microbit 2

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Remove Python executable from Arduin

Post by dastels »

The Micro:bit 2 uses a different MCU. How different is the toolchain, no idea. But apparently different enough.

Dave

User avatar
blnkjns
 
Posts: 963
Joined: Fri Oct 02, 2020 3:33 am

Re: Remove Python executable from Arduin

Post by blnkjns »

Differences between nRF52832 and nRF52840 seem minimal. Zigbee support, USB 2.0 and 512kB Flash seem to be the differences.

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Remove Python executable from Arduin

Post by dastels »

That says nothing about potential differences in the tooling.

Dave

User avatar
argonblue
 
Posts: 93
Joined: Wed Apr 25, 2012 12:18 am

Re: Remove Python executable from Arduin

Post by argonblue »

I posted an analysis and possible workaround here.

Locked
Please be positive and constructive with your questions and comments.

Return to “CLUE Board”