Closed Gilles86 closed 1 week ago
same error
I can replicate the same error when installing pycortex from pypi. While we investigate that problem, I just pushed a commit that should fix the error when installing pycortex from the github repository. The following worked for me:
git clone https://github.com/gallantlab/pycortex.git
cd pycortex
conda create --name pycortex python=3.11
conda activate pycortex
pip install .
Let us know if this works for you too.
Version 1.2.9 of pycortex (just released on pypi) should also fix this issue. You can try with the following
conda create --name pycortexpip python=3.11
conda activate pycortexpip
pip install pycortex
With the fixes in #553, this issue should be resolved also in python 3.12. I'm closing this issue, but please let us know if you still encounter this error.
Now I get this
x86_64-apple-darwin13.4.0-clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /Users/gdehol/mambaforge/envs/retinonumeral/include -arch arm64 -fPIC -O2 -isystem /Users/gdehol/mambaforge/envs/retinonumeral/include -arch arm64 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -isystem /Users/gdehol/mambaforge/envs/retinonumeral/include -D_FORTIFY_SOURCE=2 -isystem /Users/gdehol/mambaforge/envs/retinonumeral/include -DLZMA_PREFIX_CTM -DOPENCTM_BUILD -IOpenCTM-1.0.3/lib/ -IOpenCTM-1.0.3/lib/liblzma/ -I/Users/gdehol/mambaforge/envs/retinonumeral/lib/python3.12/site-packages/numpy/core/include -I/Users/gdehol/mambaforge/envs/retinonumeral/include/python3.12 -c OpenCTM-1.0.3/lib/compressMG1.c -o build/temp.macosx-11.0-arm64-cpython-312/OpenCTM-1.0.3/lib/compressMG1.o
x86_64-apple-darwin13.4: error: unsupported argument 'core2' to option '-march='
error: command '/Users/gdehol/mambaforge/envs/retinonumeral/bin/x86_64-apple-darwin13.4.0-clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycortex
Failed to build pycortex
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pycortex)
That looks like a compiler error specific to mac and possibly unrelated to the distutils problem. However, I'm surprised because I can install pycortex on my mac m1 just fine.
Can you try installing pycortex in a completely new conda environment? If that still fails, maybe uninstalling and reinstalling the mac command line tools may help.
Dear pycortex team,
I'm trying to (re-)install
pycortex
on a M1 Macbook running Mac OS X 12.6 for 90 minutes now, but I just cannot pull it off. I stopped having fun.I keep getting the following error when compiling (cloned the repo and
pip install -e .
).I guess it's related to this issue https://numpy.org/doc/stable/reference/distutils_status_migration.html#distutils-status-migration
I tried many different strategies now, using completely empty conda environments for python=3.8/3.9/3.10 (It's very hard to get anything below 3.8 these days). I also tried downgrading
setuptools
to 59 or 64, as suggested on the internet, as well as downgrading numpy to 1.22.If I do
pip install -U git+https://github.com/gallantlab/pycortex.git --no-build-isolation
I getDo you have any insight here?
Cheers, Gilles