https://bugs.kde.org/show_bug.cgi?id=405437

--- Comment #22 from Andre Kovacs <andre.kov...@gmail.com> ---
Checking the Python version bundled with KStars 3.1.1 I noticed that it's 2.7
and not 3, as Astrometry.net requires.
So I created a new directory with Python 3, copied numpy and pyrites
site-packages under it.
And the error changed to:
"Library not loaded: /usr/local/opt/openblas/lib/libopenblasp-r0.3.5.dylib"
I installed openblas 0.3.5 via homebrew, and copied it under
kstars.app/Contents/MacOS/Frameworks (none version was present, like
libwcs.6.2.dylib).
Aftrewards I had also to install gcc 8.3.0 via homebrew, and copied
libgfortran.5.dylib and libquadmath.0.dylib under
kstars.app/Contents/MacOS/Frameworks (none version was also present).
But then I stuck with this error:
"/Applications/Astronomia/kstars.app/Contents/MacOS/astrometry/bin/solve-field
-O --no-plots --no-verify --resort --downsample 2 -L 32.5717 -H 53.9383 -u aw
-3 17.3038 -4 -55.1392 -5 30 --config
/Applications/Astronomia/kstars.app/Contents/MacOS/astrometry/bin/astrometry.cfg
-W ./solution.wcs ./test.fits
Reading input file 1 of 1: "./test.fits"...
Extracting sources...
Downsampling by 2...
simplexy: found 1474 sources.
Traceback (most recent call last):
  File
"/usr/local/opt/numpy/lib/python3.7/site-packages/numpy/core/__init__.py", line
40, in <module>
    from . import multiarray
  File
"/usr/local/opt/numpy/lib/python3.7/site-packages/numpy/core/multiarray.py",
line 12, in <module>
    from . import overrides
  File
"/usr/local/opt/numpy/lib/python3.7/site-packages/numpy/core/overrides.py",
line 6, in <module>
    from numpy.core._multiarray_umath import (
ImportError:
dlopen(/usr/local/opt/numpy/lib/python3.7/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so,
2): Symbol not found: ___addtf3
  Referenced from: /usr/local/opt/gcc/lib/gcc/8/libquadmath.0.dylib
  Expected in: /usr/lib/libSystem.B.dylib
 in /usr/local/opt/gcc/lib/gcc/8/libquadmath.0.dylib

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File
"/Applications/Astronomia/kstars.app/Contents/MacOS/astrometry/bin/removelines",
line 14, in <module>
    from astrometry.util.removelines import main
  File
"/usr/local/Cellar/astrometry-net/0.76_2/libexec/lib/python3.7/site-packages/astrometry/util/removelines.py",
line 10, in <module>
    import numpy as np
  File "/usr/local/opt/numpy/lib/python3.7/site-packages/numpy/__init__.py",
line 142, in <module>
    from . import core
  File
"/usr/local/opt/numpy/lib/python3.7/site-packages/numpy/core/__init__.py", line
71, in <module>
    raise ImportError(msg)
ImportError: 

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
Here is how to proceed:
- If you're working with a numpy git repository, try `git clean -xdf`
  (removes all files not under version control) and rebuild numpy.
- If you are simply trying to use the numpy version that you have installed:
  your installation is broken - please reinstall numpy.
- If you have already reinstalled and that did not fix the problem, then:
  1. Check that you are using the Python you expect (you're using
/usr/local/Cellar/astrometry-net/0.76_2/libexec/bin/python3),
     and that you have no directories in your PATH or PYTHONPATH that can
     interfere with the Python and numpy versions 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

     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:
dlopen(/usr/local/opt/numpy/lib/python3.7/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so,
2): Symbol not found: ___addtf3
  Referenced from: /usr/local/opt/gcc/lib/gcc/8/libquadmath.0.dylib
  Expected in: /usr/lib/libSystem.B.dylib
 in /usr/local/opt/gcc/lib/gcc/8/libquadmath.0.dylib

augment-xylist.c:589:backtick Failed to run command:
/Applications/Astronomia/kstars.app/Contents/MacOS/astrometry/bin/removelines
/tmp/tmp.xyls.X34rQN /tmp/tmp.removelines.BMkQIi
 ioutils.c:567:run_command_get_outputs Command failed: return value 1"

Resuming, it seems that many of the dependencies of Astrometry.net are
externally referenced by KStars 3.1.1, since I had to include many of them into
the app bundle.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to