Closed dmarro89 closed 7 years ago
Can you post more details? Script, python version?
sent from mobile phone. excuse my brevity.
On Nov 20, 2016 18:18, "dmarro89" notifications@github.com wrote:
Hi, i'm trying to use for the first time EventRegistry API. I receive this error : "Event Registry exception while executing the request: request() got an unexpected keyword argument 'json' " when i try to execute a query.
Is this caused by a mistake in the use of API?
Greetings
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gregorleban/EventRegistry/issues/19, or mute the thread https://github.com/notifications/unsubscribe-auth/AAxauil5hZ-bmeIpe2c3lyhPMSCPi2_sks5rAIDzgaJpZM4K3mAJ .
Python 2.7.12
I'm trying to replicate the query in Wiki
from eventregistry import *
er = EventRegistry()
q = QueryEvents()
q.addConcept(er.getConceptUri("Star Wars"))
q.addRequestedResult(RequestEventsInfo(sortBy = "date", count=10)) # return event details for last 10 events
print er.execQuery(q)
Hi, the example that you posted works just fine on my python 2.7. From the exception I would guess that you have some outdated version of the requests library. Can you try updating it?
On Sun, Nov 20, 2016 at 6:27 PM, dmarro89 notifications@github.com wrote:
Python 2.7.12
I'm trying to replicate the query in Wiki
from eventregistry import * er = EventRegistry() q = QueryEvents() q.addConcept(er.getConceptUri("Star Wars")) q.addRequestedResult(RequestEventsInfo(sortBy = "date", count=10)) # return event details for last 10 events print er.execQuery(q)
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gregorleban/EventRegistry/issues/19#issuecomment-261791834, or mute the thread https://github.com/notifications/unsubscribe-auth/AAxaukJWykoL6DxBhdaqI_eEDKQXN9O8ks5rAIL_gaJpZM4K3mAJ .
Gregor
Ok, thanks
Hi, so if i try to execute with python command i have this error. On the other hand if i try to execute with pythonw command, it works perfectly.
I'm new in python, so i will study now the difference!
Thanks Greetings
Hi, i'm trying to use for the first time EventRegistry API. I receive this error :
"Event Registry exception while executing the request: request() got an unexpected keyword argument 'json' " when i try to execute a query.
Is this caused by a mistake in the use of API?
Greetings