Quantcast
Browsing all 1234 articles
Browse latest View live

Python • Re: Script for waveshare relay module

OK, I understand that problem now, B.Goode. I will fix and learn more. Unfortunately I am ancient and a slow learner. I did like what AME said. It sounds simple. I am just worried that It might be TOO...

View Article


Python • Installing Python Mariadb connector on Pi Zero W

I am trying to repurpose an old Pi Zero to log to a Mariadb database, but I cannot get the Python connector to install. The command line for the install attempt and part of the error message...

View Article


Python • Re: Installing Python Mariadb connector on Pi Zero W

I am trying to repurpose an old Pi Zero to log to a Mariadb database, but I cannot get the Python connector to install. The command line for the install attempt and part of the error message...

View Article

Python • Re: Cannot determine SOC peripheral base address

So this was working for me to use old GPIO libraries (like for the waveshare relay hat) on the Pi5Code: sudo apt remove python3-rpi.gpio sudo apt install python3-rpi-lgpio but then today i...

View Article

Python • Autostart python program terminal window & restart after crash

This forum has been super helpful on this issue. I have things working about like I want them. Time to go the next logical step.I presently have an Autorun program to start a Python script in its own...

View Article


Python • Re: Autostart python program terminal window & restart after crash

The problem is that this script crashes frequentlyIs it the script or the Python program that crashes? In either case, and you likely have thought of this, fix the crashing problem.Statistics: Posted...

View Article

Python • How to get Python to use a custom library path

Greetings!Background:I am attempting to do some experiments with my GoPiGo3 robot, attempting to add a mutex to the SPI communication routines. I want to do this because I would like to use a GPIO...

View Article

Python • Re: How to get Python to use a custom library path

1. Using a python venv should do the trick. But if not, there is plenty of documentation in the python docs about changing that lib path. 2. Switch from thonny to something like VS Code which is meant...

View Article


Python • Re: Python package not available with apt

It would be worth read up on virtual environments - these have been around for a fair while but Bookworm and newer versions of Python are making the use of 'sudo' a very bad choice (as you could break...

View Article


Python • Using Python to patch a binary.

Hi Python-gurus here...I am an absolute noob in Python. I am at ease in c++ programming microcontrollers like the ESP8266.I have written a quite intensive program cf.:...

View Article

Python • My RPI-power-button-detect python script doesn't work on Bookworm

I've been using this script on 3 of my 4 rpis for several years now. Just installed RPi OS Bookworm on one of my rpis and it's failing with the exception:Code: Failed to add edge detectionRelevant...

View Article

Python • Re: My RPI-power-button-detect python script doesn't work on Bookworm

The RPi.GPIO package has not changed in years, so I can't tell what's happening here. The package is installed system wide and I can turn LEDs on/off.How to resolve this issue? Thanks!RPi.GPIO is...

View Article

Python • Re: Using Python to patch a binary.

Reading binary file in Python, and find a byte sequence:https://stackoverflow.com/questions/321 ... on#3217350Statistics: Posted by HermannSW — Tue Jul 02, 2024 10:06 pm

View Article


Image may be NSFW.
Clik here to view.

Python • Python3 code for ps4 controller mapping

Hello,I am having errors with this line of code that I've written in an attempt to map PS4 controller buttons. I'm connecting a Ps4 controller via USB to a Raspberry pi 4 using a Pygame library. The...

View Article

Python • Re: Running python script from PHP - crashes at "import...

I should have given more info at the start: The OS is Raspbian Linux 11 (bullseye). I installed using Thonny's 'manage packages menu option which i understand calls pip to install...

View Article


Python • Re: How to get Python IDE's to use a custom library path

(Updated Title)This is the way things fit together:Definitions:1. "system context":Anything run within a terminal window, (command line), called during boot, or anything executed outside an IDE.2....

View Article

Python • Re: Using Python to patch a binary [solved so far]

I need at least: SSID, WiFiPassword, Device Name, Cloud Account, Device Credentials.(the rest of the options and parameters can then be gathered from the cloud)The solution is quite simple, elegant...

View Article


Python • Wait for app to open with Python

Hi, I have a python script that I'm trying to have wait until Audacity is open. But I've had no such luck with finding something that works. Does anyone know how to make my script wait until Audacity...

View Article

Python • Re: Wait for app to open with Python

Hi, I have a python script that I'm trying to have wait until Audacity is open. But I've had no such luck with finding something that works. Does anyone know how to make my script wait until Audacity...

View Article

Python • Re: Script for waveshare relay module

I have managed to fit and compile the relay board and all is working well. Thank you all for your help. The thread is now officially closed and I am going to get a beer (or three) BarryStatistics:...

View Article
Browsing all 1234 articles
Browse latest View live