Closed hydra3333 closed 6 years ago
Ah. Added these debug lines in fetch_ur1
print('fetch_ur1 url: ' + url)
print('fetch_ur1 desc: ' + url)
and saw
.\python.exe .\vsrepo.py -p -t win64 -f -b vapoursynth64\plugins\dll-to-choose-from -s vapoursynth64\scripts upgrade-all
fetch_ur1 url: http://rationalqm.us/hdr/DGHDRtoSDR_1.9.rar
fetch_ur1 desc: http://rationalqm.us/hdr/DGHDRtoSDR_1.9.rar
Traceback (most recent call last):
File ".\vsrepo.py", line 457, in <module>
inst = upgrade_all_packages(args.force)
File ".\vsrepo.py", line 370, in upgrade_all_packages
res = upgrade_files(get_package_from_id(id, True))
File ".\vsrepo.py", line 348, in upgrade_files
install_files(p)
File ".\vsrepo.py", line 290, in install_files
data = fetch_url_cached(url, p['name'] + ' ' + install_rel['version'])
File ".\vsrepo.py", line 134, in fetch_url_cached
data = fetch_ur1(url, desc)
File ".\vsrepo.py", line 115, in fetch_ur1
with urllib.request.urlopen(url) as urlreq:
File "urllib\request.py", line 223, in urlopen
File "urllib\request.py", line 532, in open
File "urllib\request.py", line 642, in http_response
File "urllib\request.py", line 570, in error
File "urllib\request.py", line 504, in _call_chain
File "urllib\request.py", line 650, in http_error_default
urllib.error.HTTPError: HTTP Error 404: Not Found
I'll check in with DG's website to clarify his position in regard to .zip files (rather than .rar as previously discussed in relation to portable 7zip) and about the possibility of retaining older versions for vsrepo compatibility.
Another possibility would be to just skip an 404 error. Just print a msg "404 file not found, skipping download" or something like that. I'm sure that some of the non git links will also fail in the future...
Yes, I'll probably make it try and skip. Plus a user friendly warning to go with it. Haven't really had this happen before.
Now it simply skips packages where the fetch operation fails and reports the failures at the end of the operation. Combined with the delayed uninstall of previous packages things should be more robust now. Grab latest git and try it out because I may have a typo here or there...
Hello, I ran vsrepo today (for the first time in circa a week) and received the error below.
Suggestions would be appreciated.