Message Boards Message Boards

Error in Wolfram|Alpha API client

Posted 4 years ago

here is my error:
assert resp.headers.gettype() == 'text/xml' AttributeError: 'HTTPMessage' object has no attribute 'gettype'

and that is my code:

import wolframalpha
client = wolframalpha.Client('LXP5A5-L92R7KJWTK')

while True:
    query = str(input('Query: '))
    res = client.query(query)
    output = next(res.results).text
    print(output)

please help me

POSTED BY: bahavu pascal
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract