Python • Re: Error installing mariadb
If you want to install the database server you need mariadb-serverStatistics: Posted by DirkS — Wed Aug 27, 2025 9:28 pm
View ArticlePython • Problems with venv
I'm confused by the required loading of the VENV directory, which I've named foobar.I the happy days before VENV I was used to install an MQTT package using the command: sudo pip install paho-mqttAnd...
View ArticlePython • Using Python to Fetch and Auto-Update Data on Raspberry Pi
I'm experimenting with a Raspberry Pi project where i want to automatically fetch data from a website using python and then update it on mu pi in real time. What’s the most reliable way to handle...
View ArticlePython • Re: Problems with venv
Have you activated the venv before running the python script?Here, it fails if I do not activate the venvCode: python pub.pyTraceback (most recent call last): File "/home/pi/myenv/pub.py", line 1, in...
View ArticlePython • Re: Using Python to Fetch and Auto-Update Data on Raspberry Pi
A Google of 'Python scraping web pages' https://www.google.com/search?q=python+ ... e&ie=UTF-8 returned this one 'Python Web Scraping: Full Tutorial With Examples (2025)'...
View ArticlePython • "lgpio.error: 'GPIO busy'" when running flask server and...
Hi there, long-time lurker, first-time poster.I have built a Pi e-ink dashboard using a Waveshare 7.5 e-paper screen and a Raspberry Pi 3b+. I am using Python for the script that renders and displays...
View ArticlePython • Re: Using a 4-20 mA Transmitter with a Raspberry Pi
Hi ghp, Thanks so much for responding to my question! I have tried and read through your advice as well as other forums for communicating with a MCP4725 via a I2C Raspberry Pi interface but none have...
View ArticlePython • Re: Can access GPIO from foreground but not background
Can you edit the post to add code tags around the python script to preserve indentation so we can look at it?Statistics: Posted by neilgl — Sat Aug 30, 2025 8:53 am
View ArticlePython • Python module hangs, keeping script from crashing
I'm getting an exception in a module my python script uses but which I have not written. It seems that my script ends up hanging when the exception happens. If my script exited at that point, then it...
View ArticlePython • Re: Python module hangs, keeping script from crashing
loop_start() is a valid approach.More details? Then see https://pypi.org/project/paho-mqtt/#network-loopIt would help to see full code. The error code points to some problem with socket-module. Be...
View ArticlePython • Re: "lgpio.error: 'GPIO busy'" when running flask server...
Where does the manager import come from?Code: from manager import *Statistics: Posted by neilgl — Sun Aug 31, 2025 9:33 am
View ArticlePython • Re: Error installing mariadb
Looks like pip install mariadb fails on Bookworm Lite (in a venv) as "Python.h" is missing. It is present on a desktop install.We can workaround that by Code: sudo apt install...
View ArticlePython • How to Update cpython
I'm trying to install Flask to RPi Bullseye OS on a Pi3 . A lot of packages I try and install or update come back with the same general error that "cpython" is invalid.Code: @raspberrypi:~ $ python -m...
View ArticlePython • Re: How to Update cpython
Personally, I'd start with this error 'Defaulting to user installation because normal site-packages is not writeableStatistics: Posted by DS256 — Mon Sep 01, 2025 3:57 pm
View ArticlePython • Pi 5 with SparkFun Load Cell Amp
Hi, I have tried and tried but no luck getting the PI 5 to read from the load cell. The amp works fine, i got it working with an ESP32, but not the PI.Code: #!/usr/bin/env python3"""Raspberry Pi 5...
View ArticlePython • Re: Pi 5 with SparkFun Load Cell Amp
Pi GPIOs are 3.3V. VDD needs to be connected to 3.3V not 5V.PRO TIP: In many cases, you can just short VCC and VDD together. If your microcontroller uses 3.3V logic however, you'll want to connect VCC...
View ArticlePython • Re: Interfacing with CN0554 using PyADI-IIO
To set DAC output on the CN0554 using PyADI-IIO, use the .raw attribute of the DAC channel:Code: import adicn = adi.cn0554(uri="local")cn.dac.voltage0.raw = 32768 # Sets mid-scale output...
View ArticlePython • Why does this work like this
What I have written works as needed. However, it does not operate in the way I expected and I like to understand the mechanisms behind the scenes. Please consider the following code:Code: #this...
View ArticlePython • Re: Why does this work like this
My understanding is that strings in python are immutable. yesI believe that means when a string is changed, the string is copied with alterations to a new memory location and the memory value in the...
View ArticlePython • Unable to install pyvisa-py
Hello to all:I have a still working Raspberry Pi Model B Rev 1, running Raspbian GNU/Linux 12 (bookworm), Kernel: Linux 6.12.34+rpt-rpi-v6My goal is control my DSO using the...
View Article