You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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?
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.
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
infilesystem.py
. Replacingcopy2
withcopyfile
resolves the issue.System is RHEL 8 with Python 3.6.8.
The text was updated successfully, but these errors were encountered: