Getting socket error [104] connection reset by peer

Hi,

I am getting the socket error [104] in the console when i tried to deploy the MNIST model to production. when i ran the below command, error in the line number 8 for the file name “train_mnist_model.py” i get the socket error. Kindly view the attached screenshot and help with the step by step process to deploy the model to production

python train_mnist_model.py

Thanks in advance,
Kiruthika N

Hi Kiruthika,

The code is written for Python 3 and it seems like you are executing it in Python 2.7. Could you please use Python 3 or run it in the jupyter notebook.

Set this environment variable to access Python 3

export PATH=/usr/local/anaconda/bin:$PATH

Hope this helps.

Hi Sir,

I am getting different error in cloudxlab console. the problem is with the pickle file. I am getting unsupported pickle protocol:3 . Kindly assist

Thanks in advance,
Kiruthika N

Sir,

I get the error with the below command in cloudxlab console. kindly assist

flask run --host 0.0.0.0 --port 4042

Thanks in advance,
Kiruthika N