Hello
I am trying to set up microPython to program my ESP32 on Linux Mint 19. I am caught in version number hell. I have Python 2.7 and Python 3.6.9 installed but my default seems to be Python2.
Should I change it to Python3? (A lot of sites recommend against that.)
And then there is Qt 4 or 5. Which do I need?
I tried following “uPyCraft IDE source code” from GitHub for many hours but it did not work on Mint
I have Arduino IDE working but microPython looks better.
Dave
Hello Dave, I haven’t tried uPyCraft IDE under Linux Mint distro.
In my opinion I would probably recommend using Thonny IDE instead under that environment. You can find the instructions for Thonny IDE at page 317 of the eBook.
According to the uPyCraft documentation, you should use: https://github.com/DFRobot/uPyCraft_src#environment
- ubuntu16.04 LTS Python3.5 PyQt4
In that link, they have the installation procedure to compile the code from source.
Thanks Rui for your quick response
I did the “pip install esptool” and it appear to work (at least no error messages).
But “esptool.py” returns “command not found”. So I did
sudo apt-get install esptool and that ran.
Now if I just enter esptool, I get the help screen
I will carry on with trying to flash my board
Dave
Riu
I had an adventure getting a new version of esptool.py installed. But now I have flashed my ROM and have thonny working. I can toggle the LED!
One small problem all the way through is that I don’t have permission on the com port. So I have to do arduino and esptool.py and thonny under sudo. Any idea how to fix that?
Dave
You’ll have to add permissions for your current user to access that port (but I don’t have those commands available), but if you search the exact permission error, you’ll probably find someone that explains how to do it.
If you are always as sudo (sudo su), you won’t have to type sudo again…