insidesherpa / JPMC-tech-task-2

29 stars 201 forks source link

ModuleNotFoundError: No module named 'BaseHTTPServer' #114

Open SahaanaIyer opened 4 years ago

SahaanaIyer commented 4 years ago

Screenshot (103) while executing "python datafeed/server.py", this is the error Im encountering. I have installed python version 3.8.2 , pip, dateutil, nvm

Kshitij031998 commented 4 years ago

Comment out the Basehttp line from the server.py file

SahaanaIyer commented 4 years ago

On doing as you mentioned, the next error I received was a similar one to the previous one. from SocketServer import ThreadingMixIn ModuleNotFoundError : No module named 'SocketServer'

So I tried commenting the line importing SocketServer, after that this is the new error

On Tue 12 May, 2020, 6:54 PM Kshitij031998, notifications@github.com wrote:

Comment out the Basehttp line from the server.py file

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/insidesherpa/JPMC-tech-task-2/issues/114#issuecomment-627342665, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMN3IC33BTISSEGMDOQE3D3RRFEYPANCNFSM4M6X43YQ .

Kshitij031998 commented 4 years ago

ok wait but first, tell me which file you are using because your python version is 3.8 and you need to run the server3.py from JPMC-tech-task-2-PY3.

SahaanaIyer commented 4 years ago

Absolutely right! But using JPMC-tech-task-2-PY3, when I run "python3 datafeed\server3.py", it just doesnt print anything while it should be printing "HTTP .... 8080"

On Tue, May 12, 2020 at 9:03 PM Kshitij031998 notifications@github.com wrote:

ok wait but first, tell me which file you are using because your python version is 3.8 and you need to run the server3.py from JPMC-tech-task-2-PY3.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/insidesherpa/JPMC-tech-task-2/issues/114#issuecomment-627420121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMN3ICZ2SGCUESQB3TR3QOLRRFT4JANCNFSM4M6X43YQ .

Kshitij031998 commented 4 years ago

I was having the same issue so I had turn off the firewall, changed the port from 8080 to 8050 as said in troubleshooting slides. Commented the base HTTP server and itertools in server .py file and used "python datafeed/server3.py"

dheerajodha commented 4 years ago

@SahaanaIyer If you have solved your issue, please consider closing this issue, thanks!