Generic Linux Installation
You can also manually build openastro.org, the pyswisseph module and the ephemeris files.
Make sure you can get these dependencies satisfied to run the program:
python3-dateutil
gir1.2-rsvg-2.0
gir1.2-gtk-3.0
python3-tz
python3-dev
python3-cairo
imagemagick
librsvg2-bin
curl -L "http://www.openastro.org/download.php?file=source&type=python3-swisseph" | tar xz
cd python3-swisseph-2.00.00 && sudo python3 setup.py install
curl -L "http://www.openastro.org/download.php?file=source&type=openastro" | tar xz
cd openastro.org-1.1.57 && sudo python3 setup.py install --prefix=/usr
curl -L "http://www.openastro.org/download.php?file=source&type=data" | tar xz
cd openastro.org-data-1.9 && sudo python3 setup.py install --prefix=/usr
To run the program type "openastro" in a terminal
GersonLearchman wrote:I installed everything but I still can't make it work.
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
ModuleNotFoundError: No module named 'pytz'
GersonLearchman wrote:pyswisseph.c:58:10: error fatal: Python.h: No existe el fichero o el directorio
urpmf Python.h
urpmi python-devel
GersonLearchman wrote:ModuleNotFoundError: No module named 'pytz'
python -c 'import pytz'
# error: command 'gcc' failed with exit status 1
# ModuleNotFoundError: No module named 'pytz'
GersonLearchman wrote:[code]# error: command 'gcc' failed with exit status 1
[root@localhost ghermain]# dnf install openastro
Última comprobación de caducidad de metadatos hecha hace 0:15:57, el lun 26 ago 2019 08:32:21 -03.
El paquete openastro-1.1.57-4.1.noarch ya está instalado.
Dependencias resueltas.
Nada por hacer.
¡Listo!
[root@localhost ghermain]# openastro
Traceback (most recent call last):
File "/usr/bin/openastro", line 21, in <module>
import math, sys, os.path, datetime, socket, gettext, codecs, webbrowser, pytz
ImportError: No module named pytz
[root@localhost ghermain]# python -c 'import pytz'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named pytz
[root@localhost ghermain]#
GersonLearchman wrote:
[root@localhost ghermain]# openastro
Traceback (most recent call last):
File "/usr/bin/openastro", line 21, in <module>
import math, sys, os.path, datetime, socket, gettext, codecs, webbrowser, pytz
ImportError: No module named pytz
[root@localhost ghermain]# python -c 'import pytz'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named pytz
[root@localhost ghermain]#
rpm -q python python-pytz
[root@localhost ghermain]# rpm -q python python-pytz
python-2.7.16-2.mga7
el paquete python-pytz no está instalado
[root@localhost ghermain]#
GersonLearchman wrote:el paquete python-pytz no está instalado
[root@localhost ghermain]# dnf install python-pytz
Última comprobación de caducidad de metadatos hecha hace 15:10:10, el vie 30 ago 2019 20:20:01 -03.
El paquete python2-pytz-2018.9-1.mga7.noarch ya está instalado.
Dependencias resueltas.
Nada por hacer.
¡Listo!
[root@localhost ghermain]# openastro
Traceback (most recent call last):
File "/usr/bin/openastro", line 46, in <module>
from openastromod import zonetab, geoname, importfile, dignities, swiss as ephemeris
File "/usr/lib/python2.7/site-packages/openastromod/geoname.py", line 29, in <module>
from urllib.request import urlopen
ImportError: No module named request
[root@localhost ghermain]#
GersonLearchman wrote:I have looked for all possible solutions on the internet, I understand some GNU/Linux but I am not an advanced computer technician.
ImportError: No module named request
GersonLearchman wrote:Definitely as much as I do everything to the letter and follow his instructions, I haven't been able to make it work.
Users browsing this forum: No registered users and 1 guest