i try to run moonphases python plugin with plunar extension and i get error when i try to install pylunar plugin in domoticz docker
my steps
cd /opt/domoticz/config/plugins/
git clone https://github.com/ycahome/MoonPhases/
edit plugin.py like in this post https://www.domoticz.com/forum/viewtopi ... 57#p279957
reboot, configure moop phases plugin in hardware tab.
then i get errors that can't import pylunar module
Code: Select all
2024-09-04 14:58:05.917 Error: MoonPhases: (MoonPhases) failed to load 'plugin.py', Python Path used was '/opt/domoticz/userdata/plugins/MoonPhases/:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'.
2024-09-04 14:58:05.935 Error: MoonPhases: Traceback (most recent call last):
2024-09-04 14:58:05.935 Error: MoonPhases: File "/opt/domoticz/userdata/plugins/MoonPhases/plugin.py", line 46, in <module>
2024-09-04 14:58:05.936 Error: MoonPhases: import pylunar
2024-09-04 14:58:05.936 Error: MoonPhases: ModuleNotFoundError: No module named 'pylunar'
enter do domoticz cointainer "docker exec -it domoticz /bin/bash"
execute "pip3 install pylunar"
but without sucess. i get errors
Code: Select all
root@orangepipcplus:/opt/domoticz# pip3 install pylunar
Collecting pylunar
Using cached pylunar-0.7.2-py3-none-any.whl (23 kB)
Collecting ephem==4.1.5
Using cached ephem-4.1.5.tar.gz (1.3 MB)
Requirement already satisfied: typing-extensions==4.9.0 in /usr/local/lib/python3.9/dist-packages (from pylunar) (4.9.0)
Requirement already satisfied: importlib-resources==6.1.1 in /usr/local/lib/python3.9/dist-packages (from pylunar) (6.1.1)
Requirement already satisfied: pytz==2024.1 in /usr/local/lib/python3.9/dist-packages (from pylunar) (2024.1)
Requirement already satisfied: zipp>=3.1.0 in /usr/local/lib/python3.9/dist-packages (from importlib-resources==6.1.1->pylunar) (3.20.1)
Building wheels for collected packages: ephem
Building wheel for ephem (setup.py) ... [?25l- \ | error
[31m ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ymuasu_e/ephem_95611cac12264e01885082524627d69d/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ymuasu_e/ephem_95611cac12264e01885082524627d69d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-jt6h96sl
cwd: /tmp/pip-install-ymuasu_e/ephem_95611cac12264e01885082524627d69d/
Complete output (76 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.9
creating build/lib.linux-armv7l-3.9/ephem
copying ephem/stars.py -> build/lib.linux-armv7l-3.9/ephem
copying ephem/__init__.py -> build/lib.linux-armv7l-3.9/ephem
copying ephem/cities.py -> build/lib.linux-armv7l-3.9/ephem
creating build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_usno_equinoxes.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_angles.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_observers.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_locales.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_satellite.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/__init__.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_cities.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_usno.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_constants.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_launchpad_236872.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_stars.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_rise_set.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_rst.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_dates.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_jpl.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_github_issues.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_bodies.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_launchpad_244811.py -> build/lib.linux-armv7l-3.9/ephem/tests
creating build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/examples.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/index.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/CHANGELOG.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/angle.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/rise-set.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/tutorial.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/quick.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/date.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/coordinates.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/catalogs.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/radec.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/toc.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/newton.rst -> build/lib.linux-armv7l-3.9/ephem/doc
creating build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/jupiter.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/oberon.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/uranus.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/saturn.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/neptune.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/phobos.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/europa.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/hyperion.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/mars.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
creating build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/moon_phases.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/apptopo_deneb.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/apptopo_moon.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/astrom_neptune.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/appgeo_moon.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/riset_moon.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/appgeo_jupiter.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/appgeo_sun.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/astrom_mercury.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/risettran_rigel.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/astrom_antares.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/apptopo_sun.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/riset_sun.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/appgeo_deneb.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/risettran_moon.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
running build_ext
building 'ephem._libastro' extension
creating build/temp.linux-armv7l-3.9
creating build/temp.linux-armv7l-3.9/extensions
creating build/temp.linux-armv7l-3.9/extensions/data
creating build/temp.linux-armv7l-3.9/libastro
arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibastro -I. -I/usr/include/python3.9 -c extensions/_libastro.c -o build/temp.linux-armv7l-3.9/extensions/_libastro.o -ffloat-store
error: command 'arm-linux-gnueabihf-gcc' failed: No such file or directory
----------------------------------------[0m
[31m ERROR: Failed building wheel for ephem[0m
[?25h Running setup.py clean for ephem
Failed to build ephem
Installing collected packages: ephem, pylunar
Running setup.py install for ephem ... [?25l- \ | error
[31m ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ymuasu_e/ephem_95611cac12264e01885082524627d69d/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ymuasu_e/ephem_95611cac12264e01885082524627d69d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-1vmpjp_d/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/ephem
cwd: /tmp/pip-install-ymuasu_e/ephem_95611cac12264e01885082524627d69d/
Complete output (76 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.9
creating build/lib.linux-armv7l-3.9/ephem
copying ephem/stars.py -> build/lib.linux-armv7l-3.9/ephem
copying ephem/__init__.py -> build/lib.linux-armv7l-3.9/ephem
copying ephem/cities.py -> build/lib.linux-armv7l-3.9/ephem
creating build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_usno_equinoxes.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_angles.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_observers.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_locales.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_satellite.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/__init__.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_cities.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_usno.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_constants.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_launchpad_236872.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_stars.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_rise_set.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_rst.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_dates.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_jpl.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_github_issues.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_bodies.py -> build/lib.linux-armv7l-3.9/ephem/tests
copying ephem/tests/test_launchpad_244811.py -> build/lib.linux-armv7l-3.9/ephem/tests
creating build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/examples.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/index.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/CHANGELOG.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/angle.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/rise-set.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/tutorial.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/quick.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/date.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/coordinates.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/catalogs.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/radec.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/toc.rst -> build/lib.linux-armv7l-3.9/ephem/doc
copying ephem/doc/newton.rst -> build/lib.linux-armv7l-3.9/ephem/doc
creating build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/jupiter.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/oberon.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/uranus.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/saturn.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/neptune.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/phobos.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/europa.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/hyperion.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
copying ephem/tests/jpl/mars.txt -> build/lib.linux-armv7l-3.9/ephem/tests/jpl
creating build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/moon_phases.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/apptopo_deneb.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/apptopo_moon.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/astrom_neptune.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/appgeo_moon.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/riset_moon.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/appgeo_jupiter.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/appgeo_sun.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/astrom_mercury.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/risettran_rigel.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/astrom_antares.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/apptopo_sun.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/riset_sun.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/appgeo_deneb.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
copying ephem/tests/usno/risettran_moon.txt -> build/lib.linux-armv7l-3.9/ephem/tests/usno
running build_ext
building 'ephem._libastro' extension
creating build/temp.linux-armv7l-3.9
creating build/temp.linux-armv7l-3.9/extensions
creating build/temp.linux-armv7l-3.9/extensions/data
creating build/temp.linux-armv7l-3.9/libastro
arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibastro -I. -I/usr/include/python3.9 -c extensions/_libastro.c -o build/temp.linux-armv7l-3.9/extensions/_libastro.o -ffloat-store
error: command 'arm-linux-gnueabihf-gcc' failed: No such file or directory
----------------------------------------[0m
[31mERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ymuasu_e/ephem_95611cac12264e01885082524627d69d/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ymuasu_e/ephem_95611cac12264e01885082524627d69d/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-1vmpjp_d/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/ephem Check the logs for full command output.[0m
[?25h[?2004hroot@orangepipcplus:/opt/domoticz#
or it is possible to add moonphase plugin and pylunar module to domoticz docker image ?