Hi I am getting the following error while connecting SenseHat module to raspberry pi.
File "/usr/lib/python3/dist-packages/sense_hat/sense_hat.py", line 39, in __init__
raise OSError('Cannot detect %s device' % self.SENSE_HAT_FB_NAME)
OSError: Cannot detect RPi-Sense FB device
Kindly help out.
Check if you have enabled I2C via raspi-config.
Update Raspberry Pi with command rpi-update.
If there is still same error, try to edit /boot/config.txt and add this line to the end of file: dtoverlay=rpi-sense. Save, reboot and try.
Related
I would like to use Node-Red on my RaspberryPi B 3+ with GrovePi, but I get the same error message every time again and again.
[node-red-contrib-grovepi/grovepi] Error: Cannot find module 'i2c-bus'
i2c is enabled in the raspi-config and I have everything installed that I've read on Node-Red/RPI Configuration.
Thanks to all!
I am not able to start the Jupyter Notebook (Installed using Anaconda 4.5.11) configured to run a remote VM (Redhat Enterprise Linux 6.x). The 'jupyter_notebook_config.py' has the following property configured:
c.NotebookApp.ip = '*'
The error returned is the following:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/arnab/conda_pkg/python-skl/lib/python3.7/site-packages/notebook/notebookapp.py", line 869, in _default_allow_remote
addr = ipaddress.ip_address(self.ip)
File "/opt/arnab/conda_pkg/python-skl/lib/python3.7/ipaddress.py", line 54, in ip_address
address)
ValueError: '' does not appear to be an IPv4 or IPv6 address
Seems to be a bug (link) in Jupyter Notebook itself.
Changing the value of the property from '*' to '0.0.0.0' solved the problem:
c.NotebookApp.ip = '0.0.0.0'
Another workaround while leaving c.NotebookApp.ip='*' is to also set c.NotebookApp.allow_remote_access=True.
I'm using python=3.5 and OpenCV 3.1.4 to establish a connection with my IP camera via RTSP protocol using wifi on Raspberry Pi 3 B
Here's my code
import cv2
from imutils.video import WebcamVideoStream
vs = WebcamVideoStream(src="rtsp://192.168.1.4").start()
while 1:
frame = vs.read()
cv2.imshow("video",frame)
if cv2.waitkey(1) & 0xFF == ord('q'):
break
vs.release()
Which raises the error:
OpenCV(3.4.1) Error: Assertion failed (size.width>0 && size.height>0) in imshow, file /home/pi/opencv-3.4.1/modules/highgui/src/window.cpp, line 356
Traceback (most recent call last):
File "ip_cam.py", line 8, in <module>
cv2.imshow("video",frame)
cv2.error: OpenCV(3.4.1) /home/pi/opencv-3.4.1/modules/highgui/src/window.cpp:356: error: (-215) size.width>0 && size.height>0 in function imshow
From the error it's clear that frames are not being captured from the supplied connection which means connection is not properly established. This code was working perfectly fine when I ran it on ubuntu. When I ran it on raspberry pi rasbian stretch kernel version 4.14 I get this error.
Can anyone guide me through how can I read and process frames from IP camera in python and openCV connected through WiFi?
Hi I have installed Kamalio it start first time but when I stop and start it again it gives sctp_core_destroy(): SCTP API not initialized . I have already installed sctp module.
yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg
load_module(): could not find module <db_mysql> in </usr/lib/kamailio/modules>
[sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
From the log it is obvious that you have successfully compiled & installed SCTP module, however it could NOT be initialized.
Note that is error could must often than not be as a result of other errors in your cfg file.
Few tips:
Can you run kamailio -c and to be sure there is NO error in your cfg.
Found error? use this command to monitor what the exact issue is. Run from a different terminal tail -fn200 /var/log/syslog
On the second terminal try restarting you Kamalio server sudo service kamalio restart
Revisit terminal 1 and look out for the first line with CRITICAL output like the one below CRITICAL: <core> [core/cfg.y:3413]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 366, column 41: syntax error
Line 366 mostly is the issue so visit that file at that line (366) to fix the proble
sudo nano +366 /usr/local/etc/kamailio/kamailio.cfg
Let me know if it helps
So I am new to veins and I am trying to learn how to use this framework. I started following this tutorial http://veins.car2x.org/tutorial/ I reached the last step and everything was working fine. In the last step and when i tried to run the veins example form omnetpp I got the following error :
<!> Error in module (Veins::TraCIScenarioManagerLaunchd)
RSUExampleScenario.manager (id=6) at event #1, t=0: Connection to
TraCI server lost. Check your server's log. Error message: 10054: ]
Unknown error.
In minGW I got the following error:
Seed is 0
Finding free port number...
Claiming lock on port
...found port 34259
Starting SUMO (Sumo/bin/sumo.exe -c erlangen.sumo.cfg) on port 34259,
seed 0
Releasing lock on port
Cleaning up
Result: "<?xml version="1.0"?>
<status>
<exit-code>-1</exit-code>
<start>1466497048</start>
<end>1466497048</end>
<status>Could not start SUMO (Sumo/bin/sumo.exe -c erlangen.sumo.cfg):
[Error 2] The system cannot find the file specified</status>
<stdout><![CDATA[]]></stdout>
<stderr><![CDATA[]]></stderr>
</status>
Can someone please help. I am a beginner and I am facing some problems,Thank you.
You have asked sumo-launchd.py to run SUMO as Sumo/bin/sumo.exe, but your system cannot find the file specified. Most likely, you need to run SUMO more like this /c/Users/user/src/sumo-0.25.0/bin/sumo.exe (depending on where you put sumo.exe)