Message Boards Message Boards

GROUPS:

Error in Wolfram|Alpha API client

Posted 3 months ago
296 Views
|
0 Replies
|
0 Total Likes
|

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

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