Quantcast
Channel: Raspberry Pi Forums
Browsing all 1579 articles
Browse latest View live

Python • Re: python/SVG with namespaces

Code: data = """<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg width="512" height="512" viewBox="0 0 135.46666 135.46667" version="1.1" id="svg1"...

View Article


Python • ImportError: : no module named 'gpiozero'

gpiozero is installed on the Raspberry 5 so why does this error appear for the code: from gpiozero import LED ?Statistics: Posted by peterozz — Mon Feb 02, 2026 7:32 pm

View Article


Image may be NSFW.
Clik here to view.

Python • Re: ImportError: : no module named 'gpiozero'

Seems to be working OK for me on a Pi5 running Trixie with no virtual environment createdStatistics: Posted by neilgl — Mon Feb 02, 2026 8:37 pm

View Article

Python • Kivy. Any kivy experts here?

Hi all I've written s couple of applications using Raspian10 and kivy 2.1.0 running on a pi3 with touch screen.I'm finding the apps slow down and become unresponsive after some continuous use . This...

View Article

Python • Re: Kivy. Any kivy experts here?

I'm finding the apps slow down and become unresponsive after some continuous use . This doesn't seem to happen on a linux (kubuntu) desktop, and I don't see any obvious memory leak. I.e. the app...

View Article


Python • activate venv from script?

I have a setup with a headless pi and the gravitrax bluetooth bridge.I'd like to have a script running on boot, this script will wait for a button push.When I push the button the program needs to...

View Article

Python • Re: activate venv from script?

I have a setup with a headless pi and the gravitrax bluetooth bridge.I'd like to have a script running on boot, this script will wait for a button push.When I push the button the program needs to...

View Article

Python • ModuleNotFoundError: No module named 'adafruit_dht' >>>

I am testing a DHT11 example code shown below and get this error message. But when trying to install this adafruit_dht I get this message in the terminalRequirement already satisfied: adafruit_dht in...

View Article


Python • Re: ModuleNotFoundError: No module named 'adafruit_dht' >>>

Are you using a venv?If so, did you create it with the --system-site-packages packages option?If you didn't, you won't have access to system level python packages/modules when the venv is...

View Article


Python • Pi5 Python CNC

I am looking to implkement a 2 and/or 3 axis CNC on a Pi 5, using Python, Is there any code info out there on this subject,? I have only found for Pi3 & Pi4 so farStatistics: Posted by TechyWalla...

View Article

Python • Re: Pi5 Python CNC

I am looking to implkement a 2 and/or 3 axis CNC on a Pi 5, using Python, Is there any code info out there on this subject,? I have only found for Pi3 & Pi4 so farIn most respects a Pi 5 is...

View Article

Python • Iterating over pairs of list elements

Hi, everyone.Code: # Is there a simpler way of writing the next 4 lines?:for px in range(len(bodies)): for opx in range(px+1, len(bodies)): p=bodies[px] op=bodies[opx](I'm working my way through 'Make...

View Article

Python • Re: Iterating over pairs of list elements

Code: from itertools import productfor px, opx in product(bodies, bodies[1:]): print(px, opx) # or if you want AA, AB, AC, Ba, BB, BC, ....for px, opx in product(bodies, repeat=2): print(px,...

View Article


Python • Python v3 Errors

Hi everyone,I have a script that was working in python 2. I updated my pi and now using python3, I'm getting errors when I try my code. Code: #!/usr/bin/env python#green/data0 is pin 8#white/data1 is...

View Article

Python • Re: Python v3 Errors

https://stackoverflow.com/questions/378 ... ead-of-strStatistics: Posted by ame — Mon Feb 16, 2026 4:04 am

View Article


Image may be NSFW.
Clik here to view.

Python • first Python Qt6 setup for GUI app

after try C++ & Qt6 see viewtopic.php?t=396208#p2363702want see how that works with Python,it is actually easy.on a new setup* RPI4 ( headless VNC )* RPIOS Desktop 64bitCode: sudo apt install...

View Article

Image may be NSFW.
Clik here to view.

Python • Building a custom Alarm Clock UI on a Pi Zero 2W – Choosing between...

Hello everyone,As a beginner, Which of these two should I focus on learning to achieve this specific design on a Pi Zero?I'm starting my first Raspberry Pi project, which involves making a smart...

View Article


Python • Re: Building a custom Alarm Clock UI on a Pi Zero 2W – Choosing...

As a beginner, FWIW, as a first project I'd suggest researching an already well documented project that can lead you through your considerations. From there you can branch into creating from...

View Article

Python • Re: first Python Qt6 setup for GUI app

That python qt creator looks good.Statistics: Posted by neilgl — Mon Feb 23, 2026 11:22 am

View Article
Browsing all 1579 articles
Browse latest View live