Skip to content
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

installation fails on osx when ITK is not present #2

Closed
stnava opened this issue Aug 28, 2017 · 2 comments
Closed

installation fails on osx when ITK is not present #2

stnava opened this issue Aug 28, 2017 · 2 comments

Comments

@stnava
Copy link
Member

stnava commented Aug 28, 2017

points of failure

cd ANTsPy-master

should be

cd ANTsPy

itk clone/compile works until

[100%] Built target MGHIO-all
Install the project...
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:31 (file):
  file cannot create directory: /libs/lib/cmake/ITK-4.12.  Maybe need
  administrative privileges.


make: *** [install] Error 1
ITK_DIR:  /Users/bavants/code/ANTsPy/itkbuild
Traceback (most recent call last):
  File "setup.py", line 81, in <module>
    subprocess.check_call(['./configure_antspy.sh'], cwd=setup_py_dir)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 579, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 560, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 950, in __init__
    restore_signals, start_new_session)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 1540, in _execute_child
    raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied

which is related primarily to the line

  file cannot create directory: /libs/lib/cmake/ITK-4.12.  Maybe need

which suggests a need to define a local install directory, perhaps within ANTsPy.

also need to document how to install ITK in the environment such that ANTsPy can see it.

@ncullen93
Copy link
Member

ncullen93 commented Aug 28, 2017

try sudo python setup.py develop for now and i'll work on it.

EDIT: i don't think we need the command make install in configure_itk.sh line 72 ... like i've never needed to actually install ITK and I just took that file from ANTsR, so I'll remove that and it should work now regardless (will test).

@ncullen93
Copy link
Member

closed bc it's fixed

ravnoor added a commit to ravnoor/ANTsPy that referenced this issue Jan 13, 2023
ravnoor added a commit to ravnoor/ANTsPy that referenced this issue Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants