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

Image may be NSFW.
Clik here to view.

Python • rc.local to run a Python Module in virtual enviroment

I have the following structure on my pi: /home/pi/pirate-mp3:----.venv----mp3:-------- resources-------- __init__.py-------- __main__.py.venv contains my virtual environment for running the module....

View Article


Python • Re: rc.local to run a Python Module in virtual enviroment

The guide to all things startup is here thanks to thagrol: https://forums.raspberrypi.com/viewtopic.php?t=314455Statistics: Posted by neilgl — Mon Sep 23, 2024 7:45 pm

View Article


Python • Re: How to code remotely raspberry pi zero W

tanks everyone, I'm using Thonny!FabioStatistics: Posted by fabiogiustini — Tue Sep 24, 2024 8:48 pm

View Article

Python • RFID-RC522 IRQ on Raspberry pi zero w

Hello, I'using the RFID-RC522 module connected with raspberry pi zero w with this connections:Pin modulo > Pin Raspberry PiSDA (SS) > GPIO8 [pin 24] Filo grigioSCK > GPIO11 [pin 23] Filo...

View Article

Python • Re: Raspberry Pi 5 GPIO busy

For me this issue dissapear when I disable SPI interface. If you use install gpiod package and use the gpioinfo command to see which pins are occupied, you can see the SPI interface pins are...

View Article


Python • Re: [SOLVED] Script execution speed, RFID reader system

Hi, thanks for the information provided.I do have the same module (YRM100). But mine seems to have arrived without firmware (that is what the test program and all my own tests show).Did you need to...

View Article

Python • Re: GPIO.wait_for_edge >>> RuntimeError: Error waiting for...

same problem for me on a pi zero w when updating/upgradingI have then installed a fresh image of bookworm lite but the issue is still there...anyone found a solution?thank youCode:...

View Article

Python • Python v3.7.x

Hi allI am new on rasberry, but has purchased api4, for a DIY project.I downloaded the OS on the PI, and did the setting according to the DIY manual, so far so good.But when trying to install the...

View Article


Python • Re: Python v3.7.x

That video is 5 years old. If you installed the latest PI OS then you got bulleye which enforces virtual environments for Python which was not enforced 5 years ago. So, some suggestionsShow the errors...

View Article


Python • python debugging on vscode

I've been using vscode for python development on my several raspberry pi machines for quite some time. Recently one machine started misbehaving. In vscode, the python program will run fine however,...

View Article

Python • Re: python debugging on vscode

In vscode, the python program will run fine however, trying to debug the same code results in a stream of errors that appear unrelated to my code, then several seconds later a dialog box "Timed out...

View Article

Python • CPU Temperature Test Not Working; Need File Format

I tried to use the code on the "Heating and cooling Raspberry Pi 5" page (https://www.raspberrypi.com/news/heatin ... erry-pi-5/) and couldn't get it to work; kept getting this error:Code:...

View Article

Python • Re: CPU Temperature Test Not Working; Need File Format

I tried to use the code on the "Heating and cooling Raspberry Pi 5" page (https://www.raspberrypi.com/news/heatin ... erry-pi-5/) and couldn't get it to work; kept getting this error:Code:...

View Article


Python • ConfigUpdater / Parser import in Raspberry

In my Python (3.11) app in a Windows-11-environment, I successfuly imported the ConfigParser and -Updader, to maintain the INI file of the app.I'm now traying to migrate the same Python software to a...

View Article

Python • Re: ConfigUpdater / Parser import in Raspberry

In my Python (3.11) app in a Windows-11-environment, I successfuly imported the ConfigParser and -Updader, to maintain the INI file of the app.I'm now traying to migrate the same Python software to a...

View Article


Python • Re: venv, poetry noob stuff

I guess the repo I was trying to use I guess has some issues according to the maker so I guess that's one reason why I couldn't get it to work properly. Being such a noob that I am what is the best...

View Article

Python • Re: Python Library install Failures and Issues

With Bookworm we now use a python virtual environment (venv) see https://www.raspberrypi.com/documentati ... spberry-pi( thats why it is on about "externally-managed-environment" )I usually create one...

View Article


Python • Re: Does RPi.GPIO work in Bookworm??

Yes you should try using rpi.gpio first. The lgpio library it uses is an excellent product and really well documented. However, I had problems with rpi.lgpio using smbus2 and Pimoroni's IOexpander...

View Article

Python • gpiozero servomotor issues

Hello,Recently, I have tried to install a servo into my operant boxes to make my levers extendable and retractable. But sometimes the servo tends to underextend, underretract, and overretract than the...

View Article

Python • Re: gpiozero servomotor issues

Which Pi model?Prior to the Pi5 you could try using the pigpio backend to gpiozero. pigpio uses hardware timed pulses for servos. Otherwise gpiozero will be using software timed pulses which will give...

View Article
Browsing all 1225 articles
Browse latest View live