GithubHelp home page GithubHelp logo

Comments (3)

cdent avatar cdent commented on June 28, 2024

This is happening because you're using Python 2.6. wsgi-intercept 1.0.0 dropped support for python 2.6. It's only tested on 2.7 and 3.3 and beyond. If you need to continue using 2.6 for some reason then you'll need to pin to version 0.10.3.

In the tests below foo.py is your example test put into a file with a couple of asserts at the end. In the 2.7 example the lack of output or error means everything worked.

shine:/tmp $ foobar/bin/python2.6 /tmp/foo.py 
Traceback (most recent call last):
  File "/tmp/foo.py", line 12, in <module>
    resp, content = http.request(url)
  File "/private/tmp/foobar/lib/python2.6/site-packages/httplib2/__init__.py", line 1491, in request
    proxy_info=proxy_info)
  File "/private/tmp/foobar/lib/python2.6/site-packages/wsgi_intercept/httplib2_intercept.py", line 24, in __init__
    timeout=timeout, source_address=source_address)
TypeError: __init__() got an unexpected keyword argument 'source_address'
shine:/tmp $ python2.7 /tmp/foo.py 

If there's some pressing reason why 2.6 support is still important to maintain, please let me know in a respose to this comment. If not, please get off python 2.6.6; there have been important security fixes (see 2.6.9) and 2.6 is no longer a supported version of Python.

from wsgi-intercept.

NGSegovia avatar NGSegovia commented on June 28, 2024

Thank you for your answer and you recommendations @cdent!
For now i can't move to Python 2.7, so i'll stay on version 0.10.3.

I was wrong because in the documentation (http://wsgi-intercept.readthedocs.org/en/latest/), on the history section still mentions Python 2.6

from wsgi-intercept.

cdent avatar cdent commented on June 28, 2024

Oh, sorry about, thanks for letting me know. It turns out that the docs build jobs at readthedocs were not working properly. The source had been updated but not the published docs. I'm fixing the docs jobs now.

from wsgi-intercept.

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.