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

Parsing , tags value using feedparser in python from a Atom/xml feed

I am using feedparser for parsing data from an Atom/xml feed file. The link for the file is: https://alerts.weather.gov/cap/oh.php?x=0 This is a feed that is put out by the National Weather Service for providing weather alert information. This feed…
0
votes
2 answers

Controlling Servo with PCA9685 and Raspberry Pi

I am trying to control 2 servos from my pca9685 which is connected to my raspberry pi. I have written code that works with key inputs like I want, but I am only able to use one key input, and then I don’t get a response after the first key input.…
0
votes
0 answers

Running an infinite loop in Thonny/Python or RaPi locks up IDE, how can I break out of it without rebooting?

New to python, but this may be an issue with Thonny also. The code is an infinite loop acting as a timer. While True: #Determine if relay needs to turn on off If I have a small number of timer instructions I can still click stop in Thonny and…
VirtualLife
  • 402
  • 5
  • 14
0
votes
0 answers

local variable referenced before assignment - Surely not this difficult

I'm trying to write a script to control movements of a camera. I'm writing it in Thonny on a Raspberry Pi. I receive the following error when trying to move the camera using the GUI buttons. I've asked around and tried troubleshooting the problem…
0
votes
0 answers

How to write a function which takes a filename and returns a string with all \n characters replaced by "_"

I'm trying to write a function that takes a filename and returns a string with all \n characters replaced by "_" but my code is not returning anything in the shell (comes up with no errors) but I am unsure what I'm doing wrong! We haven't learned to…
Francesca
  • 5
  • 3
0
votes
2 answers

How to modify a function to call to the first function?

I'm trying to work out how to modify is_odd so that it calls to is_even to determine if its argument is an odd integer def is_even(n): if (n % 2 ==0): return("True") else: return("False") def is_odd(n): if not(is_even): …
Francesca
  • 5
  • 3
0
votes
4 answers

Thonny : installing tensorflow and importing it

I am having trouble importing and installing tensorflow. I can't install it via that Thonny manage package option nor via the command window for windows operators. I get the same error for both ways: ERROR: Could not find a version that satisfies…
user218030
  • 107
  • 3
  • 12
0
votes
0 answers

Error trying to install tensorflow on Thonny IDE

I am trying to install tensorflow on the Thonny IDE however I am getting this error: ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none) Error: No matching distribution found for tensorflow I am not sure…
user218030
  • 107
  • 3
  • 12
0
votes
1 answer

How do I modify my code to create trackbars for adjusting the detection parameters?

I have a code that thresholds the frame. I want to add trackbars for adjusting the detection parameters, but because I'm new in OpenCV I can't figure out how to do this. The premise is that I have and orange golf ball, that I want to detect, but I…
0
votes
2 answers

How Can I Allow the User to Remove an Object From a .txt file Using Json through Python

Summarization of the problem I made this address book that dumps user input onto a .txt file, I want to be able to let the user erase a person saved in the address book(the .txt file) if they wish to. How should I go about this? Basically I just…
0
votes
1 answer

Is it possible to run a particular line of Python code instead of the whole script in Thonny?

I just installed Thonny and took a look at some beginner guides. I can easily run whole script by pressing "play" button (or pressing F5). However I could not figure out how to run only some particular lines in the script.
0
votes
1 answer

Python backspace (\b) creating checkmark characters

I'm a Raspberry Pi using Thonny Python's IDE to code, and whenever I try to use a backspace in the form of '\b', it outputs as a check mark: Like this one I've already looked at some articles on here and only a few mention a GUI bug within Tkinter,…
Peter S
  • 1
  • 1
0
votes
3 answers

Thonny IDE throws AssertionError on startup

I have faced error while opening the Thonny Ide. ERROR: Internal error Traceback (most recent call last): File "C:\Program Files (x86)\Thonny\lib\tkinter\__init__.py", line 1705, in __call__ return self.func(*args) File "C:\Program Files…
KOUSIK daniel
  • 305
  • 1
  • 3
  • 11
-1
votes
1 answer

Can Powershell Replace PuTTY/Thonny/Arduino IDE as a Serial Terminal?

I often use Powershell as my all-in-one command line interface for everything I can manage. I have managed to get 'cl' in Windows to work to compile C code in stock Powershell instead of downloading the full VisualStudio IDE and the special…
-1
votes
1 answer

How to run a flask program when debug = True

I am a beginner to flask and I have been trying to run a simple program. For some reasons I am using THONNY as I just could not get flask running in a virtualenv even after so many tries. In thonny it worked without a virtualenv Coming at the point…
Rishi N
  • 57
  • 6
1 2 3
10
11