raspberry-pi3

socket.gaierror: [Errno -2] Name or service not known | Firebase x Raspberry Pi

socket.gaierror: [Errno -2] Name or service not known | Firebase x Raspberry Pi Question: I am using a Python program to click a picture on my Raspberry Pi 3B+ when motion is detected and send this image to firebase storage. import RPi.GPIO as GPIO import gpiozero import datetime import picamera import time import os import …

Total answers: 1

How to install lirc in Python 3.8 when previously installed in Python 3.5?

How to install lirc in Python 3.8 when previously installed in Python 3.5? Question: I have been using lirc in Python 2.7 and Python 3.5.3 on Rpi3. Now I have installed Python 3.8.7 from source code, but I am not able to use lirc in this version of Python, but it still works in Python …

Total answers: 2

ImportError: libcblas.so.3: cannot open shared object file: No such file or directory

ImportError: libcblas.so.3: cannot open shared object file: No such file or directory Question: I am trying to run an Arducam MT9J001 camera on a raspberry pi 3b+. I am getting the following error when I try to run the program, "ImportError: libcblas.so3: cannot open shared object file: No such file or directory." I have the …

Total answers: 3

WebDriverException: Message: invalid argument: can't kill an exited process with GeckoDriver, Selenium and Python on RaspberryPi3

WebDriverException: Message: invalid argument: can't kill an exited process with GeckoDriver, Selenium and Python on RaspberryPi3 Question: Server: Raspberry Pi 3 OS: Dietpi – version 159 Geckodriver version: 0.22 for arm Firefox version: 52.9.0 Python version: 3.5 Selenium version: 3.14.1 Gecko is executable, and is located in /usr/local/bin/ from selenium import webdriver from selenium.webdriver.common.by import …

Total answers: 11

Error message: Unable to locate package libatlas3gf-base

Error message: Unable to locate package libatlas3gf-base Question: I tried with the following commands to install scikit-learn package sudo apt-get install build-essential python-dev python-setuptools sudo apt-get install python-numpy python-scipy sudo apt-get install libatlas-dev libatlas3gf-base Got error message Unable to locate package libatlas3gf-base Asked By: June Wang || Source Answers: Ignore message, keep going with command …

Total answers: 2

Fixing, TypeError: a bytes-like object is required, not 'str'

Fixing, TypeError: a bytes-like object is required, not 'str' Question: Streaming video from Raspberry Pi to 192.168.0.6:8081 using this code… [Edited based on Comments & Daniel] import numpy as np import cv2 import socket class VideoStreamingTest(object): def __init__(self): #self.server_socket = socket.socket() #self.server_socket.bind((‘192.168.0.6’, 8081)) #self.server_socket.listen(0) #self.connection, self.client_address = self.server_socket.accept() #self.connection = self.connection.makefile(‘rb’) #self.streaming() self.socket = socket.socket() …

Total answers: 1

APScheduler – ImportError: No module named 'apscheduler'

APScheduler – ImportError: No module named 'apscheduler' Question: I don’t know why I get this error: ImportError: No module named ‘apscheduler’. I tried to install the older version with: sudo pip uninstall apscheduler and then sudo pip install apscheduler==2.1.2 but this doesn’t worked for me. Here’s my code: import os ,subprocess from apscheduler.schedulers.blocking import BlockingScheduler …

Total answers: 4