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

Python • Re: Raspberry Pi 5 - "out of memory error"

Thank you! Worked like a charm! I'm using the following library to control WS2812 leds on a Pi5 via SPI:https://github.com/niklasr22/rpi5-ws2812Statistics: Posted by Hasitha — Thu Mar 27, 2025 11:30 pm

View Article


Python • Re: Creating Separate PWM Objects in Multiple Threads

To use a single PWM object in multiple threads, you would need to employ a locking mechanism to control access to the PWM object. Here's a general approach based on the text book <MicroPyhon...

View Article


Python • Re: opening in every screen one url

Thank u brother for the reply of course can give u more details about itI am using raspberry pi 4OS = Raspbain GNU/LinuxVersion = 12 bookwormID = raspbainID_LIKE= debainI am using X11 but I don't mind...

View Article

Python • Re: Environment is externally managed?

i think the best option is downgrading then since i do quite require telebot.Does anyone know how to downgrade or have any option for OS changes?Statistics: Posted by QueasyCarBoy — Fri Mar 28, 2025...

View Article

Python • Re: problem with flask app.py

Hi there!From what you described, it doesn’t sound like the issue stems from any specific coding errors—looking over app.py, nothing seems overtly “wrong”—but rather from the way the Flask application...

View Article


Image may be NSFW.
Clik here to view.

Python • Raspberry pi Bluetooth

Hi , I am writing a code for raspberry pi which makes the Pi's bluetooth visible to everyone and it would connect automatically to your phone without connecting the pi to your monitor . 1)Could you...

View Article

Python • Re: Raspberry pi Bluetooth

try this... sudo pip3 install bluezeroStatistics: Posted by pfharlock — Sat Mar 29, 2025 1:55 pm

View Article

Python • Can't get pyinput to receive events from second bluetooth device.

Sorry about the long post but I think I need to put as much info in as possible.I have two bluetooth devices that send keyboard presses and mouse events. One of them works with pyinput and the other I...

View Article


Python • Re: Can't get pyinput to receive events from second bluetooth device.

evtest reads physical events from the Linux kernel. I think pynput reads symbolic events via your windowing system. Install packages x11-utils and wev, and check how xev and wev see your events.I get...

View Article


Python • Understanding PIP Import Errors

I'm looking for pointers to resources to help me be more self sufficient in resolving errors on PIP imports. I've already posted my current issue on the Python Forum at...

View Article

Python • Re: Understanding PIP Import Errors

Are you using freeze to build your requirements file? I had spotted some time ago that this method often created longer lists than needed. Later I found out that it may include libraries that where...

View Article

Python • How to install dht22 (am2302) digital temperature humidity sensor on...

Hello people, I am trying to setup a dht22 (am2302) digital temperature humidity sensor on raspberry pi3 so the temperature and Humidity is displayed on a GUI configured on a touchscreen display...

View Article

Python • Re: How to install dht22 (am2302) digital temperature humidity...

On Bookworm it s now preferred to use a Python venv if you are going to use pip to install any libraries.The link in the text you quoted gives some information about how to do itFor more information...

View Article


Python • Pi5 - Unable to open USB port with Pyserial

I'm using Pyserial to manage serial communication over USB (FTDI drivers) to a Dynamixel U2D2 controller. Using the bookworm 64-bit OS on a Pi4B works perfectly, but on a Pi5, the serial.Serial(port,...

View Article

Python • SK6812RGBW or WS2812 support for RPi5?

Hi there,has anyone played around with PIOLib, like in the example fromhttps://www.raspberrypi.com/news/piolib ... o-control/?The thing is, that I would like to "easily" turn on LEDs on my...

View Article


Python • Re: SK6812RGBW or WS2812 support for RPi5?

I used the PIOlib example a bit, then moved over to Pico which was a better fit for my use case (low power).I didn't have any problems using PIOlib on my Pi 5.Statistics: Posted by rpdom — Thu Apr 03,...

View Article

Python • Re: Pi5 - Unable to open USB port with Pyserial

Which device are you using on the Pi5 - /dev/serial0 or /dev/ttyAMA0 etc.?Statistics: Posted by neilgl — Thu Apr 03, 2025 6:48 pm

View Article


Python • Re: picamera2 not working in venv

When you created your venv did you do so with the --system-site-packages command line argument?No I used the venv/bin/activateStatistics: Posted by Manasrpi5 — Thu Apr 03, 2025 8:59 pm

View Article

Python • PWM output problem after upgrade OS.

Test on Raspberry Pi 5B, I use this code works fine:Code: from rpi_hardware_pwm import HardwarePWMpwm0 = HardwarePWM(pwm_channel = 0, hz = 1000, chip = 2)after run:Code: sudo apt upgraderise exception...

View Article

Image may be NSFW.
Clik here to view.

Python • How to use background images to change buttons status in tkinter GUI?

Hello people, I currently have a GUI to control a microgreen farm, it uses the standard tkinter buttons, but would like to improve its look by using background images for the GUI instead, where one...

View Article
Browsing all 1225 articles
Browse latest View live