dstndstn / astrometry.net

Astrometry.net -- automatic recognition of astronomical images
http://astrometry.net
Other
666 stars 187 forks source link

No module named astrometry, path problem? #258

Closed tosaric closed 2 years ago

tosaric commented 2 years ago

I have successfully installed(via conda) and used astrometry. Inside activated conda environment, which python command gives: "/opt/miniconda3/envs/astrometry/bin/python" as it should. However, when I try to import astrometry as a module, although I thought that astrometry is a standalone program, not a library, I am getting: python -c "import astrometry" Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'astrometry'

dstndstn commented 2 years ago

You may have to modify the PYTHONPATH variable to point to wherever the astrometry libraries are installed, eg maybe export PYTHONPATH=${PYTHONPATH}:/opt/miniconda3/envs/astrometry/lib/python

tosaric commented 2 years ago

Works like a charm, thanks