vimeo.py icon indicating copy to clipboard operation
vimeo.py copied to clipboard

Failed to install package 'PyVimeo'

Open maclove9 opened this issue 7 years ago • 33 comments

Hi, I'm trying to install with PyCharm(windows 10)

Excuted command : pip install Pyvimeo

Command output :

Collecting PyVimeo
  Using cached https://files.pythonhosted.org/packages/b8/d9/7dd9a8748482d2dd6004685d36f8c89cbf2c4d4033f2b513803b49b54f4c/PyVimeo-1.0.5.tar.gz
Requirement already satisfied: requests>=2.4.0 in d:\work\web\tc-btest-backend\venv\lib\site-packages (from PyVimeo) (2.19.1)
Collecting tuspy==0.2.1 (from PyVimeo)
  Using cached https://files.pythonhosted.org/packages/ce/23/f8cdb6ec7a3c43b8913843279bc4a61736578a1d0f950c3dd6a94f13fc0e/tuspy-0.2.1.tar.gz
Requirement already satisfied: certifi>=2017.4.17 in d:\work\web\tc-btest-backend\venv\lib\site-packages (from requests>=2.4.0->PyVimeo) (2017.7.27.1)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in d:\work\web\tc-btest-backend\venv\lib\site-packages (from requests>=2.4.0->PyVimeo) (3.0.4)
Requirement already satisfied: idna<2.8,>=2.5 in d:\work\web\tc-btest-backend\venv\lib\site-packages (from requests>=2.4.0->PyVimeo) (2.7)
Requirement already satisfied: urllib3<1.24,>=1.21.1 in d:\work\web\tc-btest-backend\venv\lib\site-packages (from requests>=2.4.0->PyVimeo) (1.23)
Collecting pycurl==7.43.0 (from tuspy==0.2.1->PyVimeo)
  Using cached https://files.pythonhosted.org/packages/12/3f/557356b60d8e59a1cce62ffc07ecc03e4f8a202c86adae34d895826281fb/pycurl-7.43.0.tar.gz
    Complete output from command python setup.py egg_info:
    Please specify --curl-dir=/path/to/built/libcurl
    
    ----------------------------------------

Command "python setup.py egg_info" failed with error code 10 in C:\Users\maclove\AppData\Local\Temp\pycharm-packaging\pycurl\

maclove9 avatar Jul 20 '18 02:07 maclove9

I don't have a Windows machine to test, but how are you attempting to install the package? Within PyCharm, or from your Windows shell?

erunion avatar Jul 20 '18 17:07 erunion

@erunion I tried both(PyCharm 2018.1 and Window shell). The same error has occurred.

maclove9 avatar Jul 23 '18 02:07 maclove9

@maclove9 Try installing the PyCurl package (via MSI or Wheel) manually from here. You should be looking for the pycurl-7.43.0-cp27-none-win_amd64.whl for the wheel or pycurl-7.43.0.win-amd64-py2.7.msi for the MSI version.

  • If you opt for the wheel it can be installed with pip install <path_to_wheel_file>
  • The MSI should be double clickable/GUIi based (iirc).

Lmk, how this goes.

Onebrownsound avatar Jul 23 '18 15:07 Onebrownsound

@Onebrownsound I tried install the Pycurl, but result same.

maclove9 avatar Jul 24 '18 07:07 maclove9

@maclove9: Are you using Python 3.7? IIRC pycurl is supported up to Python 3.6 (as stated here: https://pypi.org/project/pycurl/), maybe that's related to the issue.

tocsinde avatar Jul 24 '18 12:07 tocsinde

@tocsinDE I succeed install PyCurl, but result same. I succeed install PyVimeo at my mac, but failed at my windows pc.

maclove9 avatar Jul 25 '18 02:07 maclove9

After getting PyCurl installed successfully, are you getting a different output from pip, or the same telling you to specify the path to libcurl?

erunion avatar Jul 25 '18 13:07 erunion

@maclove9 Having a tough time reproducing. With a fresh Python (2.7) install with no packages or PyCurl/Curl on the system, the pip install functioned. What version of Python are you using? pyvimeo_install

Onebrownsound avatar Jul 25 '18 16:07 Onebrownsound

@Onebrownsound Python 3.6.6

pyvimeo

maclove9 avatar Jul 26 '18 04:07 maclove9

I'm having the same issue on python 3.6.4. I've removed the upload part which depends on tusclient, I believe that's the only thing that requires pycurl. Removing this from the library fixed my issue!

phalox avatar Oct 04 '18 15:10 phalox

Same problem here!

lucasvieiramay avatar Oct 04 '18 19:10 lucasvieiramay

I am also having the same issue on 3.7 I can not get past the error stated above no matter what I install additionally or upgrade or fix. I have upgraded pip, setuptools and installed various other tools, however, I still get the error when attempting to install PyVimeo

Jazzydex avatar Oct 19 '18 17:10 Jazzydex

ok so here is the solution to this process. You have to download the PyVimeo download from the same place you found the issues. I downloaded it to the c drive. Then I ran that package python -m pip install c:\filename.gz --user and it works fine, you will need to update pip and setup tools as well. At least I did. You only get the issue if you attempt to download the file and install at the same time.

Jazzydex avatar Oct 22 '18 13:10 Jazzydex

If @Jazzydex's solution works for everyone else, we can update our readme with some Windows-specific clarifications.

erunion avatar Oct 24 '18 16:10 erunion

@erunion , it's not a Windows specific issue. I tried to install it on my Ubuntu 16.04, it shows the same error.

farhanmasud avatar Nov 12 '18 17:11 farhanmasud

@Jazzydex , can you please elaborate? I didn't understand the solution. Do I have to download pyvimeo on a specific path?

farhanmasud avatar Nov 12 '18 17:11 farhanmasud

Pull the package from the website rather than from within python. It pulls the wrong version or something. It'll work then.

On Mon., 12 Nov. 2018, 12:34 farhanmasud <[email protected] wrote:

@erunion https://github.com/erunion , it's not a Windows specific issue. I tried to install it on my Ubuntu 16.04, it shows the same error.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vimeo/vimeo.py/issues/129#issuecomment-437960805, or mute the thread https://github.com/notifications/unsubscribe-auth/AqP7CD4i8SDK0VM_Ahj_Ju_J1IAvSmmJks5uua0YgaJpZM4VXWBB .

Jazzydex avatar Nov 12 '18 18:11 Jazzydex

Download it from Vimeos developer portal.

On Mon., 12 Nov. 2018, 13:10 farhanmasud <[email protected] wrote:

@Jazzydex https://github.com/Jazzydex , can you please elaborate? I didn't understand the solution. Do I have to download pyvimeo on a specific path?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vimeo/vimeo.py/issues/129#issuecomment-437961182, or mute the thread https://github.com/notifications/unsubscribe-auth/AqP7CMp3gRj-1mNylq85FB5BhQKWBSKuks5uua1ggaJpZM4VXWBB .

Jazzydex avatar Nov 12 '18 19:11 Jazzydex

@Jazzydex fix worked for me also. I just downloaded the Zip from the Github page and moved the "vimeo" folder into my Python "Lib" folder. The only other issue I ran into was I needed to install "tus-py" https://github.com/tus/tus-py-client. But that was a simple pip install tuspy.

After tuspy was installed I was able to import vimeo into my python files.

mitchtabian avatar Nov 19 '18 21:11 mitchtabian

Killer, fantastic!

On Mon., 19 Nov. 2018, 16:24 Mitch Tabian <[email protected] wrote:

@Jazzydex https://github.com/Jazzydex fix worked for me also. I just downloaded the Zip from the Github page and moved the "vimeo" folder into my Python "Lib" folder. The only other issue I can into was I needed to install "tus-py" https://github.com/tus/tus-py-client. But that was a simple pip install tuspy.

After tuspy was installed I was able to import vimeo into my python files.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vimeo/vimeo.py/issues/129#issuecomment-440046588, or mute the thread https://github.com/notifications/unsubscribe-auth/AqP7CCjDYKDRb6K2Dfi_gLTLsxdCWYtQks5uwyGegaJpZM4VXWBB .

Jazzydex avatar Nov 19 '18 21:11 Jazzydex

I have the same problem on Debian 9.6 -- PyVimeo wouldn't install from pip (on a anaconda setup)

gabriel@saclas:~/.sk$ python --version
Python 3.7.1
gabriel@saclas:~/.sk$ pip install PyVimeo
Collecting PyVimeo
Requirement already satisfied: requests>=2.4.0 in /home/gabriel/anaconda3/lib/python3.7/site-packages (from PyVimeo) (2.21.0)
Collecting tuspy==0.2.1 (from PyVimeo)
Requirement already satisfied: idna<2.9,>=2.5 in /home/gabriel/anaconda3/lib/python3.7/site-packages (from requests>=2.4.0->PyVimeo) (2.8)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /home/gabriel/anaconda3/lib/python3.7/site-packages (from requests>=2.4.0->PyVimeo) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /home/gabriel/anaconda3/lib/python3.7/site-packages (from requests>=2.4.0->PyVimeo) (2018.11.29)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /home/gabriel/anaconda3/lib/python3.7/site-packages (from requests>=2.4.0->PyVimeo) (1.24.1)
Collecting six==1.10.0 (from tuspy==0.2.1->PyVimeo)
  Using cached https://files.pythonhosted.org/packages/c8/0a/b6723e1bc4c516cb687841499455a8505b44607ab535be01091c0f24f079/six-1.10.0-py2.py3-none-any.whl
Collecting pycurl==7.43.0 (from tuspy==0.2.1->PyVimeo)
Requirement already satisfied: tinydb>=3.5.0 in /home/gabriel/anaconda3/lib/python3.7/site-packages (from tuspy==0.2.1->PyVimeo) (3.12.2)
tuspy 0.2.1 has requirement certifi==2017.7.27.1, but you'll have certifi 2018.11.29 which is incompatible.
Installing collected packages: six, pycurl, tuspy, PyVimeo
  Found existing installation: six 1.12.0
    Uninstalling six-1.12.0:
      Successfully uninstalled six-1.12.0
  Found existing installation: pycurl 7.43.0.2
Cannot uninstall 'pycurl'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
gabriel@saclas:~/.sk$

I cloned this repo, and copied the vimeo folder / module to my app and it worked fine for me so I stopped my investigations there.

gabrielmontagne avatar Feb 10 '19 00:02 gabrielmontagne

@gabrielmontagne Please try appending --ignore-installed to the pip install PyVimeo command.

Onebrownsound avatar Feb 10 '19 00:02 Onebrownsound

@gabrielmontagne Please try appending --ignore-installed to the pip install PyVimeo command.

thanks, that worked perfectly 👍

gabrielmontagne avatar Feb 10 '19 16:02 gabrielmontagne

@gabrielmontagne Please try appending --ignore-installed to the pip install PyVimeo command.

This works for me!

vztu avatar Apr 21 '19 03:04 vztu

I get the same problem on MacOS 10.14.2. I am using the default installation of Python and the command "sudo pip install PyVimeo --ignore-installed?

I get the error:

ERROR: tuspy 0.2.1 has requirement certifi==2017.7.27.1, but you'll have certifi 2019.6.16 which is incompatible.

If I go into an interactive Python session, I can import vimeo but it causes this error:

ImportError: pycurl: libcurl link-time ssl backend (openssl) is different from compile-time ssl backend (none/other)

ralabate avatar Jul 18 '19 20:07 ralabate

My Environment

Python 3.6 Windows 10

What Happened

I paste the 'vimeo' folder into my python Lib folder. But... as I do

v = vimeo.VimeoClient(
    token='YOUR_ACCESS_TOKEN',
    key='YOUR_CLIENT_ID',
    secret='YOUR_CLIENT_SECRET'
)

an error occurs

    v = vimeo.VimeoClient(
AttributeError: module 'vimeo' has no attribute 'VimeoClient'

Any insight?

aliwo avatar Oct 10 '19 04:10 aliwo

Figured it out... the problem was the name of the file. test.py -> hi.py The error has gone.

aliwo avatar Oct 10 '19 05:10 aliwo

I am also getting the same error. Please specify --curl-dir=/path/to/built/libcurl. Do I have to manually download and place the folder inside python libs?

Aniket-Singla avatar Dec 21 '19 08:12 Aniket-Singla

please reopen this issue

chezhiane avatar Mar 29 '20 23:03 chezhiane

Same issue here, also using Windows.

jonathanmach avatar Apr 24 '20 00:04 jonathanmach