Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue running the run.py #3

Closed
balajikadambi opened this issue Sep 1, 2019 · 2 comments
Closed

Issue running the run.py #3

balajikadambi opened this issue Sep 1, 2019 · 2 comments

Comments

@balajikadambi
Copy link

Hi @h4xr

I have Python 3.7.0 on my mac machine.

When I run the command:
python run.py I get the below error.
File "run.py", line 16
print "Service {} not running, starting service at port {} on host {}".format(svc, port, host)
SyntaxError: invalid syntax

Would you know why the error occurs.

@h4xr
Copy link
Owner

h4xr commented Sep 2, 2019

@balajikadambi Hi,
The repository project is based of for Python 2.7
For Python 3, the print statement has been changed to print function and the correct way to write that will be:

print("Service {} not running, starting service at port {} on host {}".format(svc, port, host))

@balajikadambi
Copy link
Author

Thanks, it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants