I can’t get to successfully install the package ‘mechanize’ on a Raspberry Pi (so, ARM chip) with Debian Bullseye, python 3.9 in a virtualenv. When I look in the virtualenv’s sitepackages folder, indeed the mechanize package only has .dist-info file, but not a mechanize.py file or mechanize package folder. See below. Question: Am I overlooking something? Details (1): Installing mechanize
Tag: raspberry-pi
How to send and receive data the same time Python UDP socket
I just learned about #python recently, I have done a small project about rasberry pi. I want to transmit and receive data between Server is Laptop, client is Ras via UDP protocol, I use Python’s socket library. Transmit sensor data from ras to laptop, and transmit control commands from laptop to ras. Data from ras must always be transmitted, so
Python script to check batterylevel on powerbank connected to Raspberry Pi
I have project that includes a Raspberry Pi connected to a powerbank as power source. In my python script I would like to check the battery status of the powerbank before starting a function. From what I’ve been able to look up on the internet there is no way this will work solely with a code and no additional parts(except
How to get the value of a python script I run through ssh
I am using 2 raspberry pi and each of them has a camera connected. I am trying to run, from the first pi, a script to get the video feed of the second one. And for that, I would need the value my function returns through ssh. With a simple example : slaveScript.py masterScript.py I would like, for this example
python-vlc running out of memory after playing multiple songs
I am writing a python program, running on a raspberry pi (PI 3 A+), that plays a song every 10 minutes. I am using python-vlc to play the song through the pi’s headphone jack. PlaySong() is a function that gets called (successfully) every 10 minutes. This works as expected the first 6 times. After 6 times, it doesn’t play anymore,
How can I record a video with MJPG instead of YUYV on a raspberry PI 4b with opencv-python code
Good day to you dear developers from stackoverflow. I am currently recording live-video with my usb webcam on my raspberry Pi with the following code: The code doesn’t work anymore, when I use the cap.set(cv.CAP_PROP_FPS, 15) function and I don’t know what I’ve done wrong. I get the following errors: Not the thing is, if I remove the cap.set(cv.CAP_PROP_FPS, 15)
What is the terminal script to run CoAP server
Im trying to run this CoAP server from https://github.com/Tanganelli/CoAPthon on a raspberry pi. i cant seem to find much instructions. This was one of the CoAP that my instructor wanted us to use, my instructor pretty much left us hanging with no help at all but this link. i followed the install instructions on the github page, the only thing
Exception when trying to import python mysql connector on raspberry pi
I’m trying to use the python MySQL connector on my Raspberry PI but I’m getting this error as soon as I add the import statement to the script. The same happens when I try to import only parts of it. The error: I used PIP to install the connector … … and also already tried to force-reinstall it: Answer This
‘NoneType’ object has no attribute ‘to_dict’
I’am quite new to python and I am developing a passport scanner with a RaspberryPi and the passport eye module. In the end it prints outs the outcome of the scanned image. However, I also want to …
Two fullscreen tkinter windows on separate monitors on Raspbery Pi 4
I have a simple TK app that runs fullscreen just fine on one monitor, but now I want to run two fullscreen windows, one on each display on a Raspberry Pi 4. The two displays have different resolutions …