Python • Writing generated audio as FLAC?
I am trying to generate some audio and save it to a file as FLAC. I am misunderstanding several aspects, and the result is an "IndexError: tuple index out of range" error in the last line here:Code:...
View ArticlePython • Re: RPI Servo
maybeif not data: continueI tried it, the code don't stop like before, but it still don't execute nothing after the first command. Any help?Statistics: Posted by Martin1506 — Fri Jan 19, 2024 4:52 pm
View ArticlePython • Re: very noisy SoC temperature measurement (RPi5)
More like:The temperature from vcgencmd is in red. A cpu stress was initiated at midtime of the experiment.Script to reproduce:Code: import subprocessfrom time import sleepfrom math import pifrom...
View ArticlePython • Re: tflite-support error
I had the same error, but it looks as if I managed a workaround for it.I am using Thonny and am working with Python 3.9.18. It dawned on me that the interpreter was set to 3.11.2 (displayed in the...
View ArticlePython • Good Evening guys i hope you guys can help me
i have been trying to run my code on the rasberry pi3 i keep getting an error message " cannot import name 'load_dotenv' from 'dotenv' ve checked pip list for dotenv and found it there. ive...
View ArticlePython • pip3 Error Installing Pi3D on Pi 5
Hope PaddyG or someone else in pi3D Land sees this ...I'm trying to install Pi3D on a shiny, new 4 GB Pi 5 with the latest Debian-based RPi OS, and when I try to sudo pip3 install pi3d (also in...
View ArticlePython • Re: Good Evening guys i hope you guys can help me
Never seen that error. If you change the title of your post to something like the following, you might get more people reading. Those who read are more likely to be people with relevant...
View ArticlePython • A common Python importing problem. Re: Good Evening guys i hope you...
That's a Python-language module (library) import problem. It is not specifically aRaspberry Pi problem. I see it everywhere Python is used. I get hit with it, myself.The source of the problem is most...
View ArticlePython • Re: pip3 Error Installing Pi3D on Pi 5
See the official documentation re python venv https://www.raspberrypi.com/documentat ... spberry-piI usually create a venv with system packages:Code: mkdir my_projectcd my_projectpython -m venv...
View ArticlePython • Bookworm python lgpio module version question
I am running Bookworm on raspberry pi 4. When I run pip list for system-wide packages is see lgpio ver 0.2.2.0. pi@desktop-pi:~ $ pip list | grep lgpiolgpio 0.2.2.0pi@desktop-pi:~ $ I then created a...
View ArticlePython • Re: Raspberry Pi 5 - gpiod vs RPi.GPIO
old school RPI user here, I've had numerous models of each release, since the very beginning.I've always been more geared towards the electronics projects utilizing the GPIO, so I'm very well versed...
View ArticlePython • cant enter data into Domoticz
Please help.Upgraded to PI OS bookworm and to a PI4after this my python script does not work anymore. I worked before perfect.I use:temp = "10.0"command = 'curl -s...
View ArticlePython • Bluetooth - Transferring Data from one RPi to another RPi
I would like to transfer data from one Raspberry Pi to another Raspberry Pi.They are about 3 metres apart.Is this possible to do this using Bluetooth and if so, could someone please advise what is...
View ArticlePython • Re: cant enter data into Domoticz
Some questions:Did you upgrade or perform a clean install of Bookworm? There is no supported upgrade procedure only clean installWhat is the error you are getting and from where? Is the CURL call the...
View ArticlePython • Re: Bluetooth - Transferring Data from one RPi to another RPi
File transfer from Pi to Pi. Download just one file (filetransfer.py) from here:https://github.com/petzval/btferretRun on both machines, but set scan parameters via hciconfig first.Code: hciconfig...
View ArticlePython • Running python code in a cluster
Hi.Can you run any type of python application in a Raspberry pi cluster? If I have python application the calculate some numbers, can I run that in a cluster. Will it help to run it faster?Can any one...
View ArticlePython • Re: Running python code in a cluster
Can any one help me a link to a cluster setup? https://www.raspberrypi.com/tutorials/c ... -tutorial/Or there are many entries on the official Raspberry Pi New Blog...
View ArticlePython • Re: Raspberry Pi 5 - gpiod vs RPi.GPIO
Had Raspberry Pi pre-installed this drop-in replacement rather than a 'RPi.GPIO' which can't work, I am not sure many people would have had anything stop working, would have noticed that anything had...
View ArticlePython • Code Python REPL
Hello,I am new to this forum and just started with Rasberry Pi 4 model B and I started my electronics journey. I am a beginner with Python and Have some understanding but as you will see below there...
View ArticlePython • Re: Code Python REPL
Have a look at the button example in gpiozero documentation https://gpiozero.readthedocs.io/en/stab ... tml#buttonStatistics: Posted by neilgl — Tue Jan 23, 2024 1:58 pm
View Article