fredboudon / plantscan3d

An open-source GUI for reconstructing plant 3D architecture from laser scans.
Other
27 stars 11 forks source link

Apple: plantscan3d doesn't open after following installation instruction #16

Closed Micbut closed 1 year ago

Micbut commented 1 year ago

Hi,

I want to install PlantScan3d on my macbook 13-inch, M1, 2020 running with Ventura 13.0.1. I followed the instruction on https://plantscan3d.readthedocs.io/en/latest/userguide/installation.html#anaconda however once I try to run from Terminal it gives me the following error

Screenshot 2023-01-11 at 10 04 41
Micbut commented 1 year ago

Screenshot 2023-01-26 at 16 51 41

fredboudon commented 1 year ago

I'm trying to build a new version. I keep you updated

thomasarsouze commented 1 year ago

A solution has been posted here. I copy it here for the sake of archiving:

CONDA_SUBDIR=osx-64 conda create -n PS3D python=3.10
conda activate PS3D
conda config --env --set subdir osx-64
conda install -c fredboudon -c conda-forge openalea.plantgl openalea.mtg pyqglviewer -y
conda install -c fredboudon -c conda-forge openalea.plantscan3d -y

While there is still no dedicated arm64 version proposed, this workaround should work. Please @Micbut let us know if this is ok for you.

Micbut commented 1 year ago

it finally works!

I copy here what I wrote also in the other forum.

However, it was quite tricky to install, because I will getting errors when i was trying to start it.

Somehow, plantscan3d needs the dynamic library libjpeg.8.dylib and with the code you shared, version 9 gets installed. Furthermore, it needs the libjpeg.8.dylib x86-64 version and not the ARM one. So I had to manually install libjpeg.8.dylib using Rosetta2 to install it with x86-64 architecture, and it finally worked.

None of these changes would have been possible without the help of GPT-4