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
1
vote
1 answer

Thonny py5-mode Error when running a code

I just tried to use py5 in thonny, but everytime i have the py5 mode on and try to run a code i get a bunch of error messeges, i dont really know what they mean so maybe somebody can help me out ? thanks in advance This is the error im always…
Tom
  • 11
  • 2
1
vote
1 answer

Using raspberry pico with pycharm - only main.py is working

I am using a Raspberry Pico and until now I have used Thonny for writing my code. Now I wanted to test PyCharm but I can't get a program that is not named main.py to run. So when I click on "flash main.py" it works and the pico executes the code.…
ginatronix
  • 11
  • 2
1
vote
1 answer

Error importing custom python package while using Thonny debug

I am learning to import packages in python and facing issue in importing custom packages while debugging code in Thonny IDE. The issue does not come if I simply run the program. My relative directory structure…
AbSaifi
  • 11
  • 3
1
vote
0 answers

python import module in geany or thonny doesn't work, while it does on terminal

I'm pretty new to the python thing and have a hard time setting up my environment for development of a intel realsense application on a raspberry pi 4. Coming from Windows PC where everything works nice with pip and all I keep falling over hurdles.…
joeCrow
  • 11
  • 2
1
vote
2 answers

How to make Thonny use Python3.9.5 on Windows

I am running Windows 10. Python 3.9.5 is installed and works well. However, when I install Thonny, I also get Python 3.7.9 installed by default. How can I make Thonny use Python 3.9.5 instead of 3.7.9?
Alandoe
  • 31
  • 2
1
vote
1 answer

NodeMCU (ESP8266) unresponsive when using endless loop (while True)

When I include a while True: in my main.py I can no longer overwrite it and upload a new version. Many beginner guides and tutorials, eg: this one and this one, use while True. So I guess it should be possible. I have tried using Thonny and ampy for…
Sander van Leeuwen
  • 2,963
  • 2
  • 22
  • 31
1
vote
0 answers

'SyntaxError: multiple statements found while compiling a single statement' Python IDLE Shell 3.9.4 while importing random

This code is about a problem Matt Parker asked on his video Can you solve The Frog Problem?. It runs perfectly on Thonny's shell (3.7.9) but gives an error in Python IDLE Shell 3.9.4. Does anyone know why this happens and/or how to solve it…
1
vote
0 answers

Why do I get an error message although I have installed thonny sqlite3 correctly

I want to use thonny sqlite3. I am installing sqlite3 module with Thonny Manage Packages.But after typing import sqlite3, when I want to run it in this state, it gives the following error message: File "", line 3, in File…
1
vote
3 answers

Can Thonny run scripts as root on Raspberry Pi?

I'm trying to use the keyboard library within Thonny on my Raspberrypi Zero W. However I receive an error saying "import error: you must be root to use this library on Linux." Can Thonny run scripts as root to avoid this error?
Sir.Socks
  • 179
  • 1
  • 5
1
vote
2 answers

Raspberry Pi Pico - problem with Thonny interpreter

I have a trouble with programming Raspberry Pi Pico. I am using Thonny IDE and micropython. I am just a beginner so just download code from their website (https://projects.raspberrypi.org/en/projects/getting-started-with-the-pico/6) and install it…
Marek
  • 13
  • 2
1
vote
2 answers

Above amounts in python

Once again I am having trouble with THONNY python. What I am having trouble with this time is that you need at LEAST 40$ to buy this. But what I am doing is you have to have 40$ exactly. How can I change it so the player has at least 40$? This is…
1
vote
1 answer

ModuleNotFoundError: No module named 'PIL' in Thonny

I'm on Windows 10 trying to update someone's file to Python 3. In any case, I cannot import Pillow with import PIL, despite having the proper version installed and having uninstalled and reinstalled the library. What can I do? How can I discover the…
1
vote
1 answer

How do i compare the mobile number in mysql database with the mobile number i want to input in thonny?

This is the program for fine payments. what i would like to know is how do i compare the mobile number in mysql database with the mobile number i want to input import mysql.connector database='UAEFINESSYSTEM') mycursor=mydb.cursor() …
1
vote
1 answer

How to make image jump only on the ground?

I am trying to make an image jump. I when I press the up arrow it goes up until it arrives at a certain position on the Y axis and starts going down. But I have a problem, the image is able to jump infinitely in the air kind of like flappy bird. I…
Noahp
  • 59
  • 4
1
vote
1 answer

Double moving images collision

In this game I am creating one image is controlled by the players using arrows (racecar) and two images (banana) which move in a defined direction and speed (which is slowed down for now so I could see better what was happening) but their starting…
Noahp
  • 59
  • 4
1
2
3
10 11