raspbian

Can't install PyQt5 using pip on raspberry pi

偶尔善良 提交于 2020-01-05 04:07:07
问题 On a raspberry pi using raspbian buuster, am I trying to install PyQt5 using pip install PyQt5 pip3 install PyQt5 sudo -H pip install PyQt5 python3 -m pip install PyQt5 python3 -m pip install PyQt5 --user All of these commands yields ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-rsse8fpi/overlay --no-warn-script-location --no-binary :none: --only-binary :none:

Run OpenCV script on start with imshow

纵饮孤独 提交于 2020-01-05 02:47:14
问题 I have an OpenCV/python script running at my Raspberry Pi which reads the camera and shows the stream on the RCA monitor connected to the Pi. Now I want the script to be loaded on boot. I already tried a cronjob @reboot, the /etc/rc.locale, /etc/profile and ~/.bash_profile. I see the red light of the camera turning on every time, but the image won't be shown. Is there any solution to run the script? (I have no external input devices connected) Thank you! 回答1: I know its quite an old thread,

Prevent my node.js app to be killed by the OS

倖福魔咒の 提交于 2020-01-05 02:25:30
问题 I m creating a web tv on a Raspberry Pi Since the RPi will not always be connected to the net, I need to download the file it will have to play before playing them. I can download the file, but when I m starting too much download, either by starting them all-at-once or one after another (wich take a lot more time), my app end up killed by the linux system. Is there any way, in javascript, in node.js, in bash or by editing my algo, to prevent the app from being killed? 回答1: as I commented ...

Prevent my node.js app to be killed by the OS

时光毁灭记忆、已成空白 提交于 2020-01-05 02:25:23
问题 I m creating a web tv on a Raspberry Pi Since the RPi will not always be connected to the net, I need to download the file it will have to play before playing them. I can download the file, but when I m starting too much download, either by starting them all-at-once or one after another (wich take a lot more time), my app end up killed by the linux system. Is there any way, in javascript, in node.js, in bash or by editing my algo, to prevent the app from being killed? 回答1: as I commented ...

How to install Python 3.5 on Raspbian Jessie

别说谁变了你拦得住时间么 提交于 2020-01-03 08:40:11
问题 I need to install Python 3.5+ on Rasbian (Debian for the Raspberry Pi). Currently only version 3.4 is supported. For the sources I want to compile I have to install: sudo apt-get install -y python3 python-empy python3-dev python3-empy python3-nose python3-pip python3-setuptools python3-vcstool pydocstyle pyflakes python3-coverage python3-mock python3-pep8 But I think that apt-get will install more than these packages, for example libpython3-dev . I already install python3 from https://www

Auto-Running a C Program on Raspberry PI

纵饮孤独 提交于 2020-01-03 02:29:14
问题 how can I make my C code to auto-run on my Raspberry PI? I have seen a tutorial so as to achieve that but I do not really know what I am still missing. My initialization script is shown as it follows: #! /bin/sh # /etc/init.d/my_settings # # Something that could run always can be written here ### BEGIN INIT INFO # Provides: my_settings # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # X-Interactive: true # Short

Can't connect to '/var/run/mysqld/mysqld.sock'

ぃ、小莉子 提交于 2020-01-02 09:28:26
问题 This is my first post here, so I hope I do everything right and don't forget any important info. I'm glad for any hints, because I'm running out of ideas (if I ever had any ;)). I am (or was) running owncloud on Raspbian Jessie (so I guess basically Debian). Suddenly owncloud stopped working. The nginx error points towards php5-fpm, further searches gave this error: exception 'Doctrine\DBAL\DBALException' with message 'Failed to connect to the database: An exception occured in driver:

Pocketsphinx install fail? Raspberry Pi Zero (Raspbian Jessie)

一个人想着一个人 提交于 2020-01-01 07:50:32
问题 This will probably get tagged as a duplicate, but I haven't had any luck, so here we go. I'm trying to develop a "Jarvis" like setup with Python2.7. I', looking to use Pocketsphinx as part of that. I tried to do this on my Windows 10 machine, but Pocketsphinx requires Swig, and that utterly failed on the Windows 10 machine (I'm still working on that.) So, I moved over to my Raspberry Pi Zero, since that is where I will be looking to impliment the actual program anyways. I got Swig to install

HubConnection could not be loaded from SignalR Assembly in Raspberry Pi Mono Project

感情迁移 提交于 2020-01-01 07:16:11
问题 I am trying to build a project in Raspberry Pi which communicates with my Azure server via Signalr. I have used SignalR in .NET client side in a mono project while working on a Xamarin project and was successful. For the test purpose, I have written a small block of code. using System; using Microsoft.AspNet.SignalR.Client; namespace testSignalr1 { class Program { static void Main() { var hubConnection = new HubConnection("******"); var serverHub = hubConnection.CreateHubProxy("HubTest");

Start Raspberry Pi without login [closed]

余生长醉 提交于 2019-12-31 09:22:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I would like to ask you if there is any way to start raspberry pi (using Raspbian) without login and password and to move directly to the GUI. Like Windows for example. 回答1: Raspbian Wheezy: Following was taken from eLinux.org RPi Debian Auto Login page: Auto Login: In Terminal: sudo nano /etc/inittab Scroll