Closed dkp closed 10 months ago
Hi @dkp,
thanks for reporting the issue! It seems to be related to the compilation of dmri-dicelib
, which is a package required by dmri-amico
. It appears that the system header unistd.h
is missing. Could you please try upgrading or reinstalling your C compiler (or Xcode)? This should reinstall the missing header.
Thanks for the suggestion. I updated xcode and tried again, but got the same error. Subsequently, I removed xcode and reinstalled it. The error persists.
@dkp could you post the output of clang++ -v
?
(noddi) 🍎 dpat@lolo temp % clang++ -v clang version 15.0.7 Target: arm64-apple-darwin22.6.0 Thread model: posix InstalledDir: /Users/dpat/fsl/bin
@dkp I think your issue is related to using the clang compiler from the FSL distribution rather than the clang compiler included in XCode.
It's likely that you have added the /Users/dpat/fsl/bin
folder at the beginning of the PATH
env variable in your configuration file (e.g. .bash_profile
or .zprofile
), causing the system to use the incorrect clang compiler.
To solve this, try removing the /Users/dpat/fsl/bin
entry from the PATH
variable.
Yay! You did it! Thank you so much. This is not the first time FSL has caused similar problems. I not only had to put it at the end of the path, but I had to add /usr/bin to the front of the path. I also changed the fsl.sh file which, when it gets sourced, puts FSL at the front of the path:
# Manually edited fsl.sh so it does not add itself to the path first!
source ${FSLDIR}/etc/fslconf/fsl.sh
Success:
Successfully built dmri-dicelib
Installing collected packages: typing-extensions, tqdm, threadpoolctl, packaging, ordered-set, numpy, cython, setuptools-scm, scipy, nibabel, h5py, deepdiff, trx-python, dipy, dmri-dicelib, dmri-amico
Successfully installed cython-3.0.8 deepdiff-6.7.1 dipy-1.8.0 dmri-amico-2.0.1 dmri-dicelib-1.0.3 h5py-3.10.0 nibabel-5.2.0 numpy-1.26.3 ordered-set-4.1.0 packaging-23.2 scipy-1.11.4 setuptools-scm-8.0.4 threadpoolctl-3.2.0 tqdm-4.66.1 trx-python-0.2.9 typing-extensions-4.9.0
Problem: The installation works on Linux, but fails on apple silicon.
OS: Ventura 13.6.1 Hardware: Mac Studio M2
Installation
conda create -n noddi python=3.11
conda activate noddi
pip install dmri-amico
Things appear to go wrong here: packages/setuptools/command/build_py.py:204: _Warning: Package 'dicelib.include' is absent from the
packages
configuration. !! After this a giant list of errors occurs: