Python • Re: Package discid not found
I installed python3-libdiscid on rpi 6.6.51 (sudo apt install python3-libdiscid). When I run python (3.11) and import discid I get "No module named 'discid'. Every other apt install python3-* that I...
View ArticlePython • Bluez Bluetooth Speaker Volume Sync
Hi, I am very new to using the pi, I'm trying to make a bluetooth speaker. I have all of the bluetooth set up with Bluez, and I have the playback set up with Pulseaudio, but I can't find a way to sync...
View ArticlePython • Subprocess Fails to Run
Goal:To use a barcode scanner to execute a specific script. Process:1. Operator scans part number barcode on build sheet. (Example: 12345). 2. "barcodeTest1.py" takes that input and defines the...
View ArticlePython • A script written in Python doesn't behave consistently depending on...
System: Pi-4 (8g) running Buster on a GoPiGo-3 robot.Background:I have a script that I (attempt) to run during startup, (as a cron job), that shakes and centers the pan-and-tilt that holds the robot's...
View ArticlePython • Re: Subprocess Fails to Run
If I run 12345.py separately, it works as expected. Why does the LED not start blinking when 12345.py is run as a subprocess inside of barcodeTest1.py?Are you running Bookwork and using Python's...
View ArticlePython • Re: A script written in Python doesn't behave consistently depending...
This is wrong. Won't run as a program.Code: #!/usr/bin/python3.7This works for me.Code: #!/usr/bin/env python3Statistics: Posted by SurferTim — Fri Nov 15, 2024 11:21 pm
View ArticlePython • Re: Send email from python
do any email clients allow you to send emails from command line?you would authenticate at setup, then emails could be sent without authenticationor any alternate ways to get emails from crontab?All...
View ArticlePython • Re: Multiprocessing does not work
This topic can be closed!Statistics: Posted by Wessiez — Sun Nov 17, 2024 10:14 am
View ArticlePython • Re: Rpm,tachometer, refine
Instead of using datetime.datetime.now(), perhaps better to use time.monotonic() instead.This is not the root cause, but will at least improve a bit.Statistics: Posted by ghp — Tue Nov 19, 2024 10:11 pm
View ArticlePython • Reading button state at program start
I am using the gpiozero library on my RPI 5 to read the state of a button. The button is part of a robotics application and is pressed when a mechanical part has reached its extreme position....
View ArticlePython • Re: Reading button state at program start
My question is whether it is possible to detect the pressed (held) state at program startWithout the connotations of 'held' you can check the current status of the Button at any instant with...
View ArticlePython • Re: stop loop with button press--raspberry pi and gpio
sorry for a late reply, i had gotten all the parts in the mail finally and pulled everything apart to cut wires to length, solder boards and connectors, all that fun jazz. just got it back together...
View ArticlePython • Automatic application launch at startup
Hello, I recently noticed that after resetting my RPi-4, my python application no longer starts. I regularly update my operating system...However, I can still run the application in manual mode....
View ArticlePython • Re: Automatic application launch at startup
Switch to X11if using bookwormsudo raspi-configThen option 6Statistics: Posted by gordon77 — Thu Nov 21, 2024 8:18 am
View ArticlePython • Failed to build wheel for...
Hi, since I started my engineering project I strugle with a lot of problems with installing libraries to my Raspberry Pi 4b with 4GB RAM. I had problem with installing OpenCV (now installed...
View ArticlePython • Re: Failed to build wheel for...
Did you create the python virtual environment with system packages or not? Code: mkdir my_projectcd my_projectpython -m venv --system-site-packages envsource env/bin/activateStatistics: Posted by...
View ArticlePython • Decimal digits extraction of 'Perfect Numbers' and Python's...
'Perfect Number #30'Code: import sysdef compute_perfect_number_52(): # Increase the digit limit for integer-to-string conversion sys.set_int_max_str_digits(10**8) # Set a sufficiently large limit #...
View ArticlePython • Re: Decimal digits extraction of 'Perfect Numbers' and Python's...
'Perfect Number #30'Code: import sysdef compute_perfect_number_52(): # Increase the digit limit for integer-to-string conversion sys.set_int_max_str_digits(10**8) # Set a sufficiently large limit #...
View ArticlePython • Python 3.9 for coral usb accelator
EDIT: succeeded by following instructions here : https://www.youtube.com/watch?v=QdlopCUuXxwAs said on the site for the usb coral accelator the use of python lower than 3.10 is necessary.My default...
View ArticlePython • Re: Python 3.9 for coral usb accelator
As said on the site for the usb coral accelator the use of python lower than 3.10 is necessary.My default python version is 3.11 and i thought I added pyton 3.9 too.My questions:How to activate...
View Article