Python • RSS BeautifulSoup timeout error
This code works ok for a few minutes then stops with a timeout error Here's the code:Code: from time import time, sleepfrom bs4 import BeautifulSoupimport requestsfrom random import randrangewhile...
View ArticlePython • Re: gpiozero RuntimeError: Cannot determine SOC universal base address
Sorry did not read the service part. The guide to all things startup is here: viewtopic.php?t=314455Thank you, I solved this problem by modifying the python programStatistics: Posted by yq3w — Wed May...
View ArticlePython • I got a massive error and have no idea what it means
This is my code:import timeimport pyautoguiimport keyboard# Get initial mouse positioninitial_x, initial_y = pyautogui.position()while not keyboard.is_pressed("esc"): # Click at the initial mouse...
View ArticlePython • Re: I got a massive error and have no idea what it means
One of the imported libraries in your python code is trying to run a program called dumpkeys with the command line argument --keys-only.The program is failing. Try running Code: dumpkeys --keys-only...
View ArticlePython • Quesion about tkinter tk/ttk widgets and metrics
I am writing a UI using tkinter and ttk widgets.Having struggled with pack() and "automatic" placing of widgets, and failed, I am trying a different tack, namely placing things where I think I want...
View ArticlePython • ImportError: libgpiod Python bindings not found
I created a virtual environment in raspberry pi 5 to handle servo motors with a servo driver hat B, and installed adafruit_blinka and manually installed libgpiod with sudo apt install -y...
View ArticlePython • Re: ImportError: libgpiod Python bindings not found
I created a virtual environment in raspberry pi 5 to handle servo motors with a servo driver hat B, and installed adafruit_blinka and manually installed libgpiod with sudo apt install -y...
View ArticlePython • Automatic start up of main.py
I did fresh installation of latest raspbian-bookworm 64bit on my RPi-4 and script main.py in folder Project. I have installed some neded libraries in folder env inside of the folder Project and I can...
View ArticlePython • Re: Automatic start up of main.py
I did fresh installation of latest raspbian-bookworm 64bit on my RPi-4 [ ... ]After reboot nothing happend. This command worked normally few months ago.What I am missing?I think you are missing the...
View ArticlePython • Help with detecting events with Buttons
Newbie at Python and Raspberry Pi usage here; I had a question regarding event detection and buttons. I have servos which I want to execute a specific coordinated motions with different button...
View ArticlePython • Pi 5 Uarts not Exposed to PySerial?
I'm working on connecting a serial device to a raspberry pi 5 over UART3, but I haven't been able to find the COM port with PySerial. I have the following in my /boot/firmware/config.txt fileCode:...
View ArticlePython • Re: GPIO.wait_for_edge >>> RuntimeError: Error waiting for...
i can confirm that GPIO.wait_for_edge() does not work in RPi5 but used to work in RPi4. What I see is somewhat different - function never returns despite there being an edge on the port pin. This has...
View ArticlePython • Pi 5 pigpio no longer available. How to read 9 bit serial
HelloI am reading 9 bit serial in Python using bb_serial_read_open() which uses the pigpio library. It looks like this is no longer available on the pi 5. I don't know if this is the place to post...
View ArticlePython • Re: Regarding Libraries to playback audio using python code in...
While I haven't tried the python code myself yet, I have had good results with the excellent BASS library.I have a music player which handles MP3 and streams such as net radio stations which uses BASS...
View ArticlePython • Re: Pi 5 pigpio no longer available. How to read 9 bit serial
Maybe switch to pySerial?https://pyserial.readthedocs.io/en/late ... intro.htmlStatistics: Posted by deepo — Tue May 21, 2024 11:22 am
View ArticlePython • Re: [SOLVED] Script execution speed, RFID reader system
Hi. This project is of interest to me. Can you share more about what you are doing and perhaps some code examples? Do you have a GIT repo maybe?Hi, I have good performance reading one tag, it's just a...
View ArticlePython • Program to blink 3 LEDs
Hi, I have created a program to blink 3 LED's in sequence. Im just sure if the hardware button is faulty or not. Can anyone share their views on the code? Code: import RPi.GPIO as GPIOimport timeLED1...
View ArticlePython • Re: help with soundboard
Run your script at start up (which may require some fettling to get audio working)Disable automatic login.Set a strong password.Disable passwordless sudo.[shameless self promotion]Running A Program At...
View ArticlePython • Re: Program to blink 3 LEDs
Hi, I have created a program to blink 3 LED's in sequence. Im just sure if the hardware button is faulty or not. Can anyone share their views on the code? Code: import RPi.GPIO as GPIOimport timeLED1...
View ArticlePython • Re: Automatic start up of main.py
Few simple steps to get everything working (in my case).To create bash file:Code: sudo nano /home/vlado/Project/StartMain.shContent of it:Code: cd /home/vlado/Projectsource env/bin/activatepython...
View Article