0

Remove Python executable from Arduin
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Remove Python executable from Arduin

by blnkjns on Tue May 17, 2022 12:47 pm

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++?

blnkjns
 
Posts: 791
Joined: Fri Oct 02, 2020 3:33 am

Re: Remove Python executable from Arduin

by dastels on Tue May 17, 2022 1:01 pm

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

Dave

dastels
 
Posts: 10141
Joined: Tue Oct 20, 2015 3:22 pm

Re: Remove Python executable from Arduin

by dastels on Tue May 17, 2022 1:01 pm

Try reinstalling Arduino.

Dave

dastels
 
Posts: 10141
Joined: Tue Oct 20, 2015 3:22 pm

Re: Remove Python executable from Arduin

by blnkjns on Tue May 17, 2022 2:53 pm

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

blnkjns
 
Posts: 791
Joined: Fri Oct 02, 2020 3:33 am

Re: Remove Python executable from Arduin

by dastels on Tue May 17, 2022 3:00 pm

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

Dave

dastels
 
Posts: 10141
Joined: Tue Oct 20, 2015 3:22 pm

Re: Remove Python executable from Arduin

by blnkjns on Tue May 17, 2022 5:02 pm

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!

blnkjns
 
Posts: 791
Joined: Fri Oct 02, 2020 3:33 am

Re: Remove Python executable from Arduin

by dastels on Tue May 17, 2022 6:53 pm

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

dastels
 
Posts: 10141
Joined: Tue Oct 20, 2015 3:22 pm

Re: Remove Python executable from Arduin

by dastels on Tue May 17, 2022 6:53 pm

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

Dave

dastels
 
Posts: 10141
Joined: Tue Oct 20, 2015 3:22 pm

Re: Remove Python executable from Arduin

by blnkjns on Wed May 18, 2022 1:04 am

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?

blnkjns
 
Posts: 791
Joined: Fri Oct 02, 2020 3:33 am

Re: Remove Python executable from Arduin

by dastels on Wed May 18, 2022 9:59 am

Yes, the Nordic toolchain has some python components.

Dave

dastels
 
Posts: 10141
Joined: Tue Oct 20, 2015 3:22 pm

Re: Remove Python executable from Arduin

by blnkjns on Wed May 18, 2022 2:27 pm

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

blnkjns
 
Posts: 791
Joined: Fri Oct 02, 2020 3:33 am

Re: Remove Python executable from Arduin

by dastels on Wed May 18, 2022 3:02 pm

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

Dave

dastels
 
Posts: 10141
Joined: Tue Oct 20, 2015 3:22 pm

Re: Remove Python executable from Arduin

by blnkjns on Thu May 19, 2022 1:16 pm

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

blnkjns
 
Posts: 791
Joined: Fri Oct 02, 2020 3:33 am

Re: Remove Python executable from Arduin

by dastels on Thu May 19, 2022 1:52 pm

That says nothing about potential differences in the tooling.

Dave

dastels
 
Posts: 10141
Joined: Tue Oct 20, 2015 3:22 pm

Re: Remove Python executable from Arduin

by argonblue on Sat Jun 04, 2022 2:32 pm

I posted an analysis and possible workaround here.

argonblue
 
Posts: 33
Joined: Wed Apr 25, 2012 12:18 am

Please be positive and constructive with your questions and comments.