mtakaki/cachet-url-monitor

SyntaxError: invalid syntax

Closed this issue · 7 comments

Hello, when I wanted to install this error appears again and again.

I'm using Python v3.5.3 on Debian 9

Error:

(venv) root@InfinitySystems:~/cachet-url-monitor# python3 cachet_url_monitor/scheduler.py config.yml
  File "cachet_url_monitor/scheduler.py", line 59
    configuration: Configuration
                 ^
SyntaxError: invalid syntax

I appreciate your help

@ProfessorVarox were you able to get past this issue ? I'm running into the exact same problem. Ubuntu 16.04 here, Python v2.7.12

@ProfessorVarox you must be using an older version of python. Which exact version are you using? Could you please run this?

$ python --version

You should get something like this in order to have it work propery (or at least 3.5):

Python 3.7.3

@trevanyoung you need at least python 3.5 in order to support type hints.

Should I use Python v2?

I'll try it later

@ProfessorVarox I have Python 3.5.2 and Python 2.7.12. I get the same error trying to run the file with python 2 and 3.

@ProfessorVarox @trevanyoung could you please try it with python 3.7.7? That's what I'm using and it's completely normal and even the build is passing...

Hello, I tried it with Python 3.7.7 and it works!

Thanks a lot for your help