Not able to install scikit-learn on Raspberry Pi 3 B+ - scikit-learn

I was trying to install scikit learn on Raspberry Pi 3 B+, with code,
python3.8 -m pip install scikit-learn==0.23.2
initially the pi was working fine showing the progress, after above 1 hour, monitor went off and the green LED on Rpi is ON all the time (before it was like blinking).
Now the Rpi seems to be ON with red and green LED full time ON, and not able to see the progress, and not detecting the input given through keyboard and mouse. its about 5 hours.
it will be very helpful for me, if someone explains me why this happens.
Thanking you in advance.

Related

Banana Pi not booting (red LED on)

I got some brand new banana Pi's,
these are the "Banana Pi-M2" and the "Banana Pi-M3"
I was trying to install Debian on both of them, but I couldn't get it to work.
I was exactly following this tutorial here (Windows):
http://wiki.lemaker.org/BananaPro/Pi:SD_card_installation
to save Debian on the SD Card.
The Problem is always the same. When pressing the power Button on the "M3", or plugging in the "M2", only the red LED goes on and nothing happens.
The LED for the LAN port stays off, so it comes close that the Pi is not booting up.
The power supply I am using produces 5V and 2100mA which should fit the conditions for the Banana Pi.
The distros I then tried to install were for example Bananian which I got from here:
https://www.bananian.org/download
And several distros like Debian from here:
http://www.banana-pi.org/m3-download.html
http://www.banana-pi.org/m2-download.html
I tested it using 2 different SD Cards, and also only using a USB Stick.
everything was producing the same error.
Is there something I missed?
Thanks in advance.
It sounds like an underpowering situation.
If you have a barrel jack instead of micro usb use the barrel jack.
The pre-production samples of this board had the usual 4.0/1.7mm barrel jack for DC-IN BPi M2/M2+ also use. This has been replaced by a Micro USB jack on the first production batch in Dec 2015 leading to the usual sorts of problems banana-pi.org forums are full of (see also next paragraph for some reasons). Starting in May 2016 Micro USB has been replaced by the 4.0/1.7mm barrel jack again so powering is possible more reliable now. The Micro USB receptacle on the longer board side is USB OTG, also connected to the board's PMIC and while looking like an alternative way to power the board that's not recommended unless you love underpowering situations, reboot loops and the like.
I had the same problems at one point, like #Hagen said, it could be under powered, make sure you have a 5V, 2A rated power supply. The other cause of the red led and no boot is the lack of a micro SD card. Try pushing it in a bit further though not with much force and hit reboot. if you get 3 leds, it works!
This Banana PI M3 device starts up and works normally when power supply connector (4mm/1,7mm) and a micro USB connect put to device of Banana same time from same 5V power supply. I think in the device may have something grounding problems.

ADS1256 and Raspberry Pi

My aim is to get my Raspberry Pi 2 connected to an adc ( which will have 8 channels and resolution should be higher than 16 bits or 16 bit )
And according to analog values from load-cells. I am going to make a weighing indicator. with 4 channels.
I have selected Texas Instruments ads1256 chip to do it.
It is 24 bit delta sigma adc.
First I have made PCB With 2 ads1256.
Simply did not work. Spidev results are random or all result is all FF in hex.
I realised , i need some kernel driver for it.
I am new to unix/linux raspbian by the way.
I thought , it 's true. It's like trying to communicate through rs232 over a converter that windows driver doesn't exist.
But there is no kernel driver for this. I asked Texas, they answered like we don't have, good day, i am closing this.
Then i found and i bought this product from china !
http://www.waveshare.com/high-precision-ad-da-board.htm
It seemed fine to me. After one week, the card came to me.
There is an example code after all. I was going to connect this on my raspberry and run the example code and get the adc values.
I did everything on thier instructions.
But turns out it doesn't work.
http://i57.tinypic.com/2efupgh.jpg
So Please show me the path :D what to do now.
It is strange but this solved as below ;
in manufacturer website , there are instructions list. 2 libraries. bcm2835 and wiringPi , i have installed bcm first. ( i did not follow top to bottom ) first i installed bcm2835 then wiringPi. Then it worked.
still don't know how.
sudo apt-get install rpi-update
sudo apt-get update
sudo apt-get upgrade
sudo raspi-config
( enable spi and device tree )
install bcm2835
install wiringPi
then it works

Determine time since last input in bash

I'm building an arcade cabinet and would like to have random games launch after 15 minutes of inactivity. I'm not sure how to determine the time since the last user input. This is a pretty standard screensaver with xserver, however I can't seem to find a way to do it without x running.
Specifically I'm running RetroPie on a Raspberry Pi 2. X is installed but not running. The front end is emulationstation.
Any help would be appreciated, thanks.

BeagleBone Black: USB errors when using Webcam

I want to use my BeagleBone Black to setup a Webcam. I installed fswebcam and configured it to take a picture every 10 seconds. However, the BeagleBone produces the following errors in dmesg every few minutes:
dmesg | tail -n 3
-> [ 220.258214] musb_host_rx 1762: Rx interrupt with no errors or packet!
-> [ 490.302277] musb_ep_program 896: broken !rx_reinit, ep13 csr 0003
-> [ 490.308731] musb_host_rx 1762: Rx interrupt with no errors or packet!
After a few hours (at most!) it freezes up completely and I have to power-cycle it. (The power-button doesn't shut it down anymore.)
This error has been bugging me for weeks. I tried all possible configurations I can think of:
Three different Beaglebones: Two revision A5A and one revision A5C
Five different Power supplies: Three via USB, two via Barrel connector
Three different Webcams: One Logitech C920, one HP 3100, one no-name El-Cheapo
Two different Linux distributions: The current ArmHF Ubuntu 14.04 distribution and the currently linked debian distribution on the official "latest images" page (which is a few months behind!). I updated the Kernel of the latter image using the appropriate script in /opt/scripts - but that did not help either.
I installed fswebcam through package managers and compiled it from source.
For fswebcam I tried various config files (including delays and skipping images). One example config file that I tried:
background
loop 10
resolution 1920x1080
scale 1280x720
title "test-picture"
timestamp "%d.%m.%Y %H:%M:%S (%Z)"
jpeg 70
banner-colour #FF000000
line-colour #FF000000
no-shadow
save ~/test-picture.jpg
How can I keep my BeagleBone Black from crashing?
Update: I finally got it to work using a (borrowed) Rev A5C BeagleBone. I still get the dmesg errors, but at least the BeagleBone does not crash. I currently suspect a hardware issue on the RevA5B BeagleBone.

installing Angstrom on Beaglebone black

I am a newbie in Beaglebone Black, I install Ubuntu on my Beaglebone Black which works fine, Now I am trying to install Angstrom on Beaglebone Black, for this I first of all download image of Angstrom "Angstrom-Cloud9-IDE-GNOME-eglibc-ipk-v2012.12-beaglebone-2013.08.21.img" , then extract it using "7Zip" , after that I use "Win32 Disk Imager" to copy it into a 16 GB SD card.Now insert my SD card in Beaglebone Black. Then I press boot button and after that I provide power supply using 5v and 1 Amp adapter. After making sure that all four LED's are glowing , I release boot button.
Now the problem is the installation should be completed in around 45 minute and all four LED's should become stable , but in my case LED's keeps blinking. I check it more than four times for around more than one and a half hour and after that I take out the power supply and check Beaglebone Board on my desktop monitor, surprisingly Ubuntu is Still there.So, please tell where is the problem.
Use this file "BBB-eMMC-flasher-2013.09.04" under BeagleBone Black (eMMC flasher) for flashing to eMMC
I had also installed Angstrom on BeagleBoard Black.
You should follow derek molloy tutorial. Here is the link to tutorial
It should boot up in 10 seconds. It will not take 45 minute to boot up if properly installed.

Resources