I want to use the ‘bleak’ package on a raspberry bi to connect to Bluetooth Low Energy peripherals. When I use the command pip install bleak i get the error : Could not find a version that satisfies the requirement dbus-next; platform_system == “Linux” (from bleak) (from versions: ) No matching distribution found for dbus-next; platform_system ++ “Linux” (from bleak)
Tag: raspberry-pi
Discord Python Raspbian Error invalid syntax when running script
This is my first time writing in this platform. I got an error on my RPi when hosting a discord music bot using lavalink. Currently, my problem is that there’s a invalid syntax error on a line of code. The weird part is that I don’t get this error when I use VSCode on Windows 10. It also ran perfect
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
Hardcode RF Codes in rpi-rf_send script + python raspberry pi
I’d like to hardcode the RF Code in the rpi-rf_send.py send script so I can repeatedly activate the same device automatically. I’ve reviewed all of the documentation and I cannot find any clear method to do that. Docs: https://pypi.org/project/rpi-rf/ https://github.com/milaq/rpi-rf It works well when passing the arguments directly from the terminal in this format: But what I need to do
‘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 print an outcome if the scanner isn’t able tot detect a MRZ code. I tried some things but couldn’t figure it out, here
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 and work fine on their own, but I can’t get two fullscreen windows to work, both windows fullscreen just on the first
log file error in in Raspberry with Python
I am use Python3 in my Raspberry Pi, and I have a code that someone has shared with me, the following line is shown to record the log file: but when I tray to run the code using Python on my Raspberry I get the following error: I have also created the directory and the file manually but I get
Refreshing Authentication token for Google Calendar API with Python on Raspberry Pi
We are prototyping on a Raspberry Pi using the Google Calendar API. Each user of this service will connect his or her own calendar to the Raspberry Pi and use the calendar information. The Raspberry Pi we are using does not have a keyboard or display connected to it. We are planning to connect a smartphone to the Raspberry Pi
How to refence entries with a certain value within a list in python
I am getting data from database and storing it in a list called relays. this list currently looks like this: the first number of each item is the id number I use through out the code. the second two are numbers GPIO pins . I want a away to reference the list item by it’s first number so for instance
How to downgrade an Raspberry Pi Zero W from Python 3.7 to 3.6 without breaking the environment (eg, pip), to use pyaudio
I’m trying to run an FFT on a few high frequency bins of a continuous audio stream from a USB microphone input using a Raspberry Pi Zero W. The Windows PC prototype runs but when deploying to the Pi there are issues with “pyaudio” which does not have a Python3.7 wheel(?) for ARM, only Python3.6. The RPi OS install includes