astrorama / SourceXtractorPlusPlus

SourceXtractor++, the next generation SExtractor
https://astrorama.github.io/SourceXtractorPlusPlus/
GNU Lesser General Public License v3.0
72 stars 9 forks source link

Unable to run sourcextractor++ in Mac environment #542

Closed WeiLeong-wltee closed 1 year ago

WeiLeong-wltee commented 1 year ago

Hi,

I tried to install sourcextractor in Mac environment using conda but it never succeed. My machine is Apple M1 with arm64. The following trials all initiated with a complete new environment.

  1. Sourcextractor source seems to provide arm64 version natively. Installation of sourcextractor (by default v0.18) through astrorama or conda-forge succeed, but is unable to run sourcextractor++ in terminal. Error will be missing miniconda3/envs/sourcex/lib/libre2.9.dylib. Dive into the directory will find libre2.10.dylib instead of libre2.9.dylib. If upgrade to sourcextractor v0.19 error will me missing libonnxruntime.1.12.1.dylib. This time the directory exists libonnxruntime.1.13.1.dylib.
  2. Tried ln -s from other location but the system complain it and therefore it will not work.
  3. Similar errors occurred from Python version 3.6-3.10. Sourcextractor default is 3.9.
  4. Also repeat similar trials by initialing and installing conda with osx-64, same errors.
  5. Tried similar procedures for others x86_64 and M1 chip Macs, reproduce identical errors.
  6. Colleagues successfully installed and run sourcextractor v0.18 before (M1 chip with x86_64 conda environment) tried open a new conda environment and install sourcextractor, now it reports same error as mine instead of working.

Please let me know what can I do to improve the diagnosis of this problem.

WeiLeong-wltee commented 1 year ago

As it points out by Martin and Alejandro in the email, it is issue with onnx and re2 libraries. If one install the v0.19 one need to manually install re2==2022.06.01. While on another linux machine I tried it was the onnx library that need specified version to work. So if v0.18 or v0.19 does not initiate on Mac conda, it is probably this issue. Another worth mentioning issue is the conda environment. Sourcextractor++ will only work under osx-64 system for now. Running under arm-64 while performing detection will meet some memory issue and it just hang up there. Switching to osx-64 environment works perfectly. Thanks for all the help and I am closing this issue.