×

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

Bi-monthly release with minor bug fixes and improvements

Re:KStars Mac DMG 3.4.0 beta testing needed

  • Posts: 527
  • Thank you received: 139
Here's the latest log. I tried all commands including removing PyFits. I'm starting to think I should just uninstall all python installs, and start over. Just not quite sure how to do that.

File Attachment:

File Name: log_19-15-12.txt
File Size:438 KB
4 years 2 months ago #48912
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 2877
  • Thank you received: 812
Ok I'm confused. Did you just run KStars and plate solve or did you try plate solving from the command line?? In my last post, I meant to plate solve with KStars as you did, but then to copy and paste the commands from KStars into Terminal and see what happens. Be sure to include the first Export command, add the Python Path command we want to test, and then copy and paste the second command. If you only plate solve with KStars, it will not receive the PYTHONPATH environment variable at all.
4 years 2 months ago #48913

Please Log in or Create an account to join the conversation.

  • Posts: 2877
  • Thank you received: 812
This shows the list of commands: indilib.org/forum/general/6362-kstars-ma....html?start=60#48904

This is a screenshot showing how to do it: www.indilib.org/forum/general/6362-kstar....html?start=12#48752

We want to run the commands 3 different times. You can reuse the same image (anotherwords the same 3rd command) if you just plate solve one time in KStars before you run the experiments. You really just want to change command 2 between each experiment.
4 years 2 months ago #48914

Please Log in or Create an account to join the conversation.

  • Posts: 527
  • Thank you received: 139
Ok, Now I understand. I didn't quite do it this way, but now I have.

Here's the result from the first command:
export PATH=/Applications/KStars.app/Contents/MacOS/netpbm/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
andrewburwell@Andrews-Mac-Pro-2 ~ % /Applications/KStars.app/Contents/MacOS/astrometry/bin/solve-field -O --no-plots --no-verify --resort --downsample 8 -3 114.21 -4 65.599 -5 15 -L 0.356183 -H 0.435335 -u app --config /Applications/KStars.app/Contents/MacOS/astrometry/bin/astrometry.cfg -W /private/var/folders/3h/qv07m29x1xgdcddv3qmrhr140000gn/T/solution.wcs /Users/andrewburwell/Desktop/NGC2403/Light/NGC2403_Light_120_secs_2020-01-24T23-17-11_039.fits
Reading input file 1 of 1: "/Users/andrewburwell/Desktop/NGC2403/Light/NGC2403_Light_120_secs_2020-01-24T23-17-11_039.fits"...
Extracting sources...
Downsampling by 8...
simplexy: found 246 sources.
Traceback (most recent call last):
  File "/Applications/KStars.app/Contents/MacOS/astrometry/bin/removelines", line 15, in <module>
    sys.exit(main())
  File "/Applications/KStars.app/Contents/MacOS/astrometry/lib/python/astrometry/util/removelines.py", line 78, in main
    cut=opt.cut, ext=opt.ext)
  File "/Applications/KStars.app/Contents/MacOS/astrometry/lib/python/astrometry/util/removelines.py", line 40, in removelines
    T = fits_table(infile, lower=False)
  File "/Applications/KStars.app/Contents/MacOS/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:589:backtick Failed to run command: /Applications/KStars.app/Contents/MacOS/astrometry/bin/removelines /tmp/tmp.xyls.bOqDPH /tmp/tmp.removelines.kvwOP2
 ioutils.c:567:run_command_get_outputs Command failed: return value 1


Here's the second command:
export PYTHONPATH=/Library/Frameworks/Python.framework/Versions/3.7/bin
andrewburwell@Andrews-Mac-Pro-2 ~ % /Applications/KStars.app/Contents/MacOS/astrometry/bin/solve-field -O --no-plots --no-verify --resort --downsample 8 -3 114.21 -4 65.599 -5 15 -L 0.356183 -H 0.435335 -u app --config /Applications/KStars.app/Contents/MacOS/astrometry/bin/astrometry.cfg -W /private/var/folders/3h/qv07m29x1xgdcddv3qmrhr140000gn/T/solution.wcs /Users/andrewburwell/Desktop/NGC2403/Light/NGC2403_Light_120_secs_2020-01-24T23-17-11_039.fits
Reading input file 1 of 1: "/Users/andrewburwell/Desktop/NGC2403/Light/NGC2403_Light_120_secs_2020-01-24T23-17-11_039.fits"...
Extracting sources...
Downsampling by 8...
simplexy: found 246 sources.
Traceback (most recent call last):
  File "/Applications/KStars.app/Contents/MacOS/astrometry/bin/removelines", line 15, in <module>
    sys.exit(main())
  File "/Applications/KStars.app/Contents/MacOS/astrometry/lib/python/astrometry/util/removelines.py", line 78, in main
    cut=opt.cut, ext=opt.ext)
  File "/Applications/KStars.app/Contents/MacOS/astrometry/lib/python/astrometry/util/removelines.py", line 40, in removelines
    T = fits_table(infile, lower=False)
  File "/Applications/KStars.app/Contents/MacOS/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:589:backtick Failed to run command: /Applications/KStars.app/Contents/MacOS/astrometry/bin/removelines /tmp/tmp.xyls.hGdDsT /tmp/tmp.removelines.HuqCUR
 ioutils.c:567:run_command_get_outputs Command failed: return value 1

And the last command:
export PYTHONPATH=/Library/Frameworks/Python.framework/Versions/3.7/bin
andrewburwell@Andrews-Mac-Pro-2 ~ % /Applications/KStars.app/Contents/MacOS/astrometry/bin/solve-field -O --no-plots --no-verify --resort --downsample 8 -3 114.21 -4 65.599 -5 15 -L 0.356183 -H 0.435335 -u app --config /Applications/KStars.app/Contents/MacOS/astrometry/bin/astrometry.cfg -W /private/var/folders/3h/qv07m29x1xgdcddv3qmrhr140000gn/T/solution.wcs /Users/andrewburwell/Desktop/NGC2403/Light/NGC2403_Light_120_secs_2020-01-24T23-17-11_039.fits
Reading input file 1 of 1: "/Users/andrewburwell/Desktop/NGC2403/Light/NGC2403_Light_120_secs_2020-01-24T23-17-11_039.fits"...
Extracting sources...
Downsampling by 8...
simplexy: found 246 sources.
Traceback (most recent call last):
  File "/Applications/KStars.app/Contents/MacOS/astrometry/bin/removelines", line 15, in <module>
    sys.exit(main())
  File "/Applications/KStars.app/Contents/MacOS/astrometry/lib/python/astrometry/util/removelines.py", line 78, in main
    cut=opt.cut, ext=opt.ext)
  File "/Applications/KStars.app/Contents/MacOS/astrometry/lib/python/astrometry/util/removelines.py", line 40, in removelines
    T = fits_table(infile, lower=False)
  File "/Applications/KStars.app/Contents/MacOS/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:589:backtick Failed to run command: /Applications/KStars.app/Contents/MacOS/astrometry/bin/removelines /tmp/tmp.xyls.hGdDsT /tmp/tmp.removelines.HuqCUR
 ioutils.c:567:run_command_get_outputs Command failed: return value 1
andrewburwell@Andrews-Mac-Pro-2 ~ % export PYTHONPATH=/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
andrewburwell@Andrews-Mac-Pro-2 ~ % /Applications/KStars.app/Contents/MacOS/astrometry/bin/solve-field -O --no-plots --no-verify --resort --downsample 8 -3 114.21 -4 65.599 -5 15 -L 0.356183 -H 0.435335 -u app --config /Applications/KStars.app/Contents/MacOS/astrometry/bin/astrometry.cfg -W /private/var/folders/3h/qv07m29x1xgdcddv3qmrhr140000gn/T/solution.wcs /Users/andrewburwell/Desktop/NGC2403/Light/NGC2403_Light_120_secs_2020-01-24T23-17-11_039.fits
Reading input file 1 of 1: "/Users/andrewburwell/Desktop/NGC2403/Light/NGC2403_Light_120_secs_2020-01-24T23-17-11_039.fits"...
Extracting sources...
Downsampling by 8...
simplexy: found 246 sources.
Traceback (most recent call last):
  File "/Applications/KStars.app/Contents/MacOS/astrometry/bin/removelines", line 14, in <module>
    from astrometry.util.removelines import main
  File "/Applications/KStars.app/Contents/MacOS/astrometry/lib/python/astrometry/util/removelines.py", line 10, in <module>
    import numpy as np
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/__init__.py", line 142, in <module>
    from . import core
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/__init__.py", line 54, in <module>
    raise ImportError(msg)
ImportError: 
 
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
 
Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
  1. Check that you expected to use Python2.7 from "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python",
     and that you have no directories in your PATH or PYTHONPATH that can
     interfere with the Python and numpy version "1.18.0" you're trying to use.
  2. If (1) looks fine, you can open a new issue at
     https://github.com/numpy/numpy/issues.  Please include details on:
     - how you installed Python
     - how you installed numpy
     - your operating system
     - whether or not you have multiple versions of Python installed
     - if you built from source, your compiler versions and ideally a build log
 
- If you're working with a numpy git repository, try `git clean -xdf`
  (removes all files not under version control) and rebuild numpy.
 
Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.
 
Original error was: No module named _multiarray_umath
 
augment-xylist.c:589:backtick Failed to run command: /Applications/KStars.app/Contents/MacOS/astrometry/bin/removelines /tmp/tmp.xyls.kFzTG8 /tmp/tmp.removelines.9jFyKv
 ioutils.c:567:run_command_get_outputs Command failed: return value 1
4 years 2 months ago #48918

Please Log in or Create an account to join the conversation.

  • Posts: 2877
  • Thank you received: 812
A clarifying question,

The first time you did it, did you set PYTHONPATH?

The second time, it says export PYTHONPATH=/Library/Frameworks/Python.framework/Versions/3.7/bin

Then for the third time, it starts with: export PYTHONPATH=/Library/Frameworks/Python.framework/Versions/3.7/bin. again?

Then I notice halfway through, you have this one: export PYTHONPATH=/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages

Did you try each of the python paths we told you? I think I see two paths?

I think it looks like with that last one it couldn't find numpy? The other two look identical to the first error.
4 years 2 months ago #48919

Please Log in or Create an account to join the conversation.

  • Posts: 2877
  • Thank you received: 812
one thought,

Why don't you try:

brew unlink python

To remove the symlinks in /usr/local for the homebrew python which apparently doesn't have any site packages.
4 years 2 months ago #48920

Please Log in or Create an account to join the conversation.

  • Posts: 2877
  • Thank you received: 812
or maybe even brew remove python?
4 years 2 months ago #48922

Please Log in or Create an account to join the conversation.

  • Posts: 527
  • Thank you received: 139

I did try each of the three. I think I just copied the second one with the third one and pasted it into the forum that way.
4 years 2 months ago #48924

Please Log in or Create an account to join the conversation.

  • Posts: 527
  • Thank you received: 139

Trying this command, I get the following message in the terminal:
Error: No such keg: /usr/local/Cellar/python
4 years 2 months ago #48925

Please Log in or Create an account to join the conversation.

  • Posts: 527
  • Thank you received: 139

Same result for this command too.
Error: No such keg: /usr/local/Cellar/python
4 years 2 months ago #48926

Please Log in or Create an account to join the conversation.

  • Posts: 2877
  • Thank you received: 812
Oh I must have missed this. You don't have homebrew python installed at all?

I missed that in the post when you said you did which -a python, you said /usr/bin/python3, not /usr/local/bin/python3. Apparently you don't have homebrew python installed, instead it is the stub for OS X python3 in Catalina.
I could have sworn that you had homebrew python installed.
Sorry I misunderstood.

Also when you tested for symlinks, you did

ls /usr/local/bin/python*

not

ls -l /usr/local/bin/python*

Can you redo this test with the -l? Perhaps I forgot to include it when I asked you to try that.
4 years 2 months ago #48932

Please Log in or Create an account to join the conversation.

  • Posts: 527
  • Thank you received: 139

Well, obviously Ekos thinks I have it installed, as it says it's installed when I try to set it up. But maybe it's detecting the alternately installed python? I had never really run KStars on this computer. And was trying to set it up so that I could do it, now that I'm using a Pi server at the scope. I had always been imaging directly with my Mac laptop, so that could explain why it's set up properly.

Here's the result of that command.
lrwxr-xr-x  1 root  wheel  69 Dec 24 17:04 /usr/local/bin/python3 -> ../../../Library/Frameworks/Python.framework/Versions/3.7/bin/python3
lrwxr-xr-x  1 root  wheel  72 Dec 24 17:04 /usr/local/bin/python3-32 -> ../../../Library/Frameworks/Python.framework/Versions/3.7/bin/python3-32
lrwxr-xr-x  1 root  wheel  76 Dec 24 17:04 /usr/local/bin/python3-config -> ../../../Library/Frameworks/Python.framework/Versions/3.7/bin/python3-config
lrwxr-xr-x  1 root  wheel  71 Dec 24 17:04 /usr/local/bin/python3.7 -> ../../../Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7
lrwxr-xr-x  1 root  wheel  74 Dec 24 17:04 /usr/local/bin/python3.7-32 -> ../../../Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7-32
lrwxr-xr-x  1 root  wheel  78 Dec 24 17:04 /usr/local/bin/python3.7-config -> ../../../Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7-config
lrwxr-xr-x  1 root  wheel  72 Dec 24 17:04 /usr/local/bin/python3.7m -> ../../../Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7m
lrwxr-xr-x  1 root  wheel  79 Dec 24 17:04 /usr/local/bin/python3.7m-config -> ../../../Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7m-config
lrwxr-xr-x  1 root  wheel  71 Dec 23 15:40 /usr/local/bin/python3.8 -> ../../../Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
lrwxr-xr-x  1 root  wheel  78 Dec 23 15:40 /usr/local/bin/python3.8-config -> ../../../Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8-config
4 years 2 months ago #48945

Please Log in or Create an account to join the conversation.

Time to create page: 0.379 seconds