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

fix commit permission denied for home dipy folder #8

Merged
merged 1 commit into from
Nov 17, 2024

Conversation

gagnonanthony
Copy link
Collaborator

The COMMIT process was failing due to a OSError:

Traceback (most recent call last):
  File "/usr/local/bin/scil_run_commit.py", line 33, in <module>
    sys.exit(load_entry_point('scilpy', 'console_scripts', 'scil_run_commit.py')())
  File "/scilpy/scripts/scil_run_commit.py", line 408, in main
    commit.core.setup(ndirs=args.nbr_dir)
  File "commit/core.pyx", line 38, in commit.core.setup
  File "/usr/local/lib/python3.10/dist-packages/amico/core.py", line 41, in setup
    amico.lut.precompute_rotation_matrices( lmax, n )
  File "/usr/local/lib/python3.10/dist-packages/amico/lut.py", line 102, in precompute_rotation_matrices
    makedirs(dipy_home)
  File "/usr/lib/python3.10/os.py", line 225, in makedirs
    mkdir(name, mode)
OSError: [Errno 30] Read-only file system: '/home/lthorn2/.dipy'

After some digging, dipy is trying to create his home directory at ~/.dipy which is not writeable within a container.
Setting the DIPY_HOME variable to another path should be a sufficient fix.

@gagnonanthony gagnonanthony merged commit 77c8fc9 into scilus:main Nov 17, 2024
1 check passed
@gagnonanthony gagnonanthony deleted the commitfix branch November 17, 2024 04:21
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

Successfully merging this pull request may close these issues.

1 participant