Closed avilqu closed 3 years ago
Yeah, like the error message says, it's not finding the 'astrometry' python package. The PYTHONPATH environment variable has to be set so that it contains the python 'astrometry' directory (containing the init.py file, util/ directory, etc). I don't know anything about AUR so I can't speak to where they chose to install files. cheers, --dustin
On Sun, Mar 21, 2021 at 11:00 AM Adrien Vilquin Barrajon < @.***> wrote:
The solve-field command fails with the following output:
@.*** ~/Astro/science/WASP-41/20210311 RC8 ST402 $ solve-field calibrated/wasp-41_Light_L_150_secs_2021-03-08T02-32-59_033.fits Reading input file 1 of 1: "calibrated/wasp-41_Light_L_150_secs_2021-03-08T02-32-59_033.fits"... Traceback (most recent call last): File "/usr/bin/image2pnm", line 14, in
from astrometry.util.image2pnm import main ModuleNotFoundError: No module named 'astrometry' augment-xylist.c:590:backtick Failed to run command: /usr/bin/image2pnm --infile calibrated/wasp-41_Light_L_150_secs_2021-03-08T02-32-59_033.fits --uncompressed-outfile /tmp/tmp.uncompressed.KYTAW0 --outfile /tmp/tmp.ppm.0PmHld --ppm --mydir /usr/bin/solve-field ioutils.c:568:run_command_get_outputs Command failed: return value 1 I have installed the AUR package astrometry.net. The version is "Revision 0.82, date Thu_Jul_16_16:26:352020-0400." (as seen with solve-field --help).
I don't know much about Python environments but it seems that could be the issue here? I use python 3.9.2 and I have installed anaconda too which I use for some image calibration work.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dstndstn/astrometry.net/issues/216, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIEH7KVDO5ELCRKHRDYSPLTEYCZVANCNFSM4ZRULRKQ .
Thanks for your answer. The PYTHONPATH variable didn't exist on my system so I created it in my .bashrc with the following value:
PYTHONPATH=/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/home/tan/.local/lib/python3.9/site-packages:/usr/lib/python3.9/site-packages:/usr/lib/python/site-packages/astrometry
I'm sur the astrometry folder listed is the one containing the init.py file but I still get the same error. Am I defining my PYTHONPATH variable the wrong way, maybe?
Alright sorry I had misunderstood the way PYTHONPATH works. I solved it by having only '/usr/lib/pyton/site-packages' as my PYTHONPATH.
Thanks for your help.
The solve-field command fails with the following output:
I have installed the AUR package astrometry.net. The version is "Revision 0.82, date Thu_Jul_16_16:26:352020-0400." (as seen with solve-field --help).
I don't know much about Python environments but it seems that could be the issue here? I use python 3.9.2 and I have installed anaconda too which I use for some image calibration work.