Run python script with CMD error

R

raedtjr

Hi everyone;


Im new with python and i just installed it and added it to the path.I have already a script that i want to execute(run) but every time i do this commend python
client.py

in CMD to execute it,i got this error. Any solutions please?
 
P

Peter Otten

Hi everyone;


Im new with python and i just installed it and added it to the path.I have
already a script that i want to execute(run) but every time i do this
commend python


in CMD to execute it,i got this error. Any solutions please?

It is important for us to know the version of Python you are using. In
Python 3 the above line has to be written

except Exception as e:

If the script was not written by you instead of fixing all the
incompatibilities that may occur you should download and install Python 2.7
and run the script with that.
 
J

Joel Goldstick

Look at lines around 29
Hi everyone;


Im new with python and i just installed it and added it to the path.I have
already a script that i want to execute(run) but every time i do this
commend python


in CMD to execute it,i got this error. Any solutions please?
 
F

FalaG

I m using Python 3.3 and the script is not written by me therefore i'm gonna try to install 2.7 instead and i will let you know the result.
Thank you Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top