insidesherpa / JPMC-tech-task-1

56 stars 352 forks source link

Undefined variables and unable to import few modules - JPMC-tech-task-1 #235

Open Josep1990 opened 4 years ago

Josep1990 commented 4 years ago

importAndUndefined noImport undefined

Josep1990 commented 4 years ago

server.py errors: line error 21 : No name 'izip' in modules 'intertools' 26 : Unable to import 'dateutil.parser' 34 : Unable to import 'BaseHTTPServer' 282 : Undefined variable 'xrange(10)'

260 : Generator has no 'next' member 282 : Generator has no 'next' member 283 : Generator has no 'next' member 284 : Generator has no 'next' member 292 : Generator has no 'next' member 293 : Generator has no 'next' member 297 : Generator has no 'next' member 298 : Generator has no 'next' member

client.py errors: line error 21 : Unable to import 'urllib2' 54 : Undefined variable 'xrange(N)'

kaliappan01 commented 3 years ago

@Josep1990 I think you have installed python3 in your machine and the code is in python2 , you can try using the python3 version of the code I hope this resolves your issue