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

--- Comment #33 from Andre Kovacs <andre.kov...@gmail.com> ---
I was checking all Python references inside the
kstars.app/Contents/MacOS/astrometry and I found that your bundle has a
python/astrometry directory under kstars.app/Contents/MacOS/astrometry/lib that
is not present in the /usr/local/Cellar/astrometry-net/0.76_2/lib that I copied
into my bundle.

It seems to me that this python/astrometry directory should contain the
/usr/local/Cellar/astrometry-net/0.76_2/libexec/lib/python3.7/site-packages/astrometry/util/removelines.py
that is causing the error in my execution using the version 0.76_2 from
homebrew.
So I copied also the contents of
/usr/local/Cellar/astrometry-net/0.76_2/libexec/lib into
kstars.app/Contents/MacOS/astrometry/lib.

I also returned the kstars.app/Contents/MacOS/python to your bundled version.

But the manual execution from the command line is still referencing the Python3
from /usr/local/Cellar/astrometry-net/0.76_2/libexec/bin/python3 and
/usr/local/Cellar/astrometry-net/0.76_2/libexec/lib/python3.7/site-packages/astrometry/util/removelines.py
(outside of the scope of the app), besides having a local copy of Python2.7 and
the astrometry site-package into the app bundle.

But I don't think the solution you suggested will be sufficient (remove the
/usr/local from subprocess calls, to avoid any reference to any external
homebrew library/package at /usr/local/Cellar), because, using the
astrometry.net version from homebrew into the app bundle, I get this error if I
try to plate solve after uninstalling home-brew's astrometry.net:
"/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"...
/bin/sh:
/Applications/Astronomia/kstars.app/Contents/MacOS/astrometry/bin/image2pnm:
/usr/local/Cellar/astrometry-net/0.76_2/libexec/bin/python3: bad interpreter:
No such file or directory
augment-xylist.c:589:backtick Failed to run command:
/Applications/Astronomia/kstars.app/Contents/MacOS/astrometry/bin/image2pnm
--infile ./test.fits --uncompressed-outfile /tmp/tmp.uncompressed.tCTq5i
--outfile /tmp/tmp.ppm.QciqW8 --ppm --mydir
/Applications/Astronomia/kstars.app/Contents/MacOS/astrometry/bin/solve-field
 ioutils.c:567:run_command_get_outputs Command failed: return value 126"

Clearly the astrometry.net installed using homebrew has many static references
to the contents of /usr/local/Cellar/astrometry-net/0.76_2/.

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

Reply via email to