-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build afni.clean #656
Build afni.clean #656
Conversation
@afni-rickr I have added a commit which adds setuptools installation on macos, lets see if it helps at all in that failing stage. |
ok -- we got further but circle-ci seems to sensor outputs and I cannot understand what it wants for "ModuleNotFoundError: No module named '****py'"[1804/1905] Linking C shared library targets_built/libplug_maxima.dylib
[1805/1905] Linking C shared library targets_built/libplug_scatplot.dylib
[1806/1905] Linking C executable targets_built/****_open
[1807/1905] Linking C shared library targets_built/libplug_3dsvm.dylib
[1808/1905] Linking C shared library targets_built/libplug_nlfit.dylib
[1809/1905] Linking C executable targets_built/Xphace
[1810/1905] Linking C executable targets_built/aiv
[1811/1905] Linking C executable targets_built/tokens
[1811/1905] cd /tmp/src/****/src/python_scripts && bash /tmp/src/****/cmake/make_sure_****py_is_installed.sh /usr/local/Frameworks/Python.framework/Versions/3.12/bin/python3.12
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named '****py'
Installing ****py...
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
xyz, where xyz is the package you are trying to
install.
If you wish to install a Python library that isn't in Homebrew,
use a virtual environment:
python3 -m venv path/to/venv
source path/to/venv/bin/activate
python3 -m pip install xyz
If you wish to install a Python application that isn't in Homebrew,
it may be easiest to use 'pipx install xyz', which will manage a
virtual environment for you. You can install pipx with
brew install pipx
You may restore the old behavior of pip by passing
the '--break-system-packages' flag to pip, or by adding
'break-system-packages = true' to your pip.conf file. The latter
will permanently disable this error.
If you disable this error, we STRONGLY recommend that you additionally
pass the '--user' flag to pip, or set 'user = true' in your pip.conf
file. Failure to do this can result in a broken Homebrew installation.
Read more about this behavior here: <https://peps.python.org/pep-0668/>
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
[1813/1905] Linking CXX executable targets_built/dcm2niix_****
FAILED: targets_built/dcm2niix_****
: && /Applications/Xcode-13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -msse2 -mfpmath=sse -O3 -DNDEBUG -isysroot /Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Wl,-dead_strip -Wl,-stack_size -Wl,0x1000000 -Wl,-sectcreate,__TEXT,__info_plist,/tmp/src/****/Info.plist src/crorden/dcm2niix_console/CMakeFiles/dcm2niix.dir/main_console.cpp.o src/crorden/dcm2niix_console/CMakeFiles/dcm2niix.dir/nii_dicom.cpp.o src/crorden/dcm2niix_console/CMakeFiles/dcm2niix.dir/jpg_0XC3.cpp.o src/crorden/dcm2niix_console/CMakeFiles/dcm2niix.dir/ujpeg.cpp.o src/crorden/dcm2niix_console/CMakeFiles/dcm2niix.dir/nifti1_io_core.cpp.o src/crorden/dcm2niix_console/CMakeFiles/dcm2niix.dir/nii_foreign.cpp.o src/crorden/dcm2niix_console/CMakeFiles/dcm2niix.dir/nii_ortho.cpp.o src/crorden/dcm2niix_console/CMakeFiles/dcm2niix.dir/nii_dicom_batch.cpp.o src/crorden/dcm2niix_console/CMakeFiles/dcm2niix.dir/cJSON.cpp.o src/crorden/dcm2niix_console/CMakeFiles/dcm2niix.dir/base64.cpp.o -o targets_built/dcm2niix_**** && :
ld: can't open -sectcreate file: /tmp/src/****/Info.plist
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[1817/1905] Linking C executable targets_built/3dsvm
FAILED: src/python_scripts/CMakeFiles/dev_install_****py /tmp/src/****/build/src/python_scripts/CMakeFiles/dev_install_****py
cd /tmp/src/****/src/python_scripts && bash /tmp/src/****/cmake/make_sure_****py_is_installed.sh /usr/local/Frameworks/Python.framework/Versions/3.12/bin/python3.12
ninja: build stopped: subcommand failed.
Let's see if I could fetch any logs "raw" using our https://github.com/con/tinuous since I see no button in circle ci web ui, uff. edit: I found the button but that file has also |
From this bit of circleci text:
... I think the error occurs when "make_sure_afnipy_is_installed.sh" tries to have Python run It's further whining, some of which might be related to this, is:
|
might be, might be... might be worth also listening to it and just add that venv there , let's see... |
With macOS nowadays, we have had trouble nowadays getting Python dependencies into the brew-installed Python. They don't seem to like mixing brew-Python with pip-installed dependencies. For users, we pretty much recommend that people skip the brew-Python part and just do miniconda. That would be a bit of refactoring here, though. Will see how the |
I thought something broke annex again but it seems that the server at NIH is down?!
and locally I get
|
I can log into the server, so I don't think it's down. I'm not sure what is causing those errors. |
you can login via edit: I just dropped the |
==> aria2 Bash completion has been installed to: /usr/local/etc/bash_completion.d Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake or specify the `--cask` flag. Warning: No available formula with the name "python-venv". Did you mean python-idna? ==> Searching for similarly named formulae and casks... ==> Formulae python-idna To install python-idna, run: brew install python-idna Exited with code exit status 1
545c680
to
3246182
Compare
If it turns out that Python dependencies don't install well with brew's python and the "venv" stuff, then we could go the miniconda route, such as this (if it's a different chip on circleci, we can adjust that part easily):
|
the best would be for some afni folk with a mac to just give it a short following those commands in .circleci -- anyone with an aluminum case? NB no need even for a dedicated environment, just use |
I guess nobody... ok, let's continue somehow... |
Hi, Yarik- Sorry for being slow on this. Preparation from OHBM is happening, as well as a backlog of other things. |
FTR: here is a useful howto debug via ssh on circleci (didn't try yet) https://circleci.com/docs/ssh-access-jobs/#overview |
there seems to be a cocktail of python installations etc there.
Let's just install setuptools within the venv... |
It's all green! @yarikoptic, thank you so much! I had indeed been trying to reproduce this locally, but it seems like we will get bitten when this is updated to use newer systems. But that is for another day... :) Thanks again! |
yeay, we did it! if only I was more careful and did not do a stupid thing, we were done days ago! ;-) now please just keep it green! |
No description provided.