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
0 answers

AttributeError: module 'adi' has no attribute 'Pluto'

I am trying to run the following code on Thonny using an SDR. # Import library import adi # Create radio object sdr = adi.Pluto() # Configure properties sdr.rx_rf_bandwidth = 4000000 # Get data data = sdr.rx() However, I get the following…
Roby
  • 25
  • 5
0
votes
0 answers

Thonny creates an error installing ts2vg, yet installs other packages fine

I tried running some code I wrote a month or so ago on my Mac. It runs fine until it gets to the functions required from ts2vg. When I run the code, it gives an error that ts2vg isn't found, thus I went to install it. However the package manager in…
RH4818
  • 1
  • 1
0
votes
1 answer

ESP8266 (Wemos D1 Mini) gives wierd output after micropython installation

I am currently working with a couple of ESP8266's using micropython and the Thonny IDE. Whenever the ESP boots up it gives some wierd unlegible output (see picture). I have already tried another ESP of the same model, a different version of…
0
votes
1 answer

OSError: -6 When making simple API Call in Micropython

Below is the micropython code that is supposed to use the api.sunrise-sunset to gather the sunrise & sunset times. The program worked about 2-3 times, and now without making any changes it provides the following error: >>> %Run -c…
0
votes
1 answer

While running wlan.status() command on esp32 it is giving value of 1010 instead of 1-5

While running this code on my esp32 device: import utime import network wlan = network.WLAN(network.STA_IF) wlan.active(True) wlan.connect("Dream Net R-632", "07132711") max_wait = 10 while max_wait > 0: """ 0 STAT_IDLE -- no…
Shaair
  • 9
  • 1
0
votes
0 answers

how to give an id to button after create them in a for loop in kivy

So for a school project we are making a game and we choose to make the Connway's game of life. the problem i'm asking help for is the following one: I made a grid of 10*10 of ToggleButton with a for loop in my kv files but to make the game work i…
alex
  • 13
  • 3
0
votes
2 answers

Why dosen't it print min_num?

this was an excrsize where I am supposed to make a list of random numbers and print the third smallest. I do not understand why it wont print min_num. import random def the_third_smallest(): random_nums = 0 random_lst = [] while…
0
votes
0 answers

ModuleNotFoundError: No module found named 'mysql' but only when running through Thonny

It's exactly as the title says. I downloaded mysql and the Python mysql connector and I'm trying to test it to see if it's working. Before, when I tried to run import mysql.connector in anything, I would always get the following error: Traceback…
Mickles
  • 1
  • 1
0
votes
0 answers

How can I display bytearray array on screen?

I am using a ST7789 coded oled screen and raspberry pi pico board for a project. After a long struggle, I understood some things. But I couldn't find how to print the bytearray array to the screen. I'm having a hard time because the library is…
0
votes
0 answers

Process ended with exit code 3 while executing python code

I installed Python 3.8.10 successfully with libraries but when i ran a sample Matplotlib code i am getting this exit code error and no output is coming . My path is correct , my installation is correct . I cannot seem to find the root cause of this…
Jae
  • 1
  • 5
0
votes
1 answer

Any way to get out of a while loop

I am making blackjack for a small project and I have the basics set up but I have encountered an issue. the game runs off of while Phand!=21 it will ask the user to hit fold or stand. when it hits its fine as it repeats and adds a a card and…
0
votes
0 answers

Facing problem in importing import numpy as np in thonny

i am very new to python using Respberry pi 4 B . trying to import numpy But got this error in shell import numpy as np Traceback (most recent call last): File "/home/xxxx/.local/lib/python3.9/site-packages/numpy/core/init.py", line 23, in…
0
votes
0 answers

How to move data from a spreadsheet to a different one?

i´m trying to write a code with Python 3.10 with the following conditions: I have two main Spreadsheets. The first one has a list of kilometers points (column B) and the second one has a macro which needs the kilometer point to be entered. I would…
0
votes
2 answers

'Exception in tkinter callback' and '[Errno 24] Too many open files.'

quite new to Python and come across a problem that I'm struggling to diagnose. I am working on a project involving a Tkinter menu and using an ADC connected to a potentiometer (which will hopefully be replaced by a muscle sensor once I've gotten the…
mar
  • 1
  • 1
0
votes
0 answers

Faulty Python script after using SFTP

I have a running python program I wrote in thonny. Everything worked perfectly fine, when I ran it from the IDE and the terminal. I run SSH on the Raspberry Pi I'm using for this application to start my program. Then I tried using SFTP to download…