Problem with the installation of Astrometry.net code on ubuntu 20.04

356 views
Skip to first unread message

Anirban Dutta

unread,
Jul 5, 2020, 1:30:17 AM7/5/20
to astrometry
Hello,

I am trying to install astrometry.net on my system running ubuntu 20.04. I have read the installations from http://astrometry.net/doc/build.html#build. Before installing I have tried to install the libraries as is mentioned in the website. I have attached the results of installing the libraries. Now when  I am doing make, it is giving some error. I have attached the log of the same.
I would like to get some help with the installation. I do not want to use the online version, and want to write scripts in python. 

--Thanks and regards,
Anirban
log_lib_1
log_lib_2
log_lib_3
log_lib_4
log_lib_5
make_log

Anirban Dutta

unread,
Jul 5, 2020, 2:24:55 AM7/5/20
to astrometry
Well I googled up a bit and found a solution to the problem. In my case

sudo apt-get install python3-dev and python3-numpy seems to solve the problem. Make is now running and installation is successful. Thanks a lot

Anirban Dutta

unread,
Jul 5, 2020, 2:50:41 AM7/5/20
to astrometry
Hi again,

I have installed and truing to solve a fits image. Where I get the below mentioned error. Where is this going wrong ?
Any solution for this issue would be very helpful

Reading input file 1 of 1: "cfb_2020-05-06-8.fits"...
Found an existing WCS header, will try to verify it.
Extracting sources...
simplexy: found 653 sources.
Traceback (most recent call last):
  File "/usr/local/astrometry/bin/removelines", line 15, in <module>
    sys.exit(main())
  File "/usr/local/astrometry/lib/python/astrometry/util/removelines.py", line 77, in main
    return removelines(infile, outfile, xcol=opt.xcol, ycol=opt.ycol,
  File "/usr/local/astrometry/lib/python/astrometry/util/removelines.py", line 40, in removelines
    T = fits_table(infile, lower=False)
  File "/usr/local/astrometry/lib/python/astrometry/util/fits.py", line 672, in fits_table
    pf = pyfits.open(dataorfn, memmap=mmap)
AttributeError: 'NoPyfits' object has no attribute 'open'
augment-xylist.c:590:backtick Failed to run command: /usr/local/astrometry/bin/removelines /tmp/tmp.xyls.i3vQNF /tmp/tmp.removelines.O2LuDH
 ioutils.c:567:run_command_get_outputs Command failed: return value 1

On Sunday, July 5, 2020 at 11:00:17 AM UTC+5:30, Anirban Dutta wrote:

Ole Streicher

unread,
Jul 5, 2020, 4:34:29 AM7/5/20
to astro...@googlegroups.com
Hi Anirban,

Anirban Dutta <anidutt...@gmail.com> writes:
> I am trying to install astrometry.net on my system running ubuntu
> 20.04. I have read the installations from
> http://astrometry.net/doc/build.html#build. [...]

Ubuntu 20.04 already comes with a recent version (0.78) of
astrometry.net, so you don't need to compile it yourself:

$ sudo apt install astrometry.net

Best regards

Ole (maintainer of the Debian/Ubuntu packages of astrometry.net)

Anirban Dutta

unread,
Jul 5, 2020, 7:26:29 AM7/5/20
to astrometry
Thanks a lot. I didn't know about a apt-get version of astrometry.net. But I solved the problem by installing astropy and running solve-field in a python3 environment.
Thanks again .Cheers


On Sunday, July 5, 2020 at 11:00:17 AM UTC+5:30, Anirban Dutta wrote:
Reply all
Reply to author
Forward
0 new messages