pythonpipanacondavimeopyvimeo

Use PyVimeo from Anaconda


I'm trying to use the Vimeo API. In the documentation here it simply says to use pip install PyVimeo and it will install.

Unfortunately that doesn't work for me.

What I'm trying to accomplish is to be able to use the API to upload a bunch of videos to my PRO account.

I've tried their support and they were not terribly helpful.

Here's what I tried so far...

Originally I tried in Anaconda with Python 3, the package tries to install and then ends with Command "python setup.py egg_info" failed with error code 10 in C:\Users\Drew\AppData\Local\Temp\pip-install-y0bim5p8\pycurl\

Per Vimeo's recommendation I've uninstalled and reinstalled pycurl in my Anaconda environment but with the same result.

I used Google and found this article where people say they've been able to work around the issue here: https://github.com/vimeo/vimeo.py/issues/129

The punchline in the article was it fails if you try to download and install it at the same time, but if you download it and then install it locally it should work.

Using Google some more I found this question on SO, so I tried it out.

I did download the package locally and installed it using pip but it was all in Python 2 and used outdated libraries that Anaconda didn't seem able to automatically handle (my guess is because of a local pip install) and I tried to dig into the local files and update the code error message by error message to Python 3 compatibility, but this is really pushing my skill set - I was surprised how many I was able to work through, but ultimately I hit a dead on what I could figure out.

Trying to problem solve I switched my Anaconda to Python 2.7 and I was able to do pip install PyVimeo and to my surprise it was able to download the packages....

But then I tried to run the simplest of scripts:

import vimeo
print('Your video test is done')

I get this error: 'ModuleNotFoundError: No module named 'Vimeo'

Which baffles me because I'm not using 'Vimeo' but rather 'vimeo' and when in look in the 'Anaconda3\envs\py2\Lib\site-packages\vimeo' folder and then in all the .py files I see no calls to a module called 'Vimeo.'

And when it's all said and done I'm ~8 hours into this. I'm not that great of a programmer but I'm also stubborn and hate giving up.... does anyone have any ideas or suggestions on how I can get this to work?

Thank you in advance!


Solution

  • I had the same problem a few days ago. the problem is in the requirements of the pycurl version in the PYVimeo package, which is not compatible with python3, I solved this by installing PyVimeo without dependencies. pip install PyVimeo --no-dependencies

    and later installing the dependencies in its latest version pip install pycurl (if this not work, download the whl here: https://www.lfd.uci.edu/~gohlke/pythonlibs/) pip install pycurl pip install tuspy pip install requests