Bringing this back to the mailing list...
Can you please add a "-v" to your solve-field command to get more verbose logging.
The "image2pnm" script is supposed to be able to find the python code itself. What happens if you run "image2pnm", or "/usr/bin/image2pnm"?
And what about "set | grep PYTHON"
cheers,
dustin
Conversation leading up to this:
> command is: ashish@ashish-IdeaPad-Gaming-3-15IHU6:~/Documents/PhD/Telescope_Automation$ solve-field apod4.jpg
> I have installed it from source code.
As the error message says, python is not finding the astrometry.util module.
Depending
on how your PYTHONPATH environment variable is set, sometimes python
can get confused if there is a directory named "astrometry" in your
current directory... eg if you're still in the
astrometry.net source directory. So try
cd
solve-field ~/Documents/PhD/Telescope_Automation/apod4.jpg
> It works when I run the command 'solve-field /home/ashish/Documents/PhD/Telescope_Automation/apod4.jpg' in the directory-'/home/ashish/astrometry.net-0.95', where 'util' folder is present.
> How can I set path so that code will automatically pick up the util from its position.