Skip to main content

Questions tagged [python-3]

Use this tag when referring to the Python 3 language. This can include discussions about specific features unique to the language or perhaps when referring to software that requires Python 3 in order to function. Note that general programming questions are often better suited to Stack Overflow; use this tag only where directly relevant to the Pi.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

I’m trying to display jpegs full screen on a second monitor on a Raspberry Pi 5 using opencv in Python. import cv2 from pathlib import Path from screeninfo import get_monitors, Monitor def ...
user190002's user avatar
0 votes
0 answers
77 views

I'm quite new to Pi programming. I know this question has been asked before but things do seem to have changed with Pi 5 and the latest Python libraries. What is a way for 2 Python programs to access ...
KevinRW's user avatar
0 votes
2 answers
484 views

I followed the Seeed wiki for set up and everything seems to be in working order but when I go and test if the ReSpeaker is getting any audio input with python3 recording_examples/record_one_channel....
Sebastian Lam's user avatar
1 vote
1 answer
217 views

I want to read the complete 512-bit EEPROM memory of a MIFARE Ultralight card (MF0ICU1), i.e., the 56-bit (= 7 byte) serial number (= ID = UID) 32-bit one-time programmable area 384-bit user read/...
TuringTux's user avatar
  • 145
0 votes
1 answer
234 views

I'm new to the world of Raspberry Pi's, I have programming experience but am new to Python. I just want to be able to develop and debug python code for a Raspberry Pi in a windows 7 or 11 environment ...
user avatar
-1 votes
1 answer
89 views

Having tested my python programs using SSH on two Pis from a PC, I wanted to autostart them (they will be a pump manager in the cellar and an upstairs monitor with a call to my mobile if something ...
Gareth Williams's user avatar
0 votes
0 answers
668 views

I'm using a Raspberry pi 5, I'm having issues running ultralytics and PyQt5 at the same time. The way I installed ultralytics and PyQt5 are different. First I used sudo apt install python3-pyqt5 , ...
Test Account's user avatar
0 votes
1 answer
745 views

Pi Zero W Rev 1.1, running raspian buster. I can't seem to import the paho MQTT client in python 3, with the error shown below. Here are my installation steps: sudo apt-get update sudo apt-get upgrade ...
buzzard51's user avatar
  • 121
1 vote
2 answers
288 views

I am trying to capture events from an IR remote control in a python loop. I am using the evdev lib Here is my code : import evdev def get_ir_device(): devices = [evdev.InputDevice(path) for path ...
bbd 666's user avatar
  • 105
0 votes
1 answer
262 views

I’ve had a lot of issues regarding the sysfs interface recently, and unfortunately, I’ve got another unrelated one. I’m trying to integrate the sysfs gpio interface into my python3 code. This is ...
Matthew Moller's user avatar
0 votes
1 answer
112 views

Python 3.9.2 pip 20.3.4 from /usr/lib/python3/dist-packages/pip (python 3.9) I installed a package (pycomm3) with pip because it isn't available with apt. If I start the python program from the ...
evanmars's user avatar
0 votes
3 answers
219 views

i installed bullseye 32 bit on my rpi2 and installed the envirphat board on the pin header. I used to have the same envirphat board on a rpi0 that unfortunately got wet. I installed the library as ...
marciokoko's user avatar
0 votes
1 answer
104 views

Unfortunately, I wasn't able to make this post with all the information I wanted to give. I was originally going to post it from the RPi 400 that I was having all these problems on, but apparently ...
Anonymaton's user avatar
0 votes
1 answer
2k views

This is a new Pi 5 running Raspberry Pi OS and Python 3.11. I have a dependency on Pillow. Definitely not PIL because PIL lacks certain features - specifically ImageTk: ImportError: cannot import ...
Chris H's user avatar
  • 585
0 votes
1 answer
668 views

I'm using night vision camera (PIS-1138) with Raspberry Pi 4 and Picamera2 Python3 library successfully. However, the camera seems to switch some sort of IR filter automatically on/off based on the ...
atonus's user avatar
  • 1
0 votes
1 answer
484 views

I am trying to get the falling edge of a HB100 doppler radar with a Lm358 amplifier module. The error is RuntimeError: Error waiting for edge It was working great and stopped suddenly. I have already ...
GuiDupas's user avatar
  • 117
-2 votes
1 answer
151 views

The issue I am facing is that my RPi 5 running bookworm is running a heavily modified version of the script found on https://learn.sparkfun.com/tutorials/raspberry-pi-safe-reboot-and-shutdown-button/...
Collin's user avatar
  • 1
2 votes
0 answers
2k views

I bought a new Raspberry Pi 5 for a project that has RFID-tag reading and writing functions. I tried using some old python scripts(MFRC522-python) that uses RPi.GPIO to interact with the IO pins but ...
Bruh255's user avatar
  • 21
-1 votes
2 answers
2k views

installed opencv--python on bookworm os when using picamera2 i get this error: QObject::moveToThread: Current thread (0x7f6802fd50) is not the object's thread (0x7f6822efb0). Cannot move to target ...
Oferb's user avatar
  • 9
-1 votes
1 answer
168 views

I have searched high and low for this problem, but cannot find anything anywhere. I have Python Version 3.8.10 and PyQt5 version 5.15.10 running in a Virtual Environment on my Py4 with 8Gb Memory ...
themetman's user avatar
-1 votes
1 answer
611 views

I hope you can help. I am currently using a raspberry pi 4b and want to be able to use the SPI capabilities. For my pi I have SPI0 and SPI1. The pins used are as follows; SPI0_MOSI - pin 19 (BCM_10) ...
Ben's user avatar
  • 9
0 votes
0 answers
128 views

I’m new to self-hosting and am still learning what is and isn’t possible. I have a raspberrypi 4b and am running raspberry piOS Lite (bullseye). As an experiment, I uploaded an mp4 to my RPI and then ...
nslamberth's user avatar
1 vote
1 answer
746 views

I'm working on a project where a mobile app can find and pair with a headless raspberry pi running Pi OS (Debian Buster Port) over bluetooth, send it an ssid and password and it'll create and hop on ...
bsautner's user avatar
  • 218
1 vote
1 answer
2k views

How do I fix this? I was trying to upgrade my Python to 3.10.2 which works fine. However, pip is throwing errors. These are the steps I followed to upgrade: #Downloaded new version and Extracted ...
CornDevil's user avatar
0 votes
2 answers
168 views

I run this script when the Raspberry Pi boots. When a key is pressed (GPIO 19) the interrupt function gets called. If I remove the print("BUTTON PRESSED") statement on line 10, the interrupt ...
Raed's user avatar
  • 105
0 votes
1 answer
1k views

Please god can someone help me. I've just spent the last 8 hours trying absolutely everything I can find online in every different way I can possibly think of and none of it works. Chron jobs cant ...
problemlow's user avatar
0 votes
1 answer
64 views

So im trying to make a Python script that constantly tests if a services is running and output the status via a red LED. I have a script: import RPi.GPIO as GPIO import time import os ...
Steve's user avatar
  • 9
1 vote
1 answer
62 views

I'm dealing with a maddening bug when trying to use an OLED module (sh1106 clone, interfaced over SPI) with a raspberry pi. I have stolen the following function from https://github.com/8TN/Raspberry-...
catalogue_number's user avatar
0 votes
1 answer
110 views

I have a QR code scanner that uses wiegand protocol, have used this code for it, it worked fine for physical pins, but now I have another board onto the Pi, an extender board that uses i2c protocol, ...
Martzy's user avatar
  • 3
4 votes
1 answer
1k views

I'm trying to use Raspberry Pi for a voice recognition project. I have Raspberry Pi 4 model B. I was having issue downloading PyTorch with the error of "Could not find a version that satisfies ...
user155849's user avatar
0 votes
0 answers
101 views

I have some videos in a GUI that plays when certain conditions are met. The problem I have is that I am unable to make the videos start again after they end. Here is the code for the UI: import os ...
Shamooooot's user avatar
1 vote
3 answers
4k views

I have a python script with a GUI that was designed with qt5, the script runs fine whenever I run it through the terminal or Thonny IDE. But no matter how much I tried, after trying many guides, ...
Shamooooot's user avatar
1 vote
0 answers
566 views

I want to install python packages within docker containers. Since the build of some packages is time-consuming and sometimes fails, I want to use a cache that is reused. I found the mount type cache ...
Dronakuul's user avatar
1 vote
1 answer
514 views

I have an old RPi 2 B which I've loaded the latest version of Raspberry Pi OS Lite onto. I'd like to use it to make an IoT device using an TFT LCD screen to show information like the weather and my ...
Atom's user avatar
  • 113
0 votes
0 answers
124 views

I'm trying to run my Python executable on startup but I'm getting an error (waiting for dbus address to appear error) continuously it can't stop. Is there any way to stop I tried to update and upgrade ...
sathishkumar B's user avatar
0 votes
0 answers
109 views

I am having trouble capturing images from a Raspberry Pi camera using Python. The following code works fine the first time, but fails to read data from the camera on subsequent attempts: # shotFoto.py ...
ZondoX's user avatar
  • 1
1 vote
0 answers
233 views

I would like to ask a question regarding the usage of secondary channel of i2c in rpi 4b. I have enabled the secondary channel through adding "dtoverlay=i2c-gpio,bus=2,i2c_gpio_sda=22,...
user153780's user avatar
1 vote
2 answers
3k views

Having moved to Python 3.11, I need to update Connector/Python - which requires the MariaDB Connector/C library. This library is normally installed with python -m pip install mariadb But I'm getting ...
tyddynonn's user avatar
0 votes
0 answers
186 views

I'm trying to use a python script to make a connection with my 4x4 keypad on Raspberry (RPi.GPIO). The code does not work correctly, because the first and second rows do not respond. I'm trying to use ...
Jorge Augusto Wilchen's user avatar
0 votes
1 answer
497 views

I'm working on a TTS app using AWS Polly in Raspberry PI 3 B+ and when I post a text using Python requests it take a long time receive the response, around 16-17 seconds. This happens only with a ...
Shyam3089's user avatar
  • 111
1 vote
0 answers
103 views

I'm trying to launch a tkinter GUI I made that is used to read GPIO pins as well as some ROS topics. I'm using Buster 10 and ROS Melodic with Python 3.7. I am using Clearpath's robot_upstart package ...
jr4d's user avatar
  • 11
1 vote
1 answer
797 views

I have adopted Electronics hub tutorial to run 2 motors from a L298N controlled by Rpi3B using GPIO. Why is my version of the code not working? I do understand that I could ignore the "channel ...
rozzers's user avatar
  • 13
0 votes
0 answers
77 views

I'm working now an long range communication system, and I need help. I can't use GSM, WIFI, etc. I test one LoRa Raspberry pi shield, and I bought this: link, and I have followed this tutorial. Ofc I ...
Domkrt's user avatar
  • 1
2 votes
1 answer
1k views

I trying to connect an OpenCV OAK-D to an R Pi 4B. I've downloaded & installed all the requirements & installed the depthai library using pip To check its there, pip3 list | grep depthai ...
DrBwts's user avatar
  • 199
1 vote
1 answer
167 views

I have Rpi3B+, 801s vibration sensor and a ADC. I need the analog output to plot a graph for analysis. Basically I need to observe how vibration is affecting the other properties of the machine. ...
Snehal Shende's user avatar
2 votes
2 answers
405 views

I've attached an ePaper display to a GPIO bonnet/HAT and have set up cron jobs to run scripts that print data onto ePaper display. If I remove the HAT and display, then how to check if it's plugged in?...
Kuei's user avatar
  • 33
2 votes
1 answer
3k views

I use raspberrypi 4 ; 32 bit, linux run python error occur: ImportError: Unable to import required dependencies: numpy Original error was: libcblas.so.3: cannot open shared object file: No such file ...
44 chuang's user avatar
  • 143
1 vote
0 answers
202 views

System: Raspberry Pi 4 model B, use external USB Logitech camera I'm follow the youtube tutorial but get picamera.exc.PiCameraMMALError andpicamera.exc.PiCameraError Relate discussion on other site ...
44 chuang's user avatar
  • 143
1 vote
1 answer
2k views

I'm trying to use the LSTM neural network found here on my Raspberry Pi 4 Model B https://machinelearningmastery.com/text-generation-lstm-recurrent-neural-networks-python-keras/ I have trouble running ...
delgado's user avatar
  • 33
1 vote
1 answer
166 views

Here is my workflow and the issues I want to fix. First I mount the windows shared folder on Raspberry Pi. But in order to use that, I have to mount using sudo. sudo mount.cifs //<hostname or IP ...
MyatKaung's user avatar

1
2 3 4 5
12