Having issues running on WSL2 on Windows 11

49 views
Skip to first unread message

Don Samuels

unread,
May 29, 2024, 6:13:06 PMMay 29
to astrometry
Dustin

I installed astrometry version 0.95 from the tarball, did the make files, and downloaded the fits files. Every so often, it appears to run correctly, but does not generate a png file so I can see what it found.

So for example, I uploaded the image and solved it on the web, which did solve:
Submission 9936706
Image 10084434
File name: djs_2024_05_27_0000.jpg

Command was:  solve-field djs_2024_05_27_0000.jpg

Here is the sdtout (not verbose):

Reading input file 1 of 1: "djs_2024_05_27_0000.jpg"...
Running command: /usr/local/astrometry/bin/image2pnm --infile djs_2024_05_27_0000.jpg --uncompressed-outfile /tmp/tmp.uncompressed.pGaajx --outfile /tmp/tmp.ppm.dexQLg --ppm --mydir /usr/local/astrometry/bin/solve-field
jpegtopnm: WRITING PPM FILE
Read file stdin: 1080 x 721 pixels x 1 color(s); maxval 255
Using 8-bit output
Extracting sources...
simplexy: found 3092 sources.
Making source extraction overlay plot -- pnmfn = /tmp/tmp.ppm.dexQLg
cairoutils.c:715:cairoutils_read_ppm_stream: cairoutils.c:715:cairoutils_read_ppm_stream: Netpbm is not available; can't read PPM imagesNetpbm is not available; can't read PPM images

cairoutils.c:715:cairoutils_read_ppm_stream: cairoutils.c:715:cairoutils_read_ppm_stream: Netpbm is not available; can't read PPM imagesNetpbm 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
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.dexQLg -i ./djs_2024_05_27_0000.axy -C red -w 2 -N 50 -x 1 -y 1 -P | /usr/local/astrometry/bin/plotxy -i ./djs_2024_05_27_0000.axy -I - -w 2 -r 3 -C red -n 50 -N 200 -x 1 -y 1 > ./djs_2024_05_27_0000-objs.png"

 solve-field.c:136:run_command Command exited with exit status 134
Solving...
Reading file "./djs_2024_05_27_0000.axy"...
Field 1 did not solve (index index-4200-00.fits, field objects 1-10).
Field 1 did not solve (index index-4119.fits, field objects 1-10).
Field 1 did not solve (index index-4118.fits, field objects 1-10).
Field 1 did not solve (index index-4117.fits, field objects 1-10).
Field 1 did not solve (index index-4116.fits, field objects 1-10).
Field 1 did not solve (index index-4115.fits, field objects 1-10).
  log-odds ratio 57.9587 (1.48303e+25), 7 match, 0 conflict, 7 distractors, 11 index.
  RA,Dec = (189.593,-2.47427), pixel scale 17.1155 arcsec/pix.
  Hit/miss:   Hit/miss: +-++--+++----+(best)--------------------------------------------------------------------------------------
Field 1: solved with index index-4114.fits.
Field 1 solved: writing to file ./djs_2024_05_27_0000.solved to indicate this.
Field: djs_2024_05_27_0000.jpg
Field center: (RA,Dec) = (189.589271, -2.477074) deg.
Field center: (RA H:M:S, Dec D:M:S) = (12:38:21.425, -02:28:37.465).
Field size: 5.13515 x 3.42605 degrees
Field rotation angle: up is 162.471 degrees E of N
Field parity: neg
Creating new FITS file "./djs_2024_05_27_0000.new"...


and the file sizes of the files created:
-rwxrwxrwx 1 samuels    57600 May 29 15:58 djs_2024_05_27_0000.axy
-rwxrwxrwx 1 samuels        0 May 29 15:58 djs_2024_05_27_0000-objs.png
-rwxrwxrwx 1 samuels        1 May 29 15:58 djs_2024_05_27_0000.solved
-rwxrwxrwx 1 samuels    17280 May 29 15:58 djs_2024_05_27_0000.match
-rwxrwxrwx 1 samuels    11520 May 29 15:58 djs_2024_05_27_0000.rdls
-rwxrwxrwx 1 samuels    11520 May 29 15:58 djs_2024_05_27_0000.wcs
-rwxrwxrwx 1 samuels    11520 May 29 15:58 djs_2024_05_27_0000.corr
-rwxrwxrwx 1 samuels   792000 May 29 15:58 djs_2024_05_27_0000.new
-rwxrwxrwx 1 samuels     8640 May 29 15:58 djs_2024_05_27_0000-indx.xyls


On some some other images I get what I need  for pngs.  What am I doing wrong?

Thanks
Don

Dustin Lang

unread,
May 29, 2024, 9:53:44 PMMay 29
to Don Samuels, astrometry
Hi,

The error message " Netpbm is not available; can't read PPM images" means that it will not be able to make plots (internally, it converts everything to PNM for plotting).

So I would not expect this to be an intermittent problem, that's a compiled-in decision.

The solution would be to install the netpbm library and recompile the astrometry.net code (with a 'make clean' first).

cheers,
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/CABCUGxUzq1trAOKaghiqFXxuha8hbJYaDKGrLQgWZ%2BTrcB2PPw%40mail.gmail.com.

Don Samuels

unread,
May 29, 2024, 11:00:53 PMMay 29
to astrometry
It seems to be input file dependent. The ones that work will work again, and the ones that do not won't work at all.

I am trying to install the netpbm now.

On Wed, May 29, 2024 at 8:18 PM Dustin Lang <dstn...@gmail.com> wrote:
That's weird, in this one I don't see it printing
"Making source extraction overlay plot -- pnmfn = /tmp/tmp.ppm.dexQLg"
like in the first one... so it looks like it's not even trying to make plots.

When it fails to make plots, is that repeatable, or is it intermittent?

Kindly reply to the list.

cheers,
dustin



On Wed, May 29, 2024 at 9:59 PM Don Samuels <djsam...@gmail.com> wrote:
Ah but on a different image I ran it without issues, hence my confusion. Here is the log:

Reading input file 1 of 1: "IMG_0478.JPG"...
jpegtopnm: WRITING PPM FILE
Read file stdin: 1620 x 1080 pixels x 1 color(s); maxval 255

Using 8-bit output
Extracting sources...
simplexy: found 5214 sources.
Solving...
Reading file "./IMG_0478.axy"...
Field 1 did not solve (index index-tycho2-19.littleendian.fits, field objects 1-10).
Field 1 did not solve (index index-tycho2-18.littleendian.fits, field objects 1-10).
Field 1 did not solve (index index-tycho2-17.littleendian.fits, field objects 1-10).
Field 1 did not solve (index index-tycho2-16.littleendian.fits, field objects 1-10).
Field 1 did not solve (index index-tycho2-15.littleendian.fits, field objects 1-10).
Field 1 did not solve (index index-tycho2-14.littleendian.fits, field objects 1-10).
  log-odds ratio 124.577 (1.26773e+54), 15 match, 0 conflict, 45 distractors, 18 index.
  RA,Dec = (183.433,0.380275), pixel scale 11.3772 arcsec/pix.
  Hit/miss:   Hit/miss: +-++++-+-++---++-----+------+-+---+------------------------+(best)----------------------------------------
Field 1: solved with index index-tycho2-13.littleendian.fits.
Field 1 solved: writing to file ./IMG_0478.solved to indicate this.
Field: IMG_0478.JPG
Field center: (RA,Dec) = (183.431322, 0.378286) deg.
Field center: (RA H:M:S, Dec D:M:S) = (12:13:43.517, +00:22:41.830).
Field size: 5.11386 x 3.41213 degrees
Field rotation angle: up is 179.402 degrees E of N
Field parity: neg
Creating new FITS file "./IMG_0478.new"...
Creating index object overlay plot...
Creating annotation plot...
Your field contains:
  The star Zaniah (η Vir / 15 Vir)
  The star 10 Vir
  The star 13 Vir
  NGC 4179

--
Thanks
Don


--
Thanks
Don

Dustin Lang

unread,
May 30, 2024, 10:54:15 AMMay 30
to Don Samuels, astrometry
Oh, weird!  Would you be able to post an example file for each case (working / not working)?  Maybe I mis-remember when it uses netpbm.
thanks,
-dustin

Don Samuels

unread,
May 30, 2024, 2:51:05 PMMay 30
to Dustin Lang, astrometry
OK here are two jpgs

djs_2024_05_27_0000.jpg is a fail on my system (but not nova.astrometry.net
IMG_0468.JPG did solve on my w11 ubuntu system

Meanwhile I am still trying to get netpbm to install. No joy at this point.





--
Thanks
Don
djs_2024_05_27_0000.jpg
IMG_0468.JPG

Dustin Lang

unread,
May 30, 2024, 4:39:33 PMMay 30
to Don Samuels, astrometry
Okay, two silly ideas to try:

- run "solve-field --verbose" the way normally do on those two images.  Let's compare the resulting logs.

- rename the IMG_0468.JPG one to IMG_0468.jpg (lower case "jpg").  There's one bit of code that tries to guess the format from the filename -- I didn't think it was used, but it has been a long long time since I wrote all this.

cheers,
dustin

Don Samuels

unread,
May 30, 2024, 6:45:17 PMMay 30
to Dustin Lang, astrometry
more complicated.  I did the verbose on both jpgs and then a diff on the logs and noticed that stuff was being called from two different paths, so I closed all of my xterm windows and brought up new ones and tried again, and both now failed, so I am not sure what is going on. I finally have netpbm installed without tiff and latex, so I wonder if I have to deinstall all of astrometry and reinstall again?
--
Thanks
Don

Don Samuels

unread,
May 31, 2024, 5:43:49 PMMay 31
to Dustin Lang, astrometry
Dustin

I must be getting senile and I think I need a little help. It turns out I had a previous version of astrometry installed on this laptop (I thought it was the previous laptop).

So in /usr/local/bin, I have version 0.89.  This version works on both jpegs.

In /usr/local/astrometry/bin/  I have vesrion 0.95.  This version fails on both jpegs, so I must have conflicts on the installation (that seems to be the most logical explanation).  What is the best way to fix this besides buying a new laptop because gear acquisition syndrome is always correct?
--
Thanks
Don

Dustin Lang

unread,
May 31, 2024, 9:57:53 PMMay 31
to Don Samuels, astrometry
Hi,

The changes between 0.89 and 0.95 are mostly pretty minor, if I'm reading the notes correctly.  If the old one works, there's probably no pressing reason to upgrade.

cheers,
dustin
Reply all
Reply to author
Forward
0 new messages