llSourcell / How_to_simulate_a_self_driving_car

This is the code for "How to Simulate a Self-Driving Car" by Siraj Raval on Youtube
430 stars 306 forks source link

"GET /socket.io/?EIO=4&transport=websocket HTTP/1.1" 404 #34

Open matthewgan opened 5 years ago

matthewgan commented 5 years ago

I just open up the udacity simulator, and clone this repo trying to get a test run when i run python drive.py model.h5 I got this printing all over the terminal: 127.0.0.1 - - [06/Dec/2018 23:56:52] "GET /socket.io/?EIO=4&transport=websocket HTTP/1.1" 404 342 0.002979 (17772) accepted ('127.0.0.1', 56738) and its keep printing like this

Please kindly help to tell me what am i be wrong with?

Onixaz commented 5 years ago

EDIT: managed to fix my problem by uninstalling python-socketio( which was installed with conda, so basically run conda uninstall python-socketio) and then simply pip install python-socketio

richfolsom commented 5 years ago

Same for me

martin34 commented 5 years ago

I had to update my python packages requirements.txt

Flask
attrdict
eventlet
python-socketio
numpy
Pillow
scipy
keras==2.0.8
tensorflow==1.3.0
h5py==2.6.0
lukashubl commented 5 years ago

EDIT: managed to fix my problem by uninstalling python-socketio( which was installed with conda, so basically run conda uninstall python-socketio) and then simply pip install python-socketio

works for me as well

matthewgan commented 5 years ago

i cant find tensorflow==1.3.0 in conda nav, so i update to 1.7.0 but still not working. What's your conda version? @martin34

matthewgan commented 5 years ago

update python-socketio to latest and it finally works

woodyhaddad commented 5 years ago

EDIT: managed to fix my problem by uninstalling python-socketio( which was installed with conda, so basically run conda uninstall python-socketio) and then simply pip install python-socketio

Worked for me as well!

rotemduff commented 4 years ago

I'm having the same problem. I tried to uninstall python-socketio and then install but it didn't work :( any ideas?

adammcquade commented 3 years ago

Also having the same problem and reinstalling python-socketio did not work.

albertnew2012 commented 3 years ago

I solved the problem by following this answer. Specifically, when I downgrade python-engineio to 3.13.0, it works immediately. Here are versions of dependencies I used to run the simulator, it works well. In case it could help anyone, I post it here:

numpy~=1.19.4
eventlet~=0.29.1
Pillow~=7.0.0
Flask~=1.1.2
opencv-python~=4.4.0.46
matplotlib~=3.3.3
sklearn~=0.0
scikit-learn~=0.23.2
Keras~=2.4.3
scikit-image~=0.18.0
python-engineio==3.13.0
python-socketio==4.6.1
Godwin45 commented 3 years ago

have the same problem.. has anyone found the solution

albertnew2012 commented 3 years ago

have the same problem.. has anyone found the solution

@Godwin45 Could you try the answer I posted above?

codekojo commented 3 years ago

have the same problem.. has anyone found the solution

What python version are you using?

Godwin45 commented 3 years ago

@ZhengzhiLiu The solution U gave worked perfectly. Thank U very much

changyuanliu commented 3 years ago

I solved the problem by following this answer. Specifically, when I downgrade python-engineio to 3.13.0, it works immediately. Here are versions of dependencies I used to run the simulator, it works well. In case it could help anyone, I post it here:

numpy~=1.19.4
eventlet~=0.29.1
Pillow~=7.0.0
Flask~=1.1.2
opencv-python~=4.4.0.46
matplotlib~=3.3.3
sklearn~=0.0
scikit-learn~=0.23.2
Keras~=2.4.3
scikit-image~=0.18.0
python-engineio==3.13.0
python-socketio==4.6.1

Thank you so much! Your reply resolved my issue. Thanks!

Justblue0312 commented 3 years ago

I solved the problem by following this answer. Specifically, when I downgrade python-engineio to 3.13.0, it works immediately. Here are versions of dependencies I used to run the simulator, it works well. In case it could help anyone, I post it here:

numpy~=1.19.4
eventlet~=0.29.1
Pillow~=7.0.0
Flask~=1.1.2
opencv-python~=4.4.0.46
matplotlib~=3.3.3
sklearn~=0.0
scikit-learn~=0.23.2
Keras~=2.4.3
scikit-image~=0.18.0
python-engineio==3.13.0
python-socketio==4.6.1

Thank you so much! Your reply resolved my issue. Thanks!

which python version that you use for anaconda?

Subhainr commented 3 years ago

I cannot also do it. plz give me step by step guidance.

AnukritiSinghh commented 3 years ago

As posted by the OP, instead of 404, I have the error '"GET /socket.io/?EIO=4&transport=websocket HTTP/1.1" 400' what does this mean? Can somebody please help me to solve?

Edit : thankyou so much!!! @ZhengzhiLiu it solved my issue

HinalJ commented 3 years ago

I solved the problem by following this answer. Specifically, when I downgrade python-engineio to 3.13.0, it works immediately. Here are versions of dependencies I used to run the simulator, it works well. In case it could help anyone, I post it here:

numpy~=1.19.4
eventlet~=0.29.1
Pillow~=7.0.0
Flask~=1.1.2
opencv-python~=4.4.0.46
matplotlib~=3.3.3
sklearn~=0.0
scikit-learn~=0.23.2
Keras~=2.4.3
scikit-image~=0.18.0
python-engineio==3.13.0
python-socketio==4.6.1

It workss!!!!!! Thank You So Much

Mahantesh840 commented 3 years ago

Hi @ZhengzhiLiu ,

I tried to install all packages with version that you mentioned(as pip install python-engineio==3.13.0 and conda install -c anaconda python-engineio==3.13.0 etc) but not able to install.

error is : ERROR: Could not find a version that satisfies the requirement python-engineio==3.13.0 (from versions: none) ERROR: No matching distribution found for python-engineio==3.13.0

Please help if someone knows how to install required packages

HinalJ commented 3 years ago

Hey @Mahantesh840 , Did you tried to downgrade python-socket.io == 4.6.1 ?

changyuanliu commented 3 years ago

Hi @ZhengzhiLiu ,

I tried to install all packages with version that you mentioned(as pip install python-engineio==3.13.0 and conda install -c anaconda python-engineio==3.13.0 etc) but not able to install.

error is : ERROR: Could not find a version that satisfies the requirement python-engineio==3.13.0 (from versions: none) ERROR: No matching distribution found for python-engineio==3.13.0

Please help if someone knows how to install required packages

What is your Python version? Mine is Python 3.8.5 and it worked.

donrj05 commented 3 years ago

I had to update my python packages requirements.txt

Flask
attrdict
eventlet
python-socketio
numpy
Pillow
scipy
keras==2.0.8
tensorflow==1.3.0
h5py==2.6.0

MARTIN HATS OFF TO YOU!!!!!!! IT WORKED!

skywalkercr7 commented 3 years ago

Hi @ZhengzhiLiu , I tried to install all packages with version that you mentioned(as pip install python-engineio==3.13.0 and conda install -c anaconda python-engineio==3.13.0 etc) but not able to install. error is : ERROR: Could not find a version that satisfies the requirement python-engineio==3.13.0 (from versions: none) ERROR: No matching distribution found for python-engineio==3.13.0 Please help if someone knows how to install required packages

What is your Python version? Mine is Python 3.8.5 and it worked.

@changyuanliu what version of Tensorflow did you use for Keras 2.4.3?

skywalkercr7 commented 3 years ago

Hey @Mahantesh840 , Did you tried to downgrade python-socket.io == 4.6.1 ?

@HinalJ what about version of tensorflow to be used with Keras 2.4.3?

skywalkercr7 commented 3 years ago

have the same problem.. has anyone found the solution

@Godwin45 Could you try the answer I posted above?

@ZhengzhiLiu mate, what was your version of Tensorflow for keras 2.4.3?

RIT-MESH commented 2 years ago

have the same problem.. has anyone found the solution

@Godwin45 Could you try the answer I posted above?

@ZhengzhiLiu mate, what was your version of Tensorflow for keras 2.4.3?

have you got the answer?

RahulraaghavA1308 commented 2 years ago

I solved the problem by following this answer. Specifically, when I downgrade python-engineio to 3.13.0, it works immediately. Here are versions of dependencies I used to run the simulator, it works well. In case it could help anyone, I post it here:

numpy~=1.19.4
eventlet~=0.29.1
Pillow~=7.0.0
Flask~=1.1.2
opencv-python~=4.4.0.46
matplotlib~=3.3.3
sklearn~=0.0
scikit-learn~=0.23.2
Keras~=2.4.3
scikit-image~=0.18.0
python-engineio==3.13.0
python-socketio==4.6.1

Thank god this worked

smorgab2022 commented 2 years ago

La forma de actualizarlos es la siguiente: pip install --upgrade python-socketio==4.6.0 pip install --upgrade python-engineio==3.13.2

Me funcionó, el vehículo ya se mueve.

Snr-Sammie commented 2 years ago

This worked for me I was using python 3.7

numpy~=1.19.4
eventlet~=0.29.1
Pillow~=7.0.0
Flask~=1.1.2
opencv-python~=4.4.0.46
matplotlib~=3.3.3
sklearn~=0.0
scikit-learn~=0.23.2
Keras~=2.4.3
scikit-image~=0.18.0
python-engineio==3.13.0
python-socketio==4.6.1
markupsafe==2.01
protobuf==3.20.*
aydinsimsek commented 1 year ago

It seems like there is a compatibility issue.
Running the following commands solved the problem for me:

conda install -c conda-forge python-socketio
conda install -c conda-forge python-engineio=3.0.0
PratikJH153 commented 1 year ago

I just open up the udacity simulator, and clone this repo trying to get a test run when i run python drive.py model.h5 I got this printing all over the terminal: 127.0.0.1 - - [06/Dec/2018 23:56:52] "GET /socket.io/?EIO=4&transport=websocket HTTP/1.1" 404 342 0.002979 (17772) accepted ('127.0.0.1', 56738) and its keep printing like this

Please kindly help to tell me what am i be wrong with?

Could anyone please also suggest a solution for this for nodejs and flutter? I encountered this error when I hosted socket & nodejs on Linode server. Please help with this problem