Python • Re: Failed To Add Edge Detection, GPIOZERO
Why are you using Bullseye? The current version is Bookworm!Statistics: Posted by rpiMike — Tue Jul 29, 2025 6:49 pm
View ArticlePython • scripts not running
my ras pi5 has stopprd running my scripts,scripts that used to run no longer work. i get the same error up for all of them, see image. any help would be greatly appreciated!Statistics: Posted by Bram1...
View ArticlePython • Re: scripts not running
Looks like you are trying to access a file on an external usb drive?Statistics: Posted by rpiMike — Sat Aug 02, 2025 6:32 pm
View ArticlePython • Re: troubleshoot paramiko install on pi zero w
Ok, thanks all, a quick google reveals the terminal command to reveal the pi zero w OS I'm running:Operating System: Raspbian GNU/Linux 10 (buster)Kernel: Linux 5.10.103+Architecture: armI take it,...
View ArticlePython • Cannot find BME280 module
Problem with python program reading the Pimoroni BME280 sensor.The program was lifted from an old Pi, and has no problem running on a legacy OS Trying to run on Pi5, Pi OS Bookworm Full version, fully...
View ArticlePython • Re: Cannot find BME280 module
Worked example using 64-bit RasPiOS Bookworm:Code: david@cm58lbw64dt:~/Support/owchita $ python -m venv .venv david@cm58lbw64dt:~/Support/owchita $ source .venv/bin/activate(.venv)...
View ArticlePython • which conda on a raspebrry pi zero 2 w
HiI am wondering which conda version i should install in pi zero 2w and where i can find a how to?ThanksStatistics: Posted by klaus12345678 — Thu Aug 07, 2025 9:49 pm
View ArticlePython • Python3-urllib3 - connection reset by peer
A previously happily working script is now failing with this key messageCode: ConnectionResetError [Error 104] Connection reset by peerI'm a RPI 5, with Python 3.11 and Urllib3 1.26.12-1. sudo apt...
View ArticlePython • Re: Python3-urllib3 - connection reset by peer
pip in venv might have newer versionsStatistics: Posted by wcl55 — Fri Aug 08, 2025 2:16 pm
View ArticlePython • I2C in python script
Short version: How do I send an I2C command from a python scriptLong version: I have a project in mind using an RPi and an SDR as part if an alarm system. Running on the RPi will be an app (rtl_433)...
View ArticlePython • Re: I2C in python script
For I2C, there are many tutorials. One example https://www.abelectronics.co.uk/kb/arti ... ith-pythonSending information through syslog could be possible, but you could also use a dedicated file (if...
View ArticlePython • sftp stop trying
I have a python script connecting sftp to a raspberry pi. It works fine but I'm a bit surprised. I'm testing the script. If I change portnr from let us say 1001 as given to 1002 the script will not...
View ArticlePython • Re: sftp stop trying
sftpretty.Connection() has a timeout option, which you didn't use.get() has a tries option, which you also didn't use.It can't trigger an exception if you don't tell it what the limits are.Statistics:...
View ArticlePython • Re: Failed To Add Edge Detection, GPIOZERO
clicked the bump feature cuz i was curious.. new to this website btw.Statistics: Posted by Procid — Wed Aug 13, 2025 3:10 am
View ArticlePython • SPI Communication at Raspberry Pi Model 4 B Using Python
We were previously working on the i.MX7 with TorizonCore, and the Python code for reading SPI data was functioning correctly. After porting the same Python script to a Raspberry Pi (as per harware),...
View ArticlePython • Re: SPI Communication at Raspberry Pi Model 4 B Using Python
It would help to know the device connected to the SPI bus.The SPI devices I used so far set CS low == active during the complete transmission, not only as a short trigger at the start.And spidev also...
View ArticlePython • how do you install numpy in venv?
Pi Zero W, Python 3, BookwormIn theory it should be trivial:Code: python3 -m venv wssource ~/ws/bin/activatepip install numpyBut it doesn't work. Instead of downloading ready code my pi tries to...
View ArticlePython • Re: how do you install numpy in venv?
Installing global version of numpy with "sudo apt install python3-numpy" works nicely, but is of no use in venv.Why not? Did you create the venv with --system-site-packages ?Statistics: Posted by...
View ArticlePython • Trixie Upgrade and lgpio
After upgrading to Trixie, I had to rebuild my python virtual environments for my various projects.First, to get pip working again, after activating the venv (source bin/activate).Code: curl...
View ArticlePython • Re: Trixie Upgrade and lgpio
Just sharing this in case anyone else runs into the same problems upgrading to Trixie.Perhaps this would be better collated with the other 200+ posts in the thread initiated by Raspberry Pi themselves...
View Article