Giter Site home page Giter Site logo

Comments (5)

sclm avatar sclm commented on May 27, 2024

Yeah. I think your hunch is right. When it was written, you could provide a tuple for the connection and full request timeouts. It seems that may have changed, but it requires a bit more investigation.

from vimeo.py.

greedo avatar greedo commented on May 27, 2024

@boazin I am having trouble reproducing this error. Looking at the Request docs it seems timeout=(1, 30) is still the way to specify this.Could you attach an gist of your code and we'll figure it out.

from vimeo.py.

boazin avatar boazin commented on May 27, 2024

Well, I think it is a question of versions. Run pip freeze to see what you have. (mine is below)
The code is dead simple:

import vimeo
VIMEO_API_TOKEN = ""
VIMEO_API_SECRET = ""
TOKEN = ""
vimeo_username = ''
vimeo_obj = vimeo.VimeoClient(token=TOKEN, key=VIMEO_API_TOKEN, secret=VIMEO_API_SECRET)
vimeo_obj.get('/users?query={0}'.format(vimeo_username))

My pip freeze:

Pillow==2.3.0
PyVimeo==0.3.0
argparse==1.2.1
beautifulsoup4==4.3.2
boto==2.38.0
cffi==1.1.0
chardet==2.0.1
colorama==0.2.5
cryptography==0.9
enum34==1.0.4
google-api-python-client==1.4.0
html5lib==0.999
httplib2==0.9.1
idna==2.0
ipaddress==1.0.7
meld3==0.6.10
mercurial==2.8.2
oauth2==1.5.211
oauth2client==1.4.11
opengraph==0.5
pyOpenSSL==0.13
pyasn1==0.1.7
pyasn1-modules==0.0.5
pycparser==2.13
pymongo==3.0.2
python-dateutil==2.4.2
python-instagram==1.3.1
requests==2.2.1
rsa==3.1.4
sendgrid==1.4.0
simplejson==3.7.3
six==1.9.0
smtpapi==0.2.0
supervisor==3.0b2
uritemplate==0.6
urllib3==1.7.1
wheel==0.24.0
wsgiref==0.1.2

from vimeo.py.

greedo avatar greedo commented on May 27, 2024

@boazin Unfortunately this error is coming deep from the bowels of urllib3. Requests changed in version 2.4 to support connect timeouts. If you upgrade your version of requests to at least 2.4.0 this issue will be fixed.

from vimeo.py.

boazin avatar boazin commented on May 27, 2024

OK. Cool. That's weird because I'm using a docker image and building quite often (so it gets pip installed) I will look into the versions.
Thanks!

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.