installing issue

143 views
Skip to first unread message

Leonardo Parisi

unread,
Feb 18, 2021, 5:30:13 AM2/18/21
to astrometry
Hi Dustin,
I try on Ubuntu 20.4 to follow the instructions on  http://astrometry.net/doc/build.html to install Astrometry. Unfortunately the following command gives an error.
Can you update the info on the site?
Thanks as usual

--------------------------------------

sudo apt-get install libcairo2-dev libnetpbm10-dev netpbm libpng2-dev libjpeg-dev python-numpy python-pyfits python-dev zlib1g-dev libbz2-dev swig cfitsio-dev


Reading package lists... Done
Building dependency tree      
Reading state information... Done
Note, selecting 'python-dev-is-python2' instead of 'python-dev'
Package libpng2-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package python-pyfits is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  astropy-utils

E: Package 'libpng2-dev' has no installation candidate
E: Package 'python-pyfits' has no installation candidate
E: Unable to locate package cfitsio-dev

Dustin Lang

unread,
Feb 18, 2021, 8:58:10 AM2/18/21
to Leonardo Parisi, astrometry
Done!


--
You received this message because you are subscribed to the Google Groups "astrometry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/CAMNDLnkKfbjVtY4Z_Gt4wx2ifVZHr4J6R80BMg5CZynbQNZdUw%40mail.gmail.com.

Leonardo Parisi

unread,
Feb 18, 2021, 9:09:57 AM2/18/21
to Dustin Lang, astrometry
Thanks

Il giorno 18 feb 2021, alle ore 14:58, Dustin Lang <dstn...@gmail.com> ha scritto:



Jeremie Vaubaillon

unread,
Dec 4, 2024, 3:25:52 AMDec 4
to astrometry
Hello Dustin,
sorry to re-open such a thread but, I4; trying to install solve-field on ubuntu (22.04.5 LTS...), and face similar errors, as well as:
make[1]: *** [Makefile:164: _util.so] Error 1
make[1]: Leaving directory '/home/ccolomer/astrometry.net-0.78/util'
make: *** [Makefile:127: pyutil] Error 2

I've found out that in the util/fit.py, there are some "np.bool" syntax that should be replace by "bool" only.
Well, I wonder how I get such an error but nobody else seem to have it... Sounds weird to me...

Thanks for any help :-)
Jeremie

Jeremie Vaubaillon

unread,
Dec 4, 2024, 3:50:04 AMDec 4
to astrometry
Actually, when I eventually succeed in installing the software, I have this error:
Extracting sources...
simplexy: found 744 sources.
Making source extraction overlay plot -- pnmfn = /tmp/tmp.ppm.egAtoD
cairoutils.c:715:cairoutils_read_ppm_stream: Netpbm is not available; can't read PPM images
cairoutils.c:715:cairoutils_read_ppm_stream: Netpbm is not available; can't read PPM images
cairoutils.c:715:cairoutils_read_ppm_stream: Netpbm is not available; can't read PPM imagescairoutils.c:715:cairoutils_read_ppm_stream:
Netpbm is not available; can't read PPM images
libpng warning: Image width is zero in IHDR
libpng warning: Image height is zero in IHDR
libpng error: Invalid IHDR data
Aborted (core dumped)
solve-field.c:331:plot_source_overlay Plotting command failed
 solve-field.c:137:run_command Command was: "/usr/local/astrometry/bin/plotxy -I /tmp/tmp.ppm.egAtoD -i ./KASSANDRA_R_30000_05dc777a66215d998034ccc435f707e3_aux.axy -C red -w 2 -N 50 -x 1 -y 1 -P | /usr/local/astrometry/bin/plotxy -i ./KASSANDRA_R_30000_05dc777a66215d998034ccc435f707e3_aux.axy -I - -w 2 -r 3 -C red -n 50 -N 200 -x 1 -y 1 > ./KASSANDRA_R_30000_05dc777a66215d998034ccc435f707e3_aux-objs.png"

 solve-field.c:136:run_command Command exited with exit status 134

BUT: the command : sudo apt install netpbm returns:
netpbm is already the newest version (2:10.0-15.4).

I must say I'm quite lost here...
Jeremie

Jeremie Vaubaillon

unread,
Dec 4, 2024, 6:52:17 AMDec 4
to astrometry
nevermind: I solved everything by running: sudo apt install astrometry.net...
sorry for disturbing...
Jeremie
Reply all
Reply to author
Forward
0 new messages