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

Permission Denied when installing Geant4 data with spack #426

Open
janmayer opened this issue Aug 15, 2021 · 2 comments
Open

Permission Denied when installing Geant4 data with spack #426

janmayer opened this issue Aug 15, 2021 · 2 comments
Milestone

Comments

@janmayer
Copy link

When installing the latest dev version with spack, i get a permission denied error when installing the Geant4 data packages.
I could trace it back to shutil.copy2 in filesystem.py. Replacing copy2 with copyfile resolves the issue.

System is RHEL 8 with Python 3.6.8.

@ChristianTackeGSI
Copy link
Member

Hi!

Thanks for your report!

Are you able to trace down why copy2 did not work for you, but copyfile does?
From my quick looks, it seems, that copy2 tries to copy over metadata in addition. Are you installing to a strange filesystem, that does not support chmod or something?

@janmayer
Copy link
Author

Its is a GPFS filesystem.

I didn't fully track it down. One of my hypotheses was that the files (and folders?) it tries to copy are readonly. I.e., it copies the folder, sets it to readonly, and then fails to copy the files into it. Probably not though.

As a sidenote: I know spack is not your code, but I think this part is quite overengineered. Python has a copy_tree function - I see no good reason to re-implement it.

@dennisklein dennisklein added this to the next milestone Nov 4, 2021
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

3 participants