mireianievas / PySQM

Python client for the Sky Quality Meter
https://guaix.fis.ucm.es/splpr/SQM-REECL
GNU General Public License v3.0
4 stars 12 forks source link

General error with this package? #4

Closed Tartouffe closed 2 years ago

Tartouffe commented 2 years ago

Plugged in the SQM-LU at the Raspi4, Installed the package, edited the config.py, created the temp dir, but when i tried to run it by python i got this:


python -m pysqm Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "main", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/home/pi/PySQM/pysqm/main.py", line 29, in import pysqm.main as main File "pysqm/main.py", line 46, in from pysqm.read import * File "pysqm/read.py", line 31, in import numpy as np ImportError: No module named numpy

Also tried 'python2 -m pysqm' and 'python2.7 -m pysqm' .. result was the same. What am i doing wrong?

Tartouffe commented 2 years ago

Can get it installed with the additional files from the fork https://github.com/jscheidtmann/PySQM closed.

mireianievas commented 2 years ago

I think the error just comes from not having numpy installed.

pip install numpy

should fix it.