Coder Social home page Coder Social logo

Error with get method timeout about vimeo.py HOT 5 CLOSED

vimeo avatar vimeo commented on June 19, 2024
Error with get method timeout

from vimeo.py.

Comments (5)

sclm avatar sclm commented on June 19, 2024

Hi @rafadev, the requests timeouts were changed in version 2.4.0 (2014-08-29) to accept a tuple so that you can differentiate the connect and byte timeouts. http://docs.python-requests.org/en/latest/user/advanced/#timeouts

Can you upgrade requests to that version and see if you're still having the issue?

Thanks!

from vimeo.py.

sclm avatar sclm commented on June 19, 2024

@rafadev Also, I've made that version explicit in setup.py, so a new install should also resolve the issue.

from vimeo.py.

rafaponieman avatar rafaponieman commented on June 19, 2024

Hi @sclm ! I have no idea why, I had a really old version of requests installed... with 2.4.x it works perfectly.

However, I found a problem that I think is an error. On setup.py, there is an "import vimeo" before calling setup. In vimeo/client.py there is an import requests. So, when installing with pip, from git directly (-e git+https://github.com/vimeo/vimeo.py.git#egg=PyVimeo), it throws an error:

  File "/home/rafsta/www/virtualenvs/jornadas/src/pyvimeo/setup.py", line 9, in <module>

    import vimeo

  File "vimeo/__init__.py", line 6, in <module>

    from client import VimeoClient

  File "vimeo/client.py", line 6, in <module>

    import requests

ImportError: No module named requests

I the end, I installed requests manually first, and then setup runs properly. I'm not sure if this is an error or not, it might just be because I'm installing directly from git and not from PyPi.

from vimeo.py.

sclm avatar sclm commented on June 19, 2024

Good catch! That's definitely a circular dependency and so I'll have to take a look to fix that.

I'm glad everything else worked out for you.

from vimeo.py.

rafaponieman avatar rafaponieman commented on June 19, 2024

Glad to help :)

from vimeo.py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.