raspberry-pi

Flask on RPI ValueError: timestamp out of range for platform time_t

梦想与她 提交于 2021-01-28 23:49:49
问题 I wanted my flask server to run when the RPI starts up. when it starts up, the script runs as normal, however when I go to visit the site, it gets a ValueError: timestamp out of range for platform time_t error. This is weird because I don't get this error if I run it manually, only when the RPI starts it up on boot automatically.enter image description here 回答1: Lol, the problem was actually that I hadn't cleared my browsing data on chrome. that was the issue. 来源: https://stackoverflow.com

How to downgrade an Raspberry Pi Zero W from Python 3.7 to 3.6 without breaking the environment (eg, pip), to use pyaudio

旧街凉风 提交于 2021-01-28 17:09:54
问题 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 3.7 and I think all I want to do is downgrade to 3.6. This is a fixed purpose device so virtualenv is not needed (and I had issues trying it) and can't burden the Pi Zero

How to downgrade an Raspberry Pi Zero W from Python 3.7 to 3.6 without breaking the environment (eg, pip), to use pyaudio

孤街浪徒 提交于 2021-01-28 17:09:08
问题 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 3.7 and I think all I want to do is downgrade to 3.6. This is a fixed purpose device so virtualenv is not needed (and I had issues trying it) and can't burden the Pi Zero

How to downgrade an Raspberry Pi Zero W from Python 3.7 to 3.6 without breaking the environment (eg, pip), to use pyaudio

不羁岁月 提交于 2021-01-28 17:07:52
问题 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 3.7 and I think all I want to do is downgrade to 3.6. This is a fixed purpose device so virtualenv is not needed (and I had issues trying it) and can't burden the Pi Zero

How to downgrade an Raspberry Pi Zero W from Python 3.7 to 3.6 without breaking the environment (eg, pip), to use pyaudio

≡放荡痞女 提交于 2021-01-28 17:07:40
问题 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 3.7 and I think all I want to do is downgrade to 3.6. This is a fixed purpose device so virtualenv is not needed (and I had issues trying it) and can't burden the Pi Zero

Running VB.NET script with mono on a raspberry pi

吃可爱长大的小学妹 提交于 2021-01-28 14:30:09
问题 I am trying to run a vb.net script using mono on the latest version of raspbian. The script was originally written in visual studio and i just downloaded the entire folder on to my raspberry pi 3 from dropbox and tried to run the .exe file. mono /home/pi/Downloads/ctof/bin/Debug/ctof.exe And got met with: Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of

“Failed to encrypt the connection” with BlueZ peripheral and iOS

微笑、不失礼 提交于 2021-01-28 11:24:00
问题 I'm trying to make a raspberry pi bluetooth peripheral, so I try running the BlueZ example "example-gatt-server" and "example-advertising" at the same time. Then communicate it with my phone. But I got "Failed to encrypt the connection, the connection has timed out unexpectedly." on my iOS with nrf connect app. I'm using iOS 14, BlueZ 5.50, Raspberry Pi 4, Raspberry Pi OS Stretch 回答1: Instead of using ready made examples, I recommend that you create your own GATT server and then advertise as

Cross-Compiling Boost on Windows for Raspberry Pi using SysGCC Toolchain and MinGW

会有一股神秘感。 提交于 2021-01-28 07:39:39
问题 I currently trying to cross-compile Boost 1.64.0 on Windows 7 (64bit) for the Raspberry Pi (running Jessie) using the Raspberry SysGCC 4.9.2 Toolchain and MinGW 6.3.0. I installed everything to the following directories: Boost to C:\Boost\1.64.0 SysGCC to C:\SysGCC\Raspberry MinGW to C:\MinGW\6.3.0 Added the bin folders of SysGCC and MinGW to the global PATH variable: C:\SysGCC\Raspberry\bin C:\MinGW\6.3.0\mingw32\bin And created a user-config.jam with the following content in my home

MySQL MariaDB Server Raspberry Pi remote access

☆樱花仙子☆ 提交于 2021-01-28 05:14:20
问题 I have a working MySQL (MariaDB) Server running on my raspberry pi. It works fine when I want to connect to it from my local network. My specs are as followed: MariaDB [mysql]> SHOW VARIABLES LIKE "%version%"; +-----------------------------------+------------------------------------------+ | Variable_name | Value | +-----------------------------------+------------------------------------------+ | in_predicate_conversion_threshold | 1000 | | innodb_version | 10.3.22 | | protocol_version | 10 |

python: sending a mail, fails when inside a “with” block

可紊 提交于 2021-01-28 04:45:55
问题 I am wondering why this code test = smtplib.SMTP('smtp.gmail.com', 587) test.ehlo() test.starttls() test.ehlo() test.login('address','passw') test.sendmail(sender, recipients, composed) test.close() works, but when written like this with smtplib.SMTP('smtp.gmail.com', 587) as s: s.ehlo() s.starttls() s.ehlo() s.login('address','passw') s.sendmail(sender, recipients, composed) s.close() it fails with the message Unable to send the email. Error: <class 'AttributeError'> Traceback (most recent