Coder Social home page Coder Social logo

Comments (7)

jwarchol avatar jwarchol commented on April 28, 2024

Please let me know what I can provide to help you replicate and understand this error scenario.

from httpie.

jkbrzt avatar jkbrzt commented on April 28, 2024

Thanks for the report.

I was able to reproduce it with the latest version of requests. What version do you have installed?

$ pip freeze | grep requests
requests==0.12.1

from httpie.

jwarchol avatar jwarchol commented on April 28, 2024

requests==0.12.1 here too

from httpie.

jkbrzt avatar jkbrzt commented on April 28, 2024

It looks like this commit is the culprit:

kennethreitz/requests@324336e

from httpie.

dch avatar dch commented on April 28, 2024

FWIW you can depend on the old version like so:

put this into a file called pie.txt:

httpie
requests<0.12.0

and then:

pip uninstall requests httpie
pip install -r pie.txt

You should be fine now, assuming nothing else required requests > 0.12.0 of course.

from httpie.

ramsey avatar ramsey commented on April 28, 2024

The solution recommended by @dch works well. Thanks!

from httpie.

jkbrzt avatar jkbrzt commented on April 28, 2024

This was just fixed in #50 and consequently made compatible with older versions of requests as well by d544ec3.

from httpie.

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.