raspberry-pi4

(Adafruit_Python_DHT - Raspberry Pi) in get_platform RuntimeError: Unknown platform

一个人想着一个人 提交于 2021-02-11 12:44:35
问题 I have a Raspberry Pi 4 connected with a DHT22 sensor, and I want to read data from my sensor. So I installed the library Adafruit_DHT sudo pip3 install Adafruit_DHT then, I navigate to the directory Adafruit_Python_DHT/examples/ , and then, since I have a DHT 22 sensor connected to GPIO pi n° 4 , I run python AdafruitDHT.py 22 4 and I get (lab_app) root@Raspberry100:/var/www/lab_app/Adafruit_Python_DHT/examples# python AdafruitDHT.py 2302 4 Traceback (most recent call last): File

Reading a CSV file to pandas works in windows, not in ubuntu

孤街浪徒 提交于 2021-02-10 15:56:13
问题 I have written some scrip in python using windows and want to run it in my raspberry with Ubuntu. I am reading a csv file with line separator new line. When I load the df I use the following code: dfaux = pd.read_csv(r'/home/ubuntu/Downloads/data.csv', sep=';') which loads a df with just one row. I have also tried including the argument lineterminator = '\n\t' which throws this error message: ValueError: Only length-1 line terminators supported In windows I see the line breaks in the csv file

Reading a CSV file to pandas works in windows, not in ubuntu

旧巷老猫 提交于 2021-02-10 15:54:57
问题 I have written some scrip in python using windows and want to run it in my raspberry with Ubuntu. I am reading a csv file with line separator new line. When I load the df I use the following code: dfaux = pd.read_csv(r'/home/ubuntu/Downloads/data.csv', sep=';') which loads a df with just one row. I have also tried including the argument lineterminator = '\n\t' which throws this error message: ValueError: Only length-1 line terminators supported In windows I see the line breaks in the csv file

How get the usb barcode scanner input into python in Raspberry pi 4

≯℡__Kan透↙ 提交于 2021-01-29 06:39:52
问题 I am trying the get a usb barcode reader input in python so I used this code #thanks to https://stackoverflow.com/questions/19732978/how-can-i-get-a-string-from-hid-device-in-python-with-evdev #thanks to https://raspberrypi.stackexchange.com/questions/82418/how-to-route-barcode-tty-input-to-python from evdev import InputDevice, categorize, ecodes scancodes = { # Scancode: ASCIICode 0: None, 1: u'ESC', 2: u'1', 3: u'2', 4: u'3', 5: u'4', 6: u'5', 7: u'6', 8: u'7', 9: u'8', 10: u'9', 11: u'0',

C/C++ MPI speedup is not as expected

此生再无相见时 提交于 2021-01-28 15:14:26
问题 I am trying to write an MPI application to speedup a math algorithm with a computer cluster. But before this I am doing some kind of benchmarking. But the first results are not as much as expected. The test application has linear speedup with 4 cores but 5,6 cores are not speeding up the application. I am doing a test with Odroid N2 platform. It has 6 cores. Nproc says there are 6 cores available. Am I missing some kind of configuration? Or is my code not prepared well enought ( it is based

C/C++ MPI speedup is not as expected

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-28 15:14:13
问题 I am trying to write an MPI application to speedup a math algorithm with a computer cluster. But before this I am doing some kind of benchmarking. But the first results are not as much as expected. The test application has linear speedup with 4 cores but 5,6 cores are not speeding up the application. I am doing a test with Odroid N2 platform. It has 6 cores. Nproc says there are 6 cores available. Am I missing some kind of configuration? Or is my code not prepared well enought ( it is based

C/C++ MPI speedup is not as expected

橙三吉。 提交于 2021-01-28 15:14:00
问题 I am trying to write an MPI application to speedup a math algorithm with a computer cluster. But before this I am doing some kind of benchmarking. But the first results are not as much as expected. The test application has linear speedup with 4 cores but 5,6 cores are not speeding up the application. I am doing a test with Odroid N2 platform. It has 6 cores. Nproc says there are 6 cores available. Am I missing some kind of configuration? Or is my code not prepared well enought ( it is based

C/C++ MPI speedup is not as expected

左心房为你撑大大i 提交于 2021-01-28 15:12:06
问题 I am trying to write an MPI application to speedup a math algorithm with a computer cluster. But before this I am doing some kind of benchmarking. But the first results are not as much as expected. The test application has linear speedup with 4 cores but 5,6 cores are not speeding up the application. I am doing a test with Odroid N2 platform. It has 6 cores. Nproc says there are 6 cores available. Am I missing some kind of configuration? Or is my code not prepared well enought ( it is based

C/C++ MPI speedup is not as expected

若如初见. 提交于 2021-01-28 15:11:17
问题 I am trying to write an MPI application to speedup a math algorithm with a computer cluster. But before this I am doing some kind of benchmarking. But the first results are not as much as expected. The test application has linear speedup with 4 cores but 5,6 cores are not speeding up the application. I am doing a test with Odroid N2 platform. It has 6 cores. Nproc says there are 6 cores available. Am I missing some kind of configuration? Or is my code not prepared well enought ( it is based

C/C++ MPI speedup is not as expected

不想你离开。 提交于 2021-01-28 15:09:08
问题 I am trying to write an MPI application to speedup a math algorithm with a computer cluster. But before this I am doing some kind of benchmarking. But the first results are not as much as expected. The test application has linear speedup with 4 cores but 5,6 cores are not speeding up the application. I am doing a test with Odroid N2 platform. It has 6 cores. Nproc says there are 6 cores available. Am I missing some kind of configuration? Or is my code not prepared well enought ( it is based