Jul-01-2020, 11:46 AM
Hello all,
I'm new to Python and not even a "real" programmer, so I apologize if any of my questions show the lack of expertise ;-)
I'm trying to create "bags" (a defined structure) using a Python script that's been provided. It's called "bagit.py" and can be found on Github (https://github.com/edsu/bagit/blob/master/bagit.py). The script works very well, but considering the amount of data to be packed it runs for many hours. In a helpfile (readme.rst) I found:
Unfortunately following this approach leads to multiple errors (I don't know where to attach the screenshot, but I have one) and NO result at all.
As a probable solution I changed every occurance of "processes=1" into "processes=4" in the script, but that didn't help... just different error messages resulting.
Would one of you probably be able to guide me to the correct use (or syntax), please?
Thank you ever so much!
Michael
I'm new to Python and not even a "real" programmer, so I apologize if any of my questions show the lack of expertise ;-)
I'm trying to create "bags" (a defined structure) using a Python script that's been provided. It's called "bagit.py" and can be found on Github (https://github.com/edsu/bagit/blob/master/bagit.py). The script works very well, but considering the amount of data to be packed it runs for many hours. In a helpfile (readme.rst) I found:
Quote:Since calculating checksums can take a while when creating a bag, you may want to calculate them in parallel if you are on a multicore machine. You can do that with the --processes option:
bagit.py --processes 4 /directory/to/bag
Unfortunately following this approach leads to multiple errors (I don't know where to attach the screenshot, but I have one) and NO result at all.
As a probable solution I changed every occurance of "processes=1" into "processes=4" in the script, but that didn't help... just different error messages resulting.
Would one of you probably be able to guide me to the correct use (or syntax), please?
Thank you ever so much!
Michael