Tools problem

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
KJM
Posts: 158
Joined: Sun Nov 18, 2018 10:53 pm
Location: Sydney AU

Tools problem

Post by KJM » Thu Jan 27, 2022 10:26 pm

I've had a decent run on windows10 using repls like Atom & Thony with ESP32s, but lately I'm feeling a bit stymied. I'd like to try the likes of mpremote, esptool or mpy-cross but they all seem to be linux oriented.

At first I thought I could maybe run them in an Ubuntu VM on windows but the VM can't access the USB to communicate with the ESP32 & re-jigging it to be able to https://devblogs.microsoft.com/commandl ... es-to-wsl/ seems to depend a lot on what you have plugged into the USB.

So then I thought I'd try my luck with a raspberry pi but pip install mpremote failed with a message that no matching distribution could be found at https://www.pinwheels.org/simple. What sort of machine do I need to try the likes of mpremote, esptool or mpy-cross?

User avatar
scruss
Posts: 360
Joined: Sat Aug 12, 2017 2:27 pm
Location: Toronto, Canada
Contact:

Re: Tools problem

Post by scruss » Fri Jan 28, 2022 1:51 am

what version of Raspberry Pi OS are you running? Current is better.

Also, depending on the Raspberry Pi OS Desktop you installed, your python may not be Python3. The larger "Raspberry Pi OS with desktop and recommended software" installs the package python-is-python2, which reverts python to Python 2 (for $reasons).

KJM
Posts: 158
Joined: Sun Nov 18, 2018 10:53 pm
Location: Sydney AU

Re: Tools problem

Post by KJM » Fri Jan 28, 2022 5:07 am

Yeah buster on the Rpi with it dual versions of python was a bit of nightmare so I'm back on a windows 10 machine, viewtopic.php?f=2&t=11902 any suggestions gratefully accepted.

PM-TPI
Posts: 75
Joined: Fri Jun 28, 2019 3:09 pm

Re: Tools problem

Post by PM-TPI » Wed Apr 20, 2022 6:28 pm

Has anyone installed mpremote on Raspberry Pi with any success ???
I was going to move my production programming to a Raspberry Pi.
Any and all information would be great!!!

User avatar
scruss
Posts: 360
Joined: Sat Aug 12, 2017 2:27 pm
Location: Toronto, Canada
Contact:

Re: Tools problem

Post by scruss » Thu Apr 21, 2022 12:13 am

PM-TPI wrote:
Wed Apr 20, 2022 6:28 pm
Has anyone installed mpremote on Raspberry Pi with any success ???
Why wouldn't it work? Has anyone reported lack of success with it?

Try:

Code: Select all

sudo apt install python3-pip
sudo pip3 install mpremote
then follow the thing: mpremote

Post Reply