mtakaki / cachet-url-monitor

URL monitor plugin for cachethq.io
MIT License
125 stars 49 forks source link

NameError: name 'file' is not defined #68

Closed jayze closed 4 years ago

jayze commented 5 years ago

Hi,

I've installed the package via pip, when adding the config.yml file and starting it via : python3 scheduler.py config.yml I get the following error message :

Traceback (most recent call last): File "scheduler.py", line 89, in scheduler = Scheduler(sys.argv[1]) File "scheduler.py", line 55, in init self.configuration = Configuration(config_file) File "/usr/local/lib/python3.7/site-packages/cachet_url_monitor/configuration.py", line 83, in init self.data = load(file(self.config_file, 'r')) NameError: name 'file' is not defined

any idea how to solve this?

Jay

mtakaki commented 4 years ago

How did you set this up on your local computer? I updated the instructions on how to execute this: https://github.com/mtakaki/cachet-url-monitor#setting-up Could you please check if it works after following it?

mtakaki commented 4 years ago

I'm closing this ticket, as I haven't gotten an answer in 15 days. Please, feel free to re-open it if it's still happening for you.