antmoney999

Honorable
Sep 18, 2012
1
0
10,510
0
i'm new to python when I run this script
Code:
import wap
import speech

speech.say("Awaiting Command")
question = speech.input("Awaiting Command")
appid = '3HA463-A3RT78PEA8' # Use your app id
waeo = wap.WolframAlphaEngine(appid)
waeq = wap.WolframAlphaQuery(question, appid)
waeq.ScanTimeout = '3.0'
waeq.Async = False
waeq.ToURL() # After configuring the waeq must call ToURL()
 
result = waeo.PerformQuery(waeq.Query) # result is in xml format
print result 
waeq = wap.WolframAlphaQueryResult(result)
 
for pod in waeq.Pods():
  waep = wap.Pod(pod)
  print '\n%s: (%d subpods)' % (waep.Title(), waep.NumSubpods())
speech.say('\n%s: (%d subpods)' % (waep.Title(), waep.NumSubpods()))
it gives me this error http://pastebin.com/NhCEPZPv Can anyone diagnose this problem. Thanks in advanced
 
Thread starter Similar threads Forum Replies Date
A Apps General Discussion 5
T Apps General Discussion 5
A Apps General Discussion 4
A Apps General Discussion 4
A Apps General Discussion 1
R Apps General Discussion 1
M Apps General Discussion 1
A Apps General Discussion 1
H Apps General Discussion 1
G Apps General Discussion 5
M Apps General Discussion 11
A Apps General Discussion 6
G Apps General Discussion 19
C Apps General Discussion 1
Jaakey Apps General Discussion 2
T Apps General Discussion 3
B Apps General Discussion 4
R Apps General Discussion 1
D Apps General Discussion 6
G Apps General Discussion 3

ASK THE COMMUNITY