Python • Re: Syntax error: positional argument follows keyword argument pymodbus
I copied this code into Thonny, and it is throwing a "Syntax error: positional argument follows keyword argument".Can you please post the full error shown in Thonny as that may help identify where the...
View ArticlePython • need to run as sudo
When I run my code I get the following error message and have to run my code as sudo python.which I always forget to do. File "/home/pi/watering/wateronce.py", line 21, in <module>...
View ArticlePython • Re: need to run as sudo
If I run wateronce.py on a Pi5 running stock Bookworm 64-bit (with SPI enabled) there are no errors.Are you using Bookworm or something else? (and which Pi is it?)Statistics: Posted by neilgl — Tue...
View ArticlePython • Re: Unable to locate python3-paho-mqtt
We tried a fresh install of Pi OS Bookworm on the Malaysia Pi, same issue.I then changed the Debian sources.list file to point to the uk mirror. (deb.debian -> ftp.uk.debian)Ran sudo apt update, I...
View ArticlePython • Re: RuntimeError: Failed to add edge detection
I have tried all of you suggestions and installed rpi-lgpio and I get this errorCode: Traceback (most recent call last):File "/root/speedometer/main.py", line 4, in <module>import RPi.GPIO as...
View ArticlePython • GPIO DMA on RasPi5?
So, I have code that mostly works -- GPIO pins talking to a stepper driver chip (a la 3d printing).But... if you move windows around with RasPi Connect, it alters the timing, and inertia causes the...
View ArticlePython • Re: Reset gpio output when test is finished
This seems Micropython for a Pico. There is a subforum for that. Anyways, are you using Thonny? How do you stop the program? Try stopping with Ctrl+C, that should get you in the except...
View ArticlePython • Re: The intallation for python open cv wont work
Are you running "Bookworm" on that Pi3?What error messages did you see? hi sorry for the late respond and this is the type of error that shows up externally-managed-environmenterror: This environment...
View ArticlePython • Pygame.mixer missing - thought I installed all dependencies (incl...
Hi all:I'm trying to run pygame on an RPi 3B+, getting the ModuleNotFound Error. I've looked at all the stack overflow and RPi forum posts I can find, none of them help.ISSUECode: File...
View ArticlePython • RP Zero 2W GPIO and TX/RX not working simultaneously
I have a system where a RP Zero 2W communicates via serial to another system using the TXD/RXD pins (aka GPIO 14/15 board 8/10) which works fine except when I initialize a GPIO pin which I need for...
View ArticlePython • Re: RP Zero 2W GPIO and TX/RX not working simultaneously
Can you post your python code here so we can look at it and test on a Pi Zero 2Statistics: Posted by neilgl — Mon Mar 10, 2025 10:24 am
View ArticlePython • Re: Pygame.mixer missing - thought I installed all dependencies...
Using stock Bookworm 64-bit on a Pi3+, I created a venv with system packages, then installed pygame Code: pip install -U pygame==2.6.0 --user OK. Then run python and import pygame.mixer - all OKCode:...
View ArticlePython • Issue sending data from raspberry pi to phone app via bluetooth...
Just having an issue with sending data collected from sensors in an excel sheet on the raspberry pi to a mobile phone device. The code works but its not consistent and there is a lot of connection...
View ArticlePython • Re: Issue sending data from raspberry pi to phone app via bluetooth...
What is being used on the phone to receive the data via bluetooth?Do you know that the receiving end has no issues e.g. it correctly receives (say) 20 CSV files from some other system over...
View ArticlePython • Make this LED stay on
I have a scale project that checks the weight of a water cooler's bottle every hour (cronjob). When this runs, it turns on one of two LEDs to indicate the water level. The way the code runs now...
View ArticlePython • Re: Make this LED stay on
I suspect your problem is related to using gpiozero' to drive the LEDs.From what I remember gpiozero resets all used GPIO to their default state when your program exits.It could also be the...
View ArticlePython • Camera _init_ sequence not complete
As a beginner with Pi4B running Bookworm and V3 camera module with Picamera2 and Python3 I am trying to piece together code to allow my Raspberry Pi camera to be useful remotely using Connect. I have...
View ArticlePython • Re: Reset gpio output when test is finished
Maybe the bug was fixed with this commit: https://github.com/micropython/micropyt ... 92a5fa3069Statistics: Posted by DeaD_EyE — Thu Mar 13, 2025 8:25 am
View ArticlePython • Re: Camera _init_ sequence not complete
Hi, I'm not sure there's really enough code there for us to understand what's going on. The fact that your capture_video function starts with "self.camera.stop()" slightly implies to me that you've...
View ArticlePython • problem with flask app.py
Hello i wrote before for a project i managing for myself, i'd some issues with a double IP on Code: hostname -I and i solved thanks to the community, now i got another problem.I've making a...
View Article