• 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

PyCharm with ESP8266 & Micropython –

Q&A Forum › Category: ESP8266 › PyCharm with ESP8266 & Micropython –
0 Vote Up Vote Down
Gary asked 3 years ago

Hi Sara,

I get this error:

  1. File “boot.py”, line 22, in <module>
    KeyboardInterrupt:

2. And in terminal:

/Users/../PycharmProjects/pythonProject2/venv/bin/python “/Users/upython/Library/Application Support/JetBrains/PyCharmCE2021.3/plugins/intellij-micropython/scripts/microupload.py” -C /Users/../PycharmProjects/pythonProject2 -v /dev/cu.SLAB_USBtoUART /Users/../PycharmProjects/pythonProject2/main.py
Connecting to /dev/cu.SLAB_USBtoUART
Uploading files: 0% (0/1)
/Users/../PycharmProjects/pythonProject2/main.py -> main.py
b’T’
Traceback (most recent call last):
File “/Users/../Library/Application Support/JetBrains/PyCharmCE2021.3/plugins/intellij-micropython/scripts/microupload.py”, line 139, in <module>

??

 

Thanks

Gary

 

13 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
I never tried PyCharm with MicroPythom.
What code are you trying to run?
Regards,
Sara

0 Vote Up Vote Down
Gary answered 3 years ago

Hi Sara,

Still stuck on:
ESP8266 Web Sever – Blink – 192.168.1.148
Chap 4 – Web Server Example
Project Overview – page 162 (MicroPython_Programming_with_ESP32_and_ESP8266_V1_2.pdf)
Trying over wifi to toggle ESP8266 on-board LEDs

Could you or Rui take a look at it in Pycharm?
Thanks
Gary

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

Hi.
What’s the plugin that you’re using to program micropython with Pycharm?
Regards,
Sara

0 Vote Up Vote Down
Gary answered 3 years ago

0 Vote Up Vote Down
Gary answered 3 years ago
  1. In Pycharm at the very top next   File   Edit  View etc
  2. Actually click on Pycharm
  3. You will see – 
    1. About Pycharm
    2. Check for updates
    3. Preferences 

    4. Choose Preferences

    1. Go to Languages  
    2. Choose Micropython
    3. Enable Micropython
    4. Choose Device type ESP8266
    5. Apply 
    6. OK

5. Back in the main window you should see Missing Micropython package 
Click on it were is says Missing Micropython package
It will install automatically
6. Allow it to Finnish
7. Then go to main – click 
8. At the very bottom left
Edit Configuration Template
Click on Micropython
Enter to project path – you already did this but you have to repeat  
9. Finally go back to your file chose it and right click, on Mac that’s fn+ control- mouse click
10. Abot 70% down you will see ‘Run Flash….’ – Your project
11. At the top RHS where is said main, it should say Flash….’ – Your project
12. At this stage if you go to the top: Tools – Micropython – Micropython – Micropython-Repl
13. Now you should see a Micropython prompt
 

0 Vote Up Vote Down
Gary answered 3 years ago

Thanks for looking at PyCharm
I have tried and failed trying
Rui’s https://github.com/RuiSantosdotme/ESP-MicroPython/tree/master/code/WiFi/Web_Server_Output_Simple
with both Thommy and PyCharm
Thanks,
Gary

0 Vote Up Vote Down
Gary answered 3 years ago

I forgot you have to install the MP plung-in 
https://medium.com/@andymule/micropython-in-pycharms-basic-setup-9169b497ec8a
 
 

0 Vote Up Vote Down
Gary answered 3 years ago

A Micropython limitation for both Thommy & PyCharm is you must have a ‘main.py’  
 

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

Hi.
I tried Pycharm and got it working if used only main.py.
Copy the contents of boot.py to the beginning of your main.py file.
Regards,
Sara

0 Vote Up Vote Down
Gary answered 3 years ago

Hi Sara,

SOMMETIMES!!!   get PyCharm woking – It’s infinity better than Thommy, but much more couple

Thanks,
Gary

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

Unfortunately, there isn’t an ideal IDE for micropython.
 
I’ll mark this issue as resolved.
If you need further help, you just need to open a new question in our forum.
Regards,
Sara

0 Vote Up Vote Down
Gary answered 3 years ago

Hi Sara
Can you tell me what it would take to get PyCharm
You had mentionaned a possible Tutorial…. any more thoughts
I am sure there would be considerable demand.
I certainly would be integrated
Damien used https://www.kickstarter.com
Thanks
Gary

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

Hi Gary.
 
After trying PyCharm, I decided that I won’t create any tutorials about it at the moment.
First, because I think the other IDEs we recommend are more intuitive.
Second, I couldn’t get it working with boot.py and main.py—only with main.py.
And finally, it is only compatible with the ESP8266. Many of our readers use both the ESP32 and ESP8266.
 
Regards,
Sara
 

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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

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

Copyright © 2013-2025 · 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.