• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Python version for microPython

Q&A Forum › Category: ESP32 › Python version for microPython
0 Vote Up Vote Down
David Heffler asked 3 years ago

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

4 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 3 years ago

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.

0 Vote Up Vote Down
David Heffler answered 3 years ago

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

0 Vote Up Vote Down
David Heffler answered 3 years ago

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

0 Vote Up Vote Down
Rui Santos Staff answered 3 years ago

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…

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.