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
5
votes
2 answers

How can you make a micropython program on a raspberry pi pico autorun?

I have used the software Thonny to send programs to my raspberry pi pico. I am trying to make a specific program auto run when my pico is plugged in. At the moment another program which is on the pico auto runs but I want another program to run…
3
votes
1 answer

How do I manually install a library in Thonny

I want to install this library using Thonny https://github.com/adafruit/Adafruit-uRTC to use a DS3231 with my Raspberry Pi Pico. I cannot install it via the built-in package manager feature for two reasons. The version on PyPi is out of date and…
Ben Robinson
  • 21,601
  • 5
  • 62
  • 79
3
votes
5 answers

Keyboard shortcut to comment code in Thonny IDE

Whats is the keyboard short cut to comment single line of code and slsected lines of code in Thony IDE for python? Ie, The Thony equivalent of ctrl + / in VS Code
B45i
  • 2,368
  • 2
  • 23
  • 33
3
votes
1 answer

Assertion Error From a common.py file for code editor

(Please note: I am a beginner with Python) When I try to input my bssid it gives me an assertion error referencing a section of another file of code called common.py that I think comes with my code editor (thonny). How would I remedy this? import…
2
votes
1 answer

Issue to installing module in Thonny (Python text editor)

I downloaded Thonny (which is a text editor for python) for using my Raspberry Pi Pico, and I tried to install a module in "Manage packages", when I began the installation, this error line code appeared: ERROR: Can not combine '--user' and…
2
votes
0 answers

cannot import name 'Serial' from 'serial'

I got a Rasberry Pi 3B+ up to date with python libraries 2.7 and 3.7 also up to date. I try to run that code : from serial import Serial import RPI.GPIO as GPIO import os, time from gsmHat import GSMHat, SMS, GPS But I got this issue…
2
votes
4 answers

Installing and using pyperclip in Thonny IDE

I've been trying to learn python using Automate the Boring Stuff with Python (has not been as easy as I would have liked). In chapter 6, the author is using a module he created for a project. I seemingly installed the module successfully, but I'm…
Mil13
  • 25
  • 4
2
votes
1 answer

(Noob) Writing Rock, Paper, Scissors in Python. The Tie option doesn't produce a tie result

This is my first time posting and using this site, sorry if this isn't the best way to ask. I have tried researching myself and looking for answers on this forum but each display i find is either a different language to my own or has a different…
Mr.Mango
  • 21
  • 2
2
votes
2 answers

how to fix "OSError: [WinError 193] %1 is not a valid Win32 application"

I am trying to get along with pandas. I am learning Python using Thonny as IDLE. I installed pandas using the pip command in my cmd. Somehow i couldnt import pandas method in my IDLE, therefore i added it as package through settings. Problem is:…
Wumba
  • 99
  • 1
  • 12
1
vote
0 answers

how to use pythontutor.com visualization in pycharm or visual studio IDE

since im new in coding using a visual debuger is a big help for me to understand the codes im writing , using pythontutor.com or thonny app is very helpful as long as we do not import any external module . some where i read to prevent the problem…
zorg
  • 23
  • 4
1
vote
0 answers

Adafruit Library Import Error in Thonny despite being added

I am currently working on a project where I need to convert a analog signal to a digital one therefore I am using an ADS1115 ADC Converter. This converter is connected to my Raspberry Pi Pico on a bread board. I am trying to run a basic test script…
YungT
  • 11
  • 2
1
vote
1 answer

how to make a loop to add multiple button

So i'm making a game for a class project and i want to add a grid of button, the size don't matter but after 2 day of try i m lost here is my python code: import numpy as np from collections import namedtuple from kivy.app import App from…
alex
  • 13
  • 3
1
vote
1 answer

uasyncio.create_task does not run coroutine (micropython)

Before I start an issue on github, just wanted to know, if I am doing smth wrong. This basic example should start a loop and after one calls the stop method it should stop. However, the print("while loop") gets not executed at all. rp2040 Zero…
webdeb
  • 12,993
  • 5
  • 28
  • 44
1
vote
0 answers

Error while loading a remote file via the _load_file( ) method - Thonny IDE Plugin

I am trying to load a remote .py file in Thonny editor but I get the following error: File "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/thonny/editors.py", line 193, in _load_local_file …
limitcracker
  • 2,208
  • 3
  • 24
  • 23
1
vote
2 answers

_tkinter.TclError: couldn't read file "C:\Users\{username}\AppData\Local\Temp\_MEI45522\sv_ttk\sv.tcl": no such file or directory

I have used Sun Valley Ttk Theme for my project (.py). It works on IDE (Thonny) but doesn't work when I converted the .py file to .exe. I got this error for the line: sv_ttk.set_theme("light"): _tkinter.TclError: couldn't read file…
E__
  • 45
  • 8
1
2 3
10 11