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

Cannot do a get request in micropython on esp32

I tried up to day to get requests working on micropython, tried installing libraries and everything. I use thonny IDE. what can i do? Error: Traceback (most recent call last): File "", line 2, in File "urequests.py", line 184, in…
sev3333
  • 3
  • 2
0
votes
0 answers

Not getting serial data (USB) from Pico Pi

from machine import Pin, ADC import utime adc = ADC(Pin(26, mode=Pin.IN)) led_onboard = Pin(25, Pin.OUT) while True: val = adc.read_u16() u1 = (val*0.0000503547-0.02)*0.992 print(u1) if u1 >= 1.0: led_onboard.on() else: …
ricode
  • 9
  • 3
0
votes
1 answer

How do I connect to SQLITE from Python in Thonny environment?

I've been teaching Intro to Python using Thonny at a library. Two years ago I added a class on SQL, also taught from the Thonny environment. I wrote a bunch of scripts to demonstrate concepts, beginning each one with: import sqlite3 connection =…
0
votes
1 answer

Thonny cant recognize raspberry pico WH?

I have just started using a pico WH and i wwanted to upload a file to it but the "option upload to..." isnt there.The Pico is shown like a normal drive and not like…
Gamerboy
  • 1
  • 1
0
votes
0 answers

Thonny shows ImportError

When i try to open thonny, it shows the following error. Traceback(most recent call last): File "", line 3, in File "C:\Users\USER\AppData\Local\Programs\Python\Python38-32\Lib\run.py", line 201, in run_module mod_name,…
Digvijay
  • 1
  • 1
0
votes
0 answers

error when downloading any library in thonny

When I am installing by manage packages I am getting this error every single time: "Successfully installed picozero-0.4.0 Starting to apply changes to the target. Copying picozeroError (ManagementError(...), 'Command output was not empty')" Can…
ROM3K
  • 15
  • 3
0
votes
0 answers

Error installing Micropython libraries with Thonny IDE

I am trying to install umqtt.simple onto my Thonny IDE using Micropython. I have a Raspberry Pi Pico W with Micropython already installed on both the device and Thonny, and Micropython is the selected interpreter in the bottom right. Whenever I try…
0
votes
0 answers

Problem with downloading libraries in thonny micropython

I cant install libraries in micropython for my Raspberry Pi Pico W I was using the mip. and i get this(I was trying to download picozero): Traceback (most recent call last): File "", line 1, in File "mip/__init__.py", line 1, in…
ROM3K
  • 15
  • 3
0
votes
1 answer

Thonny IDE throws ImportError during startup

I have been using the Thonny IDE for some time. It used to work perfectly. Then, some days ago, I had to format my laptop. After formatting, opening Thonny shows the following error: Traceback (most recent call last) File "", line 3, in…
Digvijay
  • 1
  • 1
0
votes
2 answers

Problems installing MicroPython Package mfrc522

I purchased a 37 Raspberry Pi Pico sensor package from a company called Keyestone. In it is a RFID sensor that requires the mfrc522 package. Using Thonny I tried to install the mfrc522 package. When I try to download it, Using the "Tools/Manage…
Tom
  • 11
  • 3
0
votes
0 answers

Raspberry Pi Pico (Micropython)

I am trying to write a loop to read pin 14 on a pi pico. Normally the pin will be 0 (Low) but when it goes 1 (High) I would like to exit the while loop and continue with the rest of the script. I have it running and it is printing "HELLO" but when I…
Brian
  • 17
  • 1
  • 1
  • 2
0
votes
1 answer

Bug in Secret Auction Program For Loop

I wrote a program as part of a class I am currently taking and even though I tried fixing this bug using the Thonny debugger, it persists! The code i am working on is in replit.com. Basically, the bug, when i try running this program on replit, is…
0
votes
0 answers

Using GTK3 with Weasyprint in Thonny (Portable)

Windows 10/11 (64-bit) Python 3.8.10 (32-bit) Thonny 4.0.2 I have installed Thonny, then moved the Thonny file to a USB to make it portable. I installed weasyprint via Thonny's manage packages window. From weasyprint's documentation under Missing…
Bobby
  • 31
  • 1
  • 4
0
votes
0 answers

PMS5003 Sensor returns no data. "device reports readiness to read but returned no data(device disconnected or multiple access on port)

In the biginning i got my readings and i would get this error in between my readings once in a while. After that, I started getting this message more than i would get my readings. I changed up my code a lot now and i still get it. I will get 2…
0
votes
2 answers

How to correctly install dependencies in MicroPython interpreters

I'm using Thonny, if there are better IDE's for working with python on microcontrollers definitely open to suggestions. I have a node.js server using socket.io and express websocket server, that is correctly responding to clients. For instance if I…