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
After installing pybagit via pip, I get the following error
12:08:20 pybagittest$ ./run.py
Traceback (most recent call last):
File "./run.py", line 6, in <module>
bag.update()
File "/Library/Python/2.7/site-packages/pybagit/bagit.py", line 262, in update
p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
After flipping the execute bit ON for multichecksum.pyc and multichecksum.py, it is able to proceed, but fails with the following:
12:11:25 pybagittest$ ./run.py
/Users/jnmoore/Develop/pybagittest/mycontents/data
Traceback (most recent call last):
File "./run.py", line 7, in <module>
bag.update()
File "/Library/Python/2.7/site-packages/pybagit/bagit.py", line 274, in update
csum = self._calculate_checksum(os.path.join(self.bag_directory, f))
File "/Library/Python/2.7/site-packages/pybagit/bagit.py", line 411, in _calculate_checksum
fd = open(filepath, 'rb')
IOError: [Errno 2] No such file or directory: '/Users/jnmoore/Develop/pybagittest/mycontents/bagit.txt'
I'm not sure how to initiate a new bag after reading the docs. It looks like it could work with existing bags, but I haven't tried it.
Additionally, is there a way to customize the data directory? I don't want all my contents living in /mycontents/data. I would like to leave my contents undisturbed as other processes require it. I would however, like a manifest file to live at mycontents/file.manifest.
The execute bit is set on multichecksum.py on my version of the repo, so I'm surprised that it was unset on yours. Any more info you can give me would help track it down.
After installing pybagit via pip, I get the following error
After flipping the execute bit ON for multichecksum.pyc and multichecksum.py, it is able to proceed, but fails with the following:
I'm not sure how to initiate a new bag after reading the docs. It looks like it could work with existing bags, but I haven't tried it.
Additionally, is there a way to customize the data directory? I don't want all my contents living in /mycontents/data. I would like to leave my contents undisturbed as other processes require it. I would however, like a manifest file to live at mycontents/file.manifest.
Additionally, here is my PoC:
The text was updated successfully, but these errors were encountered: