You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error Message:
AttributeError: module 'requests' has no attribute 'get'
Issue
Is there a workaround? I tried importing requests and gd directly (commented out), but it didn't help. I used the same code on the main page starter code for this api.
Note: According to this article, I may have this issue if there is another requests file on my system. Unfortunately, I have no other python file with this title.
System Info
MacOS Ventura 13.3
Attempted BOTH with the same result :
Spyder in Anaconda (using Python 3.9.13)
Jupyterlab (Python 3.9.13)
Part 1: This Code Worked
# import gdeltdoc as gd
# import requests
from gdeltdoc import GdeltDoc, Filters
f = Filters(keyword = "climate change", start_date = "2020-05-10", end_date = "2020-05-11")
gd = GdeltDoc()
Part 2: This Produced the Error
# Search for articles matching the filters
# problem
articles = gd.article_search(f)
AttributeError: module 'requests' has no attribute 'get'
Part 3: This Code Same Error
# Get a timeline of the number of articles matching the filters
# problem
timeline = gd.timeline_search("timelinevol", f)
AttributeError: module 'requests' has no attribute 'get'
The text was updated successfully, but these errors were encountered:
Error Message:
AttributeError: module 'requests' has no attribute 'get'
Issue
Is there a workaround? I tried importing requests and gd directly (commented out), but it didn't help. I used the same code on the main page starter code for this api.
Note: According to this article, I may have this issue if there is another requests file on my system. Unfortunately, I have no other python file with this title.
System Info
Part 1: This Code Worked
Part 2: This Produced the Error
AttributeError: module 'requests' has no attribute 'get'
Part 3: This Code Same Error
AttributeError: module 'requests' has no attribute 'get'
The text was updated successfully, but these errors were encountered: