raspbian

Error with installing pygame with pip

◇◆丶佛笑我妖孽 提交于 2020-01-30 10:52:31
问题 The following is the EXACT output when running the command sudo python -m pip install pygame on raspberry pi: Collecting pygame Using cached pygame-1.9.3.tar.gz Complete output from command python setup.py egg_info: WARNING, No "Setup" File Exists, Running "config.py" Using UNIX configuration... Hunting dependencies... SDL : found 1.2.15 FONT : found IMAGE : found MIXER : found PNG : found JPEG : found SCRAP : found PORTMIDI: not found PORTTIME: not found FREETYPE: found 2.5.2 Missing

Bad Display Name when running Python script on boot with Touch Screen

别说谁变了你拦得住时间么 提交于 2020-01-30 10:12:04
问题 Attempting to run a Python script on boot on Raspberry Pi 3B+ 1GB RAM, Raspbian, with a SunFounder 10" Touch Screen, - .log file returns "Bad display name' Python script is 100% functional when run via Terminal / executable script / Thonny etc. Attempted to run at boot first via rc.local - created a service, enabled service, daemon-reload... etc. Did not work. Tried to run as crontab, same result - .log output from crontab shows "Bad display name". Thought it was lack of Display Environment

edit interfaces file under /etc/network in Raspberry-Pi using Python

 ̄綄美尐妖づ 提交于 2020-01-25 07:27:27
问题 I'm currently working with RaspberryPi-3 with Rasbian installed. I want to auto-reconnect to a network to a specific network. Going through the internet, I found out a way to do it i.e. by editing the interfaces file under /etc/network. I want to edit this file using some script (preferably Python-3). I just need to add these lines to the interfaces file: auto wlan0 iface wlan0 inet dhcp wpa-ssid <my-SSID> wpa-psk <my-PassKey> Please help me regarding this issue. 回答1: If you have no specific

Using Raspberry Pi Display on CM3 with Android Things

吃可爱长大的小学妹 提交于 2020-01-25 02:59:05
问题 I'm developing an app on Raspberry Pi 3 using Android Things as OS. I started using the normal Raspberry Pi 3 with the official touch screen. Everything worked fine, so I tried the same setup on the development board with the rpi compute module 3 lite (CM3L). Unfortunately the display doesn't turn on. After some research I found this: https://www.raspberrypi.org/documentation/hardware/computemodule/cmio-display.md Seems like I have to adjust the options for SDA and SLC on the OS as well as

.Net Core on Raspberry Pi 4 with Raspbian?

泄露秘密 提交于 2020-01-19 01:35:47
问题 Is it possible to install .Net Core on Raspberry Pi 4 with Raspbian ? I found a number of instructions about .Net Core on Raspberry Pi 3 e.g. (https://github.com/dotnet/core/blob/master/samples/RaspberryPiInstructions.md) or .Net Core on Raspberry Pi with Linux. I have already installed Visual Studio Code and now I want to install .Net Core. Please share your experience and method if you installed .Net Core on Raspberry Pi 4 with Raspbian . Thanks. 回答1: Download .Net Core 3.1 SDK from HERE

.Net Core on Raspberry Pi 4 with Raspbian?

寵の児 提交于 2020-01-19 01:35:20
问题 Is it possible to install .Net Core on Raspberry Pi 4 with Raspbian ? I found a number of instructions about .Net Core on Raspberry Pi 3 e.g. (https://github.com/dotnet/core/blob/master/samples/RaspberryPiInstructions.md) or .Net Core on Raspberry Pi with Linux. I have already installed Visual Studio Code and now I want to install .Net Core. Please share your experience and method if you installed .Net Core on Raspberry Pi 4 with Raspbian . Thanks. 回答1: Download .Net Core 3.1 SDK from HERE

Creating a Makefile in Raspbian

╄→гoц情女王★ 提交于 2020-01-17 06:12:11
问题 I'm trying to create a Makefile for my C program in Raspbian (Raspberry Pi). My program consists of a bunch of .c and .h Files. I've looked at countless Makefiles, but I just don't unterstand how it works with multiple files. There are always .o files in the Makefile but as I understand object files are the result of compiling, so I dont have any o. Files as I am trying to compile my .c Files. Please explain to me how this works. Edit: Thank you. So I tried this and it starts compiling but

Illegal instruction in Raspberry Pi

孤街醉人 提交于 2020-01-16 10:17:11
问题 Today, I compiled the opencv-master downloaded from github . With these instructions in the webpage http://ariandy1.wordpress.com/2013/02/13/raspberry-pi-rasbian-opencv/ , and finally the OpenCV compiled successfully. But when I wrote a simple C++ program, link it with the -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_video , run it in terminal. An error occured, says Illegal instruction . But when I remove the OpenCV -dependent code, and recompile, it can run successfully. I doubt

Failing gitlab CI due to “no such file or directory”

帅比萌擦擦* 提交于 2020-01-14 03:12:43
问题 I'm attempting to have my .gitlab-ci.yml file use an image off the Gitlab container registry. I have successfully uploaded the Dockerfile to the registry and I can pull the image from the registry on my local machine and build a container just fine. However, when using the image for my .gitlab-ci.yml file, I get this error: Authenticating with credentials from job payload (GitLab Registry) standard_init_linux.go:190: exec user process caused "no such file or directory" I've seen a bunch of

SDL2 on Raspberry Pi without X?

自古美人都是妖i 提交于 2020-01-13 19:52:27
问题 I'm hoping to develop some code that uses SDL2 to display graphics on the 7" RPi touchscreen, but I'd rather not install a full desktop OS. I've got Raspbian Buster Lite installed. Some simple test code gets an error when I try to run it: user@rpi4:~/01_hello_SDL $ ./hw Window could not be created! SDL_Error: Could not initialize EGL user@rpi4:~/01_hello_SDL $ sudo ./hw error: XDG_RUNTIME_DIR not set in the environment. Window could not be created! SDL_Error: Could not initialize EGL I'm