odd problem solve-field ubuntu 22.04 (works on one PC not on another)

66 views
Skip to first unread message

tom kirkman

unread,
Sep 1, 2022, 2:41:27 PM9/1/22
to astrometry
history/situation
PC1: installed astrometry.net-0.89 when was ubuntu 20.04; works
upgraded to 22.04 installed astrometry.net-0.91 works

PC2 (no astrometry) upgraded to 22.04, installed astrometry.net-0.91 works only for root

$ /usr/local/astrometry/bin/solve-field -D wcs3 --scale-units arcsecperpix --scale-low 1.6 --scale-high 1.7 --ra 266.9 --dec 5.5 --radius .5 icVbF.FIT
Reading input file 1 of 1: "icVbF.FIT"...
sh: 1: an-fitstopnm: not found
Command failed: an-fitstopnm -i icVbF.FIT > /tmp/tmpfll4tyyc.pnm
augment-xylist.c:591:backtick Failed to run command: /usr/local/astrometry/bin/image2pnm --infile icVbF.FIT --uncompressed-outfile /tmp/tmp.uncompressed.TBsdq6 --outfile /tmp/tmp.ppm.16ujZz --ppm --mydir /usr/local/astrometry/bin/solve-field
 ioutils.c:568:run_command_get_outputs Command failed: return value 255

# /usr/local/astrometry/bin/solve-field -D wcs2 --scale-units arcsecperpix --scale-low 1.6 --scale-high 1.7 --ra 266.9 --dec 5.5 --radius .5 icVbF.FIT
Reading input file 1 of 1: "icVbF.FIT"...
Extracting sources...
simplexy: found 183 sources.
Solving...
Reading file "wcs2/icVbF.axy"...
Only searching for solutions within 0.5 degrees of RA,Dec (266.9,5.5)
Field 1 did not solve (index index-5007-07.fits, field objects 1-10).
  log-odds ratio 232.756 (1.21475e+101), 34 match, 0 conflict, 20 distractors, 38 index.
  RA,Dec = (266.905,5.48621), pixel scale 1.64417 arcsec/pix.
  Hit/miss:   Hit/miss: ++++++++-+++-++++-++++++-+++++-+-++----+--+---+---+--+(best)----------------------------------------------
Field 1: solved with index index-5006-07.fits.
Field 1 solved: writing to file wcs2/icVbF.solved to indicate this.
Field: icVbF.FIT
Field center: (RA,Dec) = (266.904868, 5.486436) deg.
Field center: (RA H:M:S, Dec D:M:S) = (17:47:37.168, +05:29:11.171).
Field size: 28.0609 x 28.0509 arcminutes
Field rotation angle: up is -4.83127 degrees E of N
Field parity: neg
Creating new FITS file "wcs2/icVbF.new"...
Creating index object overlay plot...
Creating annotation plot...

yalow 2019$ dir /usr/local/astrometry/bin/an-fitstopnm
-rwxr-xr-x 1 root root 764528 Sep  1 13:13 /usr/local/astrometry/bin/an-fitstopnm*
yalow 2020$ dir /usr/local/astrometry/bin/image2pnm
-rwxr-xr-x 1 root root 519 Sep  1 13:13 /usr/local/astrometry/bin/image2pnm*
yalow 2022$ dir /usr/local/astrometry/lib/python/astrometry/util/image2pnm.py
-rwxr-xr-x 1 root root 10976 Sep  1 13:13 /usr/local/astrometry/lib/python/astrometry/util/image2pnm.py*

additional info: PC1 running X, PC2 running wayland
initially on PC2 I tried apt install package astrometry.net; NoJoy but with a different error message, uninstalled and then tried download (which had worked on PC1)

thanks

tom kirkman

unread,
Sep 3, 2022, 12:33:04 PM9/3/22
to astrometry
Solved by installing 
sudo apt install astrometry.net

but still using the downloaded .91 executable
I guess that on PC1 some magic sauce was left over from .89 install and that magic sauce was provided to PC2 by the apt-get ???

tom kirkman

unread,
Sep 3, 2022, 4:11:15 PM9/3/22
to astrometry
if I modify the apt package installed version
# chmod o-x /usr/bin/an-fitstopnm

results in  previous error output...seems in the downloaded code, the path is set so it does not find 
/usr/local/astrometry/bin/an-fitstopnm
but rather
/usr/bin/an-fitstopnm
(which exists only because of the apt install)

I imagine the problem could have been solved by putting /usr/local/astrometry/bin/ on the path
Was this in the instructions and I missed it or desired?

if I try to use the apt package version, it does not find the index files (says put location in /etc/astrometry.cfg, but that did not work for me
Can anybody report the location/syntax of astrometry.cfg? The downloaded stuff includes a data/cfg file but that seem different

the final error message when using the apt package version is:

ioutils.c:568:run_command_get_outputs Command failed: return value 255



Dustin Lang

unread,
Sep 8, 2022, 3:13:55 PM9/8/22
to tom kirkman, astrometry
A minimal astrometry.cfg file can contain

add_path /path/to/where/you/have/your/index/files/
inparallel
autoindex

As you figured out, setting PATH to include
/usr/local/astrometry/bin/
would fix this, but it *is* supposed to be able to find executables in the same directory.
Can you verify that running
/usr/local/astrometry/bin/an-fitstopnm
works as a regular user?

Can you also try running solve-field with the "-v" verbose flag and see if it says anything more about searching for the an-fitstopnm program?

thanks,
dustin




--
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/32c492ad-9363-4a31-98d8-3717e901e84an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages