Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solve-field CLI fails #322

Open
Banjoman02 opened this issue Dec 12, 2024 · 2 comments
Open

solve-field CLI fails #322

Banjoman02 opened this issue Dec 12, 2024 · 2 comments

Comments

@Banjoman02
Copy link

Encountering an error now every time I try running solve-field.

(odl) mcampbell02@1311-mcampbell:~/projects/ressolve$ solve-field examples/M42_00001.fits Reading input file 1 of 1: "examples/M42_00001.fits"... /usr/bin/python3: Error while finding module specification for 'astrometry.util.image2pnm' (ModuleNotFoundError: No module named 'astrometry.util') augment-xylist.c:591:backtick Failed to run command: /usr/bin/python3 -m astrometry.util.image2pnm --infile examples/M42_00001.fits --uncompressed-outfile /tmp/tmp.uncompressed.FFRPrT --outfile /tmp/tmp.ppm.Ox7oDF --ppm --mydir /usr/bin/solve-field ioutils.c:568:run_command_get_outputs Command failed: return value 1

Attempted uninstalling and reinstalling astrometry.net packing with apt.

@dstndstn
Copy link
Owner

Hi,

Usually this sort of thing happens when you have a partially-removed old install and a new one in a different path.

The code runs the "image2pnm" program, which should be a script that runs the python module astrometry.util.image2pnm (setting the PYTHONPATH to a relative path)

It's hard to diagnose the problem exactly, but you can try finding out things like

which image2pnm
image2pnm
dpkg -L astrometry.net
apt search astrometry.net
python3 -c "import astrometry; print(astrometry.__file__)"
python3 -c "import astrometry.util as x; print(x.__file__)"

@dstndstn
Copy link
Owner

Eg, here's a similar report that was due to an old partial installation
https://groups.google.com/g/astrometry/c/APd4zYDaOgs/m/2dMy3YKvBQAJ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants