av-aip's People
av-aip's Issues
Problem with verify_fixity.py when some items are missing md5 sidecar files
When using the mkv workflow and some mkvs are missing .md5 sidecar files, the script breaks with this error message:
Traceback (most recent call last):
File "/scripts/GitHub/av-aip/scripts/verify_fixity.py", line 29, in <module>
move_error('fixity_changed', f'{item}.md5')
File "/scripts/GitHub/av-aip/scripts/variables.py", line 73, in move_error
os.replace(item, f'{aip_staging}/aips_with_errors/{error_name}/{item}')
FileNotFoundError: [Errno 2] No such file or directory: '55002cyt.mkv.md5' -> '[nameofraid]AIP_staging/aips_with_errors/fixity_changed/55002cyt.mkv.md5'
This causes the rest of the script to break, because none of the md5 sidecar files or the oldmanifiest.txt is removed from the directory.
Related error: if the md5 sidecar file is blank (happens on occasion), this error happens:
Traceback (most recent call last):
File "/usr/local/bin/checksumthing", line 11, in <module>
load_entry_point('Checksumthing==0.0.3', 'console_scripts', 'checksumthing')()
File "/usr/local/lib/python2.7/site-packages/Checksumthing-0.0.3-py2.7.egg/EGG-INFO/scripts/checksumthing.py", line 82, in main
old_hash = hashing.read_hash(filepath, hash_length=hash_length)
File "/usr/local/lib/python2.7/site-packages/Checksumthing-0.0.3-py2.7.egg/Checksumthing/hashing.py", line 30, in read_hash
return m.group()
AttributeError: 'NoneType' object has no attribute 'group'
I'm not sure if this error freezes the script or just causes the subsequent steps to crash -- didn't make note of the results.
I've also noticed that if none of the mkvs have sidecar files, you just get an error message from checksumthing but the rest of the aip_av.py script runs fine. I created the mkv-filmscan branch to avoid this error message, because film scan mkvs never have sidecar md5s in our current workflow. I need to do more rigorous testing of that patch to make sure it's working correctly.
Adding this issue as a reminder to come fix it when I have time. Workaround is to process mkvs with md5s and mkvs without md5s separately.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.