Novice_Ter
Posts: 2
Joined: Wed Mar 28, 2018 5:45 pm

Re: Sense-Hat Problems

Wed Mar 28, 2018 6:01 pm

I recently bought a Sense HAT and tried to put it on a 2014 Raspberry Pi B+. Followed the first few lines to update, install, and reboot. Next was the "from sense_hat import SenseHat" and I get the error message - "from: can't read /var/mail/sense_hat"

Anyone have a clue why I'm getting this message? :?:

User avatar
bensimmo
Posts: 3966
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Sense-Hat Problems

Thu Mar 29, 2018 7:55 am

Have you used Python before ?

You need to open Thonny or IDLE3 at the Desktop, then create a new Project.
Follow this
https://projects.raspberrypi.org/en/pro ... -sense-hat

If you are using an old version of Raspbian, I would recommend getting the latest version.
B+ is quite old so you could be on a very old version.


I have a feeling you are trying to enter it all at the Terminal/Command line

Loki is the cute
Posts: 1
Joined: Fri Apr 26, 2019 3:28 pm

Re: Sense-Hat Problems

Fri Apr 26, 2019 3:37 pm

My sense hat doesn’t work I Press Run but nothing happens

alphanumeric
Posts: 1723
Joined: Tue Jan 19, 2016 2:17 pm
Location: Sydney, Nova Scotia, Canada

Re: Sense-Hat Problems

Fri Apr 26, 2019 5:21 pm

Loki is the cute wrote:
Fri Apr 26, 2019 3:37 pm
My sense hat doesn’t work I Press Run but nothing happens
First, you should start your own thread.

And second, we need way more info than that? Like what code you are trying to run etc.

WiPi7
Posts: 1
Joined: Wed May 01, 2019 3:02 am

Re: Sense-Hat Problems

Wed May 01, 2019 3:20 am

I see several other posts here that indicate others are having problems with their Sense Hats. I initially got my sense hat working. But the magnetometer settings were way out. Their ranges did not make any sense. I had a working magnetometer right here and the Sense Hat magnetometer values were completely wrong. Inaccurate and unresponsive. It did not look like a calibration issue, it looked like either a hardware issue or an issue with the supporting software. Also, my temperature probes numbers were simply over 10 degrees out. I calibrated the magnetometer according to the forum posts in the link below and the results did not improve.
viewtopic.php?f=104&t=109064&p=750616#p810193

The second time I calibrated I started getting the error below:
Python 3.5.3 (/usr/bin/python3)
>>> %Run humidity.py
Traceback (most recent call last):
File "/home/pi/Programs/Sense Hat Samples/humidity.py", line 1, in <module>
from sense_hat import SenseHat
File "/usr/lib/python3/dist-packages/thonny/backend.py", line 305, in _custom_import
module = self._original_import(*args, **kw)
File "/home/pi/Programs/Sense Hat Samples/sense_hat.py", line 17, in <module>
from .stick import SenseStick
File "/usr/lib/python3/dist-packages/thonny/backend.py", line 305, in _custom_import
module = self._original_import(*args, **kw)
SystemError: Parent module '' not loaded, cannot perform relative import
>>>

That error has persisted, rebooting did not help, nothing helped.

I will give this one day and then send back my two Sense Hats. My belief is that they are simply not viable as magnetometers. It looks like they worked at one time but perhaps the supporting libraries have changed to the point where they are no longer viable? I will keep my Raspberry Pis and use other magnetometers with them.

Good luck to everybody with their Sense Hats.

User avatar
bensimmo
Posts: 3966
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Sense-Hat Problems

Wed May 01, 2019 9:32 am

WiPi7 wrote:
Wed May 01, 2019 3:20 am
I see several other posts here that indicate others are having problems with their Sense Hats. I initially got my sense hat working. But the magnetometer settings were way out. Their ranges did not make any sense. I had a working magnetometer right here and the Sense Hat magnetometer values were completely wrong. Inaccurate and unresponsive. It did not look like a calibration issue, it looked like either a hardware issue or an issue with the supporting software. Also, my temperature probes numbers were simply over 10 degrees out. I calibrated the magnetometer according to the forum posts in the link below and the results did not improve.
viewtopic.php?f=104&t=109064&p=750616#p810193

The second time I calibrated I started getting the error below:
Python 3.5.3 (/usr/bin/python3)
>>> %Run humidity.py
Traceback (most recent call last):
File "/home/pi/Programs/Sense Hat Samples/humidity.py", line 1, in <module>
from sense_hat import SenseHat
File "/usr/lib/python3/dist-packages/thonny/backend.py", line 305, in _custom_import
module = self._original_import(*args, **kw)
File "/home/pi/Programs/Sense Hat Samples/sense_hat.py", line 17, in <module>
from .stick import SenseStick
File "/usr/lib/python3/dist-packages/thonny/backend.py", line 305, in _custom_import
module = self._original_import(*args, **kw)
SystemError: Parent module '' not loaded, cannot perform relative import
>>>

That error has persisted, rebooting did not help, nothing helped.

I will give this one day and then send back my two Sense Hats. My belief is that they are simply not viable as magnetometers. It looks like they worked at one time but perhaps the supporting libraries have changed to the point where they are no longer viable? I will keep my Raspberry Pis and use other magnetometers with them.

Good luck to everybody with their Sense Hats.
Does it work or not in IDLE3 ?
But stick a new topic up.

Return to “Astro Pi”