insidesherpa / JPMC-tech-task-1

56 stars 352 forks source link

import error server.py #99

Open Akshaysharma101 opened 4 years ago

Akshaysharma101 commented 4 years ago

240Untitled I am just unable to remove the error. The library izip and basehttpserver can't be imported in python 3.7.2. Help me out with this.

ankmish commented 4 years ago
  1. izip is not supported in python 3.x. Just comment the from itertools import izip and change function name izip() to zip(), it will work.

  2. For basehttpserver problem, changes goes like from http.server import BaseHTTPRequestHandler,HTTPServer , just change basehttpserver to http.server.

  3. In case anyone is getting No module named 'SocketServer' in python3.x, change SocketServer to socketserver.

Hope this will resolve your problem.

Akshaysharma101 commented 4 years ago

Resolved the problem yet. Thank you