python - requests: 'module' object has no attribute 'get' -


i installed requests package last week , worked fine.. until morning. coded , got attributeerror: 'module' object has no attribute 'get' message:

import requests  r = requests.get('http://www.yellowpages.com/search?search_terms=coffee&geo_location_terms=montreal%2c+qc') 

i read in other posts might because have more 1 requests packages installed. when code print(dir(requests)) 2 lists..:

['__author__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'requests']  ['__author__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'requests'] 

any appreciated.

sylvain

is possible named script requests.py or have named file in same directory?


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -