• 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

Problems with Thonny

Q&A Forum › Category: ESP32 › Problems with Thonny
0 Vote Up Vote Down
esp8266 asked 4 years ago

Hello Rui,
Sorry Rui, I saw it too late, that I should post here.
 
thank You for answer.
The font in µPyCraft works.
 
I have Problems with Thonny:

  1. Sometimes the program hangs ??? When I hit the events-window ???
  2. On uploading a file to my device I get an error-message

Traceback (most recent call last):
  File “C:\Users\Install\AppData\Local\Programs\Thonny\lib\tkinter\__init__.py”, line 1705, in __call__
    return self.func(*args)
  File “C:\Users\Install\AppData\Local\Programs\Thonny\lib\site-packages\thonny\workbench.py”, line 807, in dispatch_from_menu
    dispatch(None)
  File “C:\Users\Install\AppData\Local\Programs\Thonny\lib\site-packages\thonny\workbench.py”, line 765, in dispatch
    handler()
  File “C:\Users\Install\AppData\Local\Programs\Thonny\lib\site-packages\thonny\plugins\micropython\__init__.py”, line 1657, in _upload_script
    _upload_as(“_get_script_path”)
  File “C:\Users\Install\AppData\Local\Programs\Thonny\lib\site-packages\thonny\plugins\micropython\__init__.py”, line 1638, in _upload_as
    source_path = os.path.relpath(source_path, get_workbench().get_cwd())
  File “C:\Users\Install\AppData\Local\Programs\Thonny\lib\ntpath.py”, line 562, in relpath
    path_drive, start_drive))
ValueError: path is on mount ‘D:’, start on mount ‘C:’
 
My user-folder (workspace in µPyCraft) is    D:\Lernen\MycroPython-Rui Santos\workSpace
 

  1. I cannot find where I can see the uploaded moduls  (like µPyCraft device-folder)
  2. I cannot choose the debug mode, it is deactivated.

 
Thank You and regards
Franz

Question Tags: debug mode, Thonny, Upload fails, uploaded modules
4 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 4 years ago

Hello Franz,
Thonny IDE is still being developed (like MicroPython) sometimes using the latest releases of these softwares have some quirks that we need to work around.
 
1) The Thonny IDE hangs sometimes when you press the stop button (that’s normal, because it’s waiting for the ESP to restart)
 
2) I haven’t encountered that error… But does the code upload?
 
3) You need to send some commands to list the files in the ESP, it’s a bit more difficult to list the device files (but uPyCraft is easier)
 
4) The debug mode only works with Python 3 interpreter (if you’re coding in Python and not MicroPython)
 
Thanks for your patience and we plan to update the eBook next week with more tips on Thonny IDE to make it easier to use.
 
Regards,
Rui

0 Vote Up Vote Down
esp8266 answered 4 years ago

Hello Rui,
Thank you
2) If the error occurs, the code is not uploaded. I’ve checked it out with µPyCraft
Regards
Franz
 

0 Vote Up Vote Down
esp8266 answered 4 years ago

I will proceed with uPyCraft

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

I’m sorry to hear that. These IDEs are still being developed, so there are still bugs that need to be fixed. I’m not sure if it’s a problem with your Operating System or if something is missing. I can guarantee that I’ve installed Thonny IDE in 5 different computers (1 Linux, 2 Windows, 1 RPi, and 1 Mac) and it’s been proven to work perfectly.
uPyCraft also works great for me, but it prints in the Shell many warning messages with can be a bit confusing. Most of the “errors”/”warnings” you can ignore and your script will still work.

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.