Open gunesmes opened 2 years ago
Hi @gunesmes, it appears that the installation is failing when compiling the fortran subroutines. It's not clear to me if this is an M1 thing or a python 3.10 thing. I'm not sure if f2py, which does the fortran compiling, works on 3.10 yet -- I remember having some issues with the very latest/developer branches of python so what you're seeing could just be this. So I would suggest installing mistree on an earlier version of python (3.8 and below should be fine) and that should hopefully solve the issue. If the problem persists please let me know and I'll take a closer look at it.
I have the same issue for 3.9, also I tried to install 3.8 via pyenv but it seems 3.8 is not compatible with M1
mesut@mesut-gunes ~/p/p/a/src [2]> pyenv install 3.8.0
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.8.0.tar.xz...
-> https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tar.xz
Installing Python-3.8.0...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk
BUILD FAILED (OS X 12.3.1 using python-build 20180424)
Inspect or clean up the working tree at /var/folders/7h/f3_2t1sj3d767x_vsjw126fh0000gn/T/python-build.20220608173628.63365
Results logged to /var/folders/7h/f3_2t1sj3d767x_vsjw126fh0000gn/T/python-build.20220608173628.63365.log
Last 10 log lines:
checking for --with-cxx-main=<compiler>... no
checking for clang++... no
configure:
By default, distutils will build C++ extension modules with "clang++".
If this is not intended, then set CXX on the configure command line.
checking for the platform triplet based on compiler characteristics... darwin
configure: error: internal configure error for the platform triplet, please file a bug report
make: *** No targets specified and no makefile found. Stop.
@gunesmes I've just checked TravisCI which does the build testing for mistree. In that, only python versions 2.7, 3.4, 3.5 and 3.6 are tested so perhaps try with 3.6 -- although from what you've said I don't expect this will change anything.
It's unclear to me whether this is an issue with mistree or an issue with python and M1, I'm leaning towards the latter as I'm seeing a lot of issues coming up of a similar nature and if it is this then it's super hard for me to test as I don't have an m1 machine.
The only other thing I can think of to check is whether you've installed gfortran, this is needed to compile the fortran subroutines.
I have encountered the same problem. May I ask if it has been resolved
Hi @wanghanruibaba the latest version of mistree should run on python versions <= 3.9, I remember some issues popping up in one of the versions but I don't remember why. So there are two options:
I got the following error: