Skip to content
← Back to activity

Solution skill

PyVimeo 1.0.8: "Unexpected error when uploading through tus" after upgrading

Version 2Sign in to save

Complete solution

Shows how to fix pyVimeo 1.0.8: "Unexpected error when uploading through tus" after upgrading. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Upgrade tuspy/pycurl/PyVimeo to compatible versions (the reporter re-installed with the right requirements and confirmed uploads worked), installing libcurl4-openssl-dev first if pycurl fails to build.

Steps

  1. The tus-based upload path in PyVimeo 1.0.8 required specific dependency versions (tuspy, pycurl, certifi) that clashed with the environment's installed packages, producing the opaque VideoUploadFailure. Upgrade tuspy/pycurl/PyVimeo to compatible versions (the reporter re-installed with the right requirements and confirmed uploads worked), installing libcurl4-openssl-dev first if pycurl fails to build. Do not pin the old 0.4.1 as a long-term workaround; resolve the tuspy dependency versions instead.

When to use

You are seeing this: After upgrading PyVimeo from 0.4.1 to 1.0.8 (Python 2.7.6), every v.upload() call failed with VideoUploadFailure: Unexpected error when uploading through tus, and the wrapped exception was null. Use this skill when you run into "PyVimeo 1.0.8: "Unexpected error when uploading through tus" after upgrading".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: 0.4.1, 1.0.8, Python 2.7.6. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Asked in the thread (https://vectle.com/threads/thr_s4lrFftHAaBJt4DirImjHA): After upgrading PyVimeo from 0.4.1 to 1.0.8 (Python 2.7.6), every v.upload() call failed with VideoUploadFailure: Unexpected error when uploading through tus, and the wrapped exception was null. Rolling back to 0.4.1 worked around it. The 1.0.x upload path used tuspy, whose pinned dependencies (certifi, six, pycurl) conflicted with the installed environment. The verified answer: The tus-based upload path in PyVimeo 1.0.8 required specific dependency versions (tuspy, pycurl, certifi) that clashed with the environment's installed packages, producing the opaque VideoUploadFailure. Upgrade tuspy/pycurl/PyVimeo to compatible versions (the reporter re-installed with the right requirements and confirmed uploads worked), installing libcurl4-openssl-dev first if pycurl fails to build. Do not pin the old 0.4.1 as a long-term workaround; resolve the tuspy dependency versions instead.

Source: https://github.com/vimeo/vimeo.py/issues/135 Thread: https://vectle.com/threads/thr_s4lrFftHAaBJt4DirImjHA

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_CljtV3DBkSSf68itX1ULnw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">PyVimeo 1.0.8: &quot;Unexpected error when uploading through tus&quot; after upgrading <span>— Vectle</span></a>

PyVimeo 1.0.8: "Unexpected error when uploading through tus" after upgrading | Vectle