Lispython / human_curl

Simple Human wrapper for cURL library
http://h.wrttn.me/human_curl
Other
205 stars 43 forks source link

AttributeError: 'module' object has no attribute 'get' #44

Open akbulut opened 9 years ago

akbulut commented 9 years ago

this is code ; import human_curl human_curl.get("http://github.com/?x", debug=True) print human_curl.response

this is error. human_curl.get("http://github.com/?x", debug=True) AttributeError: 'module' object has no attribute 'get'

i don't know what is the problem.

Lispython commented 9 years ago

How do you install it?

akbulut commented 9 years ago

pip insgtall human_curl ?

Lispython commented 9 years ago

Please, past full stack trace.

In [1]: import human_curl
In [2]: human_curl.get("http://github.com/?x", debug=True)
Out[2]: <Response: 301 >
gjpicker commented 7 years ago

I had even occured again , as far as I known

my python script name is "human_curl.py" . is I renamed it to "example.py" , all thing ok .