Questions tagged [thonny]

Thonny is a beginner-friendly Python IDE; hence there may be questions here tagged with [thonny] that really have nothing to do with the IDE itself but are a proxy tag for something like [python-beginner]. The [thonny] tag should be used for IDE-related issues, which probably don't belong here.

Thonny is a beginner-friendly Python IDE; hence there may be questions here tagged with [thonny] that really have nothing to do with the IDE itself but are a proxy tag for something like [python-beginner]. The [thonny] tag should be used for IDE-related issues, which probably don't belong here.

158 questions
0
votes
1 answer

I get a com3 error when trying to tun my raspberry pi pico in thonny

So I was trying to code with my raspberry pi pico. I loaded up thonny (with micropython) and I get this error. Unable to connect to COM3: port not found Backend terminated or disconnected. Use 'Stop/Restart' to restart. The only reason I think…
0
votes
2 answers

Error while trying to install Jupyter on Windows 10

I'm trying to install Jupyter for Python, but I'm having this problem while installing. This is happening with other packages when I try to install them through pip as well. Not sure how to solve it. Can somebody help me out here? Note: I've…
Sid
  • 51
  • 5
0
votes
0 answers

i installed pyqt on thonny but i'cant installe pyqt5-tools

Collecting pyqt5-tools Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB) Using cached pyqt5_tools-5.15.4.3.1-py3-none-any.whl (28 kB) Collecting click Using cached click-8.1.3-py3-none-any.whl (96 kB) Requirement already satisfied:…
0
votes
0 answers

Multilines text depending on the TreeView width

I am building a plugin for thonny and I have a problem about building a TreeView. I have a tree view that contains only one column and it has several rows. Each row has its text, and the text can be too long. I should tell the tree view to cut the…
Réda
  • 1
  • 1
0
votes
1 answer

my raspberry pi pico oled display code is returning 'OSError: [Errno 5] EIO'

I've been trying to use an ssd1306 oled display with a raspberry pi pico but every time I run the code it returns an error. I don't know what the error means and can't really find anything online for it. I was able to "fix" it yesterday by changing…
odog
  • 1
  • 2
0
votes
0 answers

PICO w with pushbullet

Is there a way to use pushbullet with a pico w using micropython? I am using the thonny IDE. This is my code as of right now. I keep getting a osError:-2 when it is ran. body = "Sensor Data" title = "Fall Detected" data_sent =…
Killerbee
  • 1
  • 2
0
votes
0 answers

Error in code for Raspberry pi pico W web server

Im following this tutorial from adafruit I have tried installing the modules for the code but i keep getting this error back. Traceback (most recent call last): File "", line 7, in File "/lib/ipaddress.py", line 11, in…
reet66
  • 3
  • 3
0
votes
1 answer

Recommended way to break out of a Watchdog Timer (WDT) supported main loop

I need to include hardware WDTs on both ESP32 and rp Pico based systems running micropython. I am using the Thonny IDE and with an 8s timeout on the Pico I can interrupt (Cntrl-C) the system and quickly delete the main from the board. This then…
0
votes
1 answer

My raspberry pi pico gives me a strange error

So I want to turn on a lcd 16x2 using my Raspberry Pi Pico but it can't detect the file requested. First, I upload the file with import machine import utime rs= machine.Pin(16,machine.Pin.OUT) e = machine.Pin(17,machine.Pin.OUT) d4 =…
0
votes
0 answers

how to solve Exception while handling 'read_file' (thonny.plugins.micropython.mp_back.ManagementError: Script produced errors)?

i'm using Thonny to operate on rasberry pi pico with micropython the script is: def writejson(gps_altitudes, gps_time, baro_altitudes, baro_time): f = open("samples.json", "w") f.write('{\n"gps_altitude": [') …
0
votes
0 answers

how to fix a bricked raspberry pi pico

I am using a rapberry pi pico to read the temprature from a k-type thermocouple. in the code, I added a while loop, but no way to break it, and I also named it main.py. the code automatically runs on startup, and I cant stop it. I've tried to stop…
Ezra
  • 19
  • 8
0
votes
2 answers

"help" function trouble in EDI Thonny

OS : macOS Monterey 12.4 but someone had same issue with Ubuntu EDI : Thonny Installation : by pip3 command to use my already installed Python interpreter 3.9 In the Thonny console: help(print) no output but python seems waiting for something as…
0
votes
1 answer

Thonny: No module named 'pgzrun'

I've been successfully using Thonny with Pygame and Pygame Zero for a while. Work upgraded the PCs to 4.0.0 (Python 3.10.4) and now I get the following error: import pgzrun ModuleNotFoundError: No module named 'pgzrun' I upgraded Thonny on my own…
wibbleface
  • 119
  • 14
0
votes
1 answer

Serial.serial is not working, thonny: module 'serial' has no attribute 'Serial'

I just started with Ardunino, Python and a serial Communication between RPI and Ardunio (using Thonny). I checked out some tutorials (e.g https://roboticsbackend.com/raspberry-pi-arduino-serial-communication/) to get my code run. But not even the…
Arnic
  • 3
  • 2
0
votes
0 answers

How do I synchronize clocks on two Raspberry Pi Picos?

I'm sending bits as LED blinks from one Pi Pico, and using another Pico to receive voltage from a photodiode and read the bits. When sending/receiving from the same PiPico, it works accurately at 60us a bit. However, when sending from one pico and…