Bug 414609 - Astrometry Solving - NUMPY Missing
Summary: Astrometry Solving - NUMPY Missing
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: 3.3.8
Platform: Other macOS
: NOR normal
Target Milestone: ---
Assignee: Rob
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-28 13:50 UTC by terry.webb
Modified: 2022-01-23 04:14 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenprint (1.57 MB, image/png)
2019-11-28 13:50 UTC, terry.webb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description terry.webb 2019-11-28 13:50:26 UTC
Created attachment 124154 [details]
screenprint

SUMMARY Problems trying to run Astrometry Solving Offline Locally

Error message seem to suggest that NUMPY is not installed. I have python 2.7 and 3.6 installed and both of them have numpy installed - see terminal output below. Also attached screen print showing Astrometry config screen - which seems to suggest all Pythin requirements are installed. Is there a way to make it re-install the python libs it requires?

This is the Kstars message output when I run Astrometry:

2019-11-28T12:56:43 Solver failed. Try again.
2019-11-28T12:56:43 Reading input file 1 of 1: "/private/var/folders/km/hd0j2f356xd4ytkgl33_8vx00000gn/T/fitsqpgEQI.fits"...
Extracting sources...
Downsampling by 2...
simplexy: found 28 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
ModuleNotFoundError: No module named 'numpy'
augment-xylist.c:589:backtick Failed to run command: /Applications/KStars.app/Contents/MacOS/astrometry/bin/removelines /tmp/tmp.xyls.HzDBLH /tmp/tmp.removelines.QJn11N
 ioutils.c:567:run_command_get_outputs Command failed: return value 1
2019-11-28T12:56:43 /Applications/KStars.app/Contents/MacOS/astrometry/bin/solve-field -O --no-plots --no-verify --resort --downsample 2 -L 20.359 -H 25.449 -u aw -3 23.7375 -4 30.7589 -5 30 --config /Applications/KStars.app/Contents/MacOS/astrometry/bin/astrometry.cfg -W /private/var/folders/km/hd0j2f356xd4ytkgl33_8vx00000gn/T/solution.wcs /private/var/folders/km/hd0j2f356xd4ytkgl33_8vx00000gn/T/fitsqpgEQI.fits
2019-11-28T12:56:43 Starting solver...
2019-11-28T12:56:43 export PATH=/Applications/KStars.app/Contents/MacOS/netpbm/bin:/usr/local/opt/python/libexec/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
2019-11-28T12:56:43 Solver iteration #1
2019-11-28T12:56:43 Image received.
2019-11-28T12:56:38 Capturing image...


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 10.14.6
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

TheWebbsRetinaMacbookPro:~ webbt$ python3
Python 3.6.0 (v3.6.0:41df79263a11, Dec 22 2016, 17:23:13) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gibberish
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'gibberish'
>>> import numpy
>>> quit()
TheWebbsRetinaMacbookPro:~ webbt$ python
Python 2.7.16 (default, Oct 16 2019, 00:34:56) 
[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gibberish
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named gibberish
>>> import numpy
>>> quit()
TheWebbsRetinaMacbookPro:~ webbt$
Comment 1 Rob 2022-01-23 04:14:52 UTC
This should now be fixed because I created stellarsolver in 2020 which should fix all these sorts of issues since it doesn't need python, numpy, astropi or any of the other things that caused people issues if they have different python installations.