×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Ekos on Mac OS X ?

  • Posts: 2880
  • Thank you received: 815

Replied by Rob Lancaster on topic Ekos on Mac OS X ?


To me, that sounds like your path in your config is probably wrong.

Here is what mine says:

# In which directories should we search for indices?
add_path /Users/rlancaste/Library/Application Support/Astrometry

You might check to see if you have more than one config file too.
7 years 6 months ago #11334
The topic has been locked.
  • Posts: 2257
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?

Stephanes-MacBook-Air:etc stephane$ pwd
/usr/local/Cellar/astrometry-net/0.67_2/etc
Stephanes-MacBook-Air:etc stephane$ ls -la
total 8
drwxr-xr-x 3 stephane admin 102 30 Oct 14:26 .
drwxr-xr-x 15 stephane admin 510 30 Oct 14:27 ..
-rw-r--r-- 1 stephane admin 2583 30 Oct 19:35 astrometry.cfg
Stephanes-MacBook-Air:etc stephane$ grep add_path astrometry.cfg
#add_path /usr/local/Cellar/astrometry-net/0.67_2/data
add_path ~/Library/Application Support/Astrometry
Stephanes-MacBook-Air:etc stephane$
Stephanes-MacBook-Air:etc stephane$
Stephanes-MacBook-Air:etc stephane$ ls -lrt ~/Library/Application\ Support/Astrometry/
total 1287360
-rw-r--r--@ 1 stephane staff 54924480 30 Oct 19:45 index-4205-00.fits
-rw-r--r--@ 1 stephane staff 54924480 30 Oct 19:45 index-4205-05.fits
-rw-r--r--@ 1 stephane staff 54924480 30 Oct 19:45 index-4205-03.fits
-rw-r--r--@ 1 stephane staff 54924480 30 Oct 19:45 index-4205-04.fits
-rw-r--r--@ 1 stephane staff 54924480 30 Oct 19:45 index-4205-01.fits
-rw-r--r--@ 1 stephane staff 54924480 30 Oct 19:46 index-4205-02.fits
-rw-r--r--@ 1 stephane staff 54924480 30 Oct 19:46 index-4205-11.fits
-rw-r--r--@ 1 stephane staff 54924480 30 Oct 19:47 index-4205-06.fits
-rw-r--r--@ 1 stephane staff 54924480 30 Oct 19:47 index-4205-07.fits
-rw-r--r--@ 1 stephane staff 54924480 30 Oct 19:47 index-4205-08.fits
-rw-r--r--@ 1 stephane staff 54924480 30 Oct 19:47 index-4205-10.fits
-rw-r--r--@ 1 stephane staff 54924480 30 Oct 19:48 index-4205-09.fits
Stephanes-MacBook-Air:etc stephane$
7 years 6 months ago #11335
The topic has been locked.
  • Posts: 2257
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?

mmmmmm intersting:

Stephanes-MacBook-Air:Downloads stephane$ solve-field --scale-low 10 test.fits
Reading input file 1 of 1: "test.fits"...
Traceback (most recent call last):
File "/usr/local/bin/image2pnm.py", line 323, in <module>
sys.exit(main())
File "/usr/local/bin/image2pnm.py", line 320, in main
mydir, fix_sdss=options.fix_sdss)
File "/usr/local/bin/image2pnm.py", line 248, in convert_image
(imgtype, errstr) = image2pnm(infile, outfile, sanitized, force_ppm, no_fits2fits, extension, mydir, fix_sdss)
File "/usr/local/bin/image2pnm.py", line 174, in image2pnm
from fits2fits import fits2fits as fits2fits
File "/usr/local/Cellar/astrometry-net/0.67_2/lib/python/astrometry/util/fits2fits.py", line 35, in <module>
raise ImportError("Cannot import either pyfits or astropy.io.fits")
ImportError: Cannot import either pyfits or astropy.io.fits
augment-xylist.c:588:backtick Failed to run command: /usr/local/bin/image2pnm.py --sanitized-fits-outfile /tmp/tmp.sanitized.9uiJ34 --fix-sdss --infile test.fits --uncompressed-outfile /tmp/tmp.uncompressed.2AzoOy --outfile /tmp/tmp.ppm.S42QYL --ppm
ioutils.c:567:run_command_get_outputs Command failed: return value 1
Stephanes-MacBook-Air:Downloads stephane$
7 years 6 months ago #11336
The topic has been locked.
  • Posts: 2880
  • Thank you received: 815

Replied by Rob Lancaster on topic Ekos on Mac OS X ?

I would open the file and double check. you might have two paths in the file now.

Also check to see that you don't have another config file. I think on mine there is one at /etc/Astrometry.cfg, another one in ~/Library/Application Support/Astrometry/, and yet another one in /usr/local/Cellar/astrometry-net/0.67_2/etc. I have mine set in KStars options to use this one:



But I think that Astrometry.net might be using the one in the Cellar. That will need to be looked into. But for now, just open all the files and make the path ~/Library/Application Support/Astrometry/

Oh also, by the way, NO \ should be in there. That breaks it.
7 years 6 months ago #11337
Attachments:
The topic has been locked.
  • Posts: 2257
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?

solve-field from the command line isn't working either:
Stephanes-MacBook-Air:Downloads stephane$ ls h.jpg 
h.jpg
Stephanes-MacBook-Air:Downloads stephane$ solve-field -z 2 -B none -P none -M none -S none -R none -U none -T -p -O h.jpg 
Reading input file 1 of 1: "h.jpg"...
jpegtopnm: WRITING PPM FILE
Read file stdin: 1536 x 1152 pixels x 1 color(s); maxval 255
Using 8-bit output
Extracting sources...
Downsampling by 2...
simplexy: found 200 sources.
Traceback (most recent call last):
  File "/usr/local/bin/removelines.py", line 20, in <module>
    raise ImportError("Cannot import either pyfits or astropy.io.fits")
ImportError: Cannot import either pyfits or astropy.io.fits
augment-xylist.c:588:backtick Failed to run command: /usr/local/bin/removelines.py -e 1 /tmp/tmp.xyls.Tqx9WP /tmp/tmp.removelines.S1IZlU
 ioutils.c:567:run_command_get_outputs Command failed: return value 1
Stephanes-MacBook-Air:Downloads stephane$

Need to get this working first I guess.
7 years 6 months ago #11338
The topic has been locked.
  • Posts: 2880
  • Thank you received: 815

Replied by Rob Lancaster on topic Ekos on Mac OS X ?


OH OH OH. This is a different problem. but you still might want to double check what I sent in my last post. This happened to me earlier today when I accidentally deleted python. . .don't ask. It was an accident . . .

I just installed python3 and it worked again: www.python.org/downloads/mac-osx/ Just run the installer.

www.python.org/downloads/mac-osx/
7 years 6 months ago #11339
The topic has been locked.
  • Posts: 2880
  • Thank you received: 815

Replied by Rob Lancaster on topic Ekos on Mac OS X ?

I am wondering if it has something to do with the home-brew version of python. . . But yeah anyway, just install from their website
7 years 6 months ago #11340
The topic has been locked.
  • Posts: 2257
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?

brew install python3 earlier on today, it's still there:

Stephanes-MacBook-Air:Downloads stephane$ python
python python2.6 python2.7 python3 python3.5 python3.5m pythonw pythonw2.7
python-config python2.6-config python2.7-config python3-config python3.5-config python3.5m-config pythonw2.6
Stephanes-MacBook-Air:Downloads stephane$ python
7 years 6 months ago #11341
The topic has been locked.
  • Posts: 2257
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?


ok, doing this install now.
7 years 6 months ago #11342
The topic has been locked.
  • Posts: 2880
  • Thank you received: 815

Replied by Rob Lancaster on topic Ekos on Mac OS X ?


Yeah I know it is, it was on mine too, but didn't work for some reason . . .
7 years 6 months ago #11343
The topic has been locked.
  • Posts: 2880
  • Thank you received: 815

Replied by Rob Lancaster on topic Ekos on Mac OS X ?


By the way, wow you have a lot of pythons . . . its like a snake den!
7 years 6 months ago #11344
The topic has been locked.
  • Posts: 2257
  • Thank you received: 223

Replied by Gonzothegreat on topic Ekos on Mac OS X ?

OK, so I've installed Python 3 from the website, all good.

However it's still not working:
Stephanes-MacBook-Air:Downloads stephane$ solve-field -z 2 -B none -P none -M none -S none -R none -U none -T -p -O h.jpg
Reading input file 1 of 1: "h.jpg"...
jpegtopnm: WRITING PPM FILE
Read file stdin: 1536 x 1152 pixels x 1 color(s); maxval 255
Using 8-bit output
Extracting sources...
Downsampling by 2...
simplexy: found 200 sources.
Traceback (most recent call last):
  File "/usr/local/bin/removelines.py", line 20, in <module>
    raise ImportError("Cannot import either pyfits or astropy.io.fits")
ImportError: Cannot import either pyfits or astropy.io.fits
augment-xylist.c:588:backtick Failed to run command: /usr/local/bin/removelines.py -e 1 /tmp/tmp.xyls.iX0x6R /tmp/tmp.removelines.jXq1Hd
 ioutils.c:567:run_command_get_outputs Command failed: return value 1
Stephanes-MacBook-Air:Downloads stephane$


anything I need to do to make sure this new python install is being used?
7 years 6 months ago #11345
The topic has been locked.
Time to create page: 0.507 seconds