All Questions
Tagged with raspbian-stretch python-3
29 questions
1
vote
1
answer
1k
views
Python PIP not working after upgrade
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 ...
0
votes
1
answer
2k
views
No module named 'gi'
Recently i have installed Altinstall Python 3.8.0 in /usr/bin. However when i try to from gi.repository import GLib i get:
ModuleNotFoundError: No module named 'gi'
I have tried many ways (...
0
votes
0
answers
659
views
using passlib with argon2 gives MissingBackendError
Installed passlib on my Windows 10 pc to study how to store passwords
To use passlib with argon2 I installed that argon2-cffi too just as it shows in the passlib documentation
Runs fine on my laptop, ...
0
votes
2
answers
2k
views
Can't sudo apt-get update && sudo apt-get upgrade (won't complete task)
I am having an issues updating my raspbian operating system. After running sudo apt-get update && sudo apt-get upgrade -y I receive the following error messages:
Hit:1 http://raspbian....
2
votes
1
answer
2k
views
Error Installing TensorFlow on Rasperry Pi 3 B
I'm following this guide to create an AI chatbot which requires Python 3.6, TensorFlow etc. So I installed Python 3.6.8.
To install TensorFlow I tried sudo pip install tensorflow
I also downloaded the ...
3
votes
1
answer
1k
views
Open a Folder in the File Manager by a Python Script
I would like to open a specific folder (not a file) in the file manager by pushing a button in a Tkinter frame. Does anyone know the function?
0
votes
0
answers
195
views
Can't connect waveshare hat to raspberry pi 3b via python3 to obtain gps
I'm stuck with my waveshare hat and it would be cool if you could help me.
I would like to obtain the gps location.
I'm a python beginner and tried to use some already written code from this websites:...
1
vote
0
answers
3k
views
how to covert pyaudio sample rate 44100 to 16000 sample rate in Raspberry pi3 b+
Here I have provide the code which was working properly before but suddenly its stop working. But if I change the sample rate 16000 to 44100 its working. But i am not able to understand what exactly ...
-1
votes
2
answers
2k
views
How can i convert a python script into a Raspberry Pi 3 (Raspbian) executable?
I'm designing a GUI for my Raspberry Pi 3 B+. I've written the code in Python3.5 and now I want my script to be run as executable (Raspbian package).
Is it possible to do so and if possible any ...
1
vote
0
answers
3k
views
ALSA Errors on Pi 3B+ using SpeechRecognition and PyAudio (Original Post missing stuff)
Using PyAudio I simply ran this piece of code:
import pyaudio
p = pyaudio.PyAudio()
for x in range(p.get_device_count()):
print(p.get_device_info_by_index(x).get('name'))
Getting these Errors:
...
2
votes
1
answer
576
views
CE1 not going low for pigpio.spi_open() with flags
I'm attempting to modify joan's test script (https://raspberrypi.stackexchange.com/a/44320/42126) for an RPi SPI master to communicate with an Atmega328P slave. I cannot change which GPIO pins I have ...
1
vote
2
answers
1k
views
Detecting device path for USB scanner
I'm currently exploring ways to detect the correct device path (for ex: /dev/input/event0) for an USB scanner. With the following code in Python using the evdev package, I am able to filter down to a ...
5
votes
4
answers
13k
views
Launch a GUI Tkinter program on boot
I am trying to auto launch a Tkinter/Python program when the Raspberry Pi boots up.
Ideally I would like to boot the Pi into the console and then launch a GUI Tkinter Python program. In testing – not ...
1
vote
1
answer
5k
views
Seeed ADC (ADS1115) with Raspberry Pi 3 B+to read voltage values using python3
I'm using a Seeed 4-Channel 16-Bit ADC (ADS1115) for Raspberry Pi with a Stretch installed Raspberry Pi 3 B+ and successfully configured following below guidelines & GitHub.
http://wiki....
3
votes
1
answer
7k
views
how to install protobuf in raspberrypi3 b+ stretch?
Anyone can suggest me how to install protobuf in raspberrypi 3 b+.
if I directly install using the command pip install protobuf it is install but I am not able to import ?
2
votes
1
answer
2k
views
Pigpio not calling Callback for first rising or falling edge
I have some sample code (taken out of my larger program) that regularly (but not always) missing the first rising edge:
#!/usr/bin/python
import pigpio, time
def callback(g, l, t):
print("Callback ...
1
vote
0
answers
444
views
raspberrypi3 bluetooth socket problem
I have write program for raspberrypi3 bluetooth communication with hc05 ,but most of the time I am getting error
bluetooth.btcommon.BluetoothError: (110, 'Connection timed out')
how can I solve ...
1
vote
2
answers
3k
views
cron not executing python3
I am running Raspbian Stretch and have a python 3 script that executes correctly when I am in the relevant directory and input it in the command line as:
sudo python3 Example.py
The shebang #! line ...
2
votes
0
answers
439
views
PiCamera python : buff/cache memory keeps increasing
I need to take a picture in each second in an infinite loop.
I've wrote 2 different python scripts: one with camera.capture() and another with camera.capture_continuous()
In both cases, I see the ...
0
votes
3
answers
3k
views
Crontab suddenly doesn't start jobs
I'm suddenly having crontab issues, I didn't do anything other than change the script names and then change them in crontab as well so they all natch, the scripts work if I start them manually, so i'm ...
0
votes
0
answers
1k
views
SSLError while trying to install pip for python3.4 on Raspbian-Stretch (Armv7l)
The issue is that I have a tensorflow .whl targeted towards python3.4 but by default on raspbian-stretch python3.5 is installed so I installed python3.4 python3.4-dev using apt-get. After that i ...
0
votes
0
answers
151
views
problem connecting with port serial0 for serial comm
I am facing this issue that I can't solve, I've been on this like 3 days and it is really frustrating!
I'm trying to test AT commands through port serial0, I've tried it in a python file and when i ...
2
votes
1
answer
2k
views
Python 3 interpreter not recognizing a new installed package(python 3.5.3)
I'm new to this RPI world and also to python although I completed the basic courses I'm still getting used to this so I will appreciate your patience I'll try to express my self the best way.
I ...
6
votes
2
answers
11k
views
Raspberry Pi 3B+ freezes randomly
General setup
My RPi is connected to a mouse, keyboard, and monitor. My swap size is set to 1000 MB and I'm not using wifi.
Problem
The RPi freezes randomly, meaning the GUI is frozen, no SSH ...
1
vote
2
answers
25k
views
pip cannot confirm SSL certificate: SSL module is not available
I am trying to install openCv for Python 3.6 on my Raspberry Pi 3 Model B+, but somehow it won't connect to the python.org website. I have pip installed for 2.7, 3.0, and 3.6 installed, so when I go ...
2
votes
0
answers
2k
views
Difference between Thonny and Python 3 (running some code)
I'm just starting with the pi and to be more clear I'm spending time working with the Raspberry Pi Workshop for Beginners series on Youtube.To write an run code we use the Python 3 IDE but I don't ...
1
vote
0
answers
226
views
Python 3 Debugging Symbols for Raspbian Stretch
I am trying to track down a segfault when using Pip on my Raspberry Pi Model 3B running Raspbian Stretch. I've configured the pi to do a core dump, and I've gotten gdb to load the core. The ...
2
votes
1
answer
3k
views
Found a PyPi Package for Opencv-contrib, but can't install using pip
I'm trying to install OpenCV for python with extra modules on my raspberry pi. The OpenCV website has a set of instructions that I have tried with different variations for the past several months. I ...
1
vote
1
answer
4k
views
Problem with matplotlib
I am attempting to run some matplotlib tutorials on my Pi3 running Raspbian Stretch.
I have installed matplotlib & numpy using pip3
When trying to run any of the tutorials I get an error ...