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

NameError: name 'file' is not defined #68

Closed
jayze opened this issue Jul 8, 2019 · 2 comments
Closed

NameError: name 'file' is not defined #68

jayze opened this issue Jul 8, 2019 · 2 comments
Labels

Comments

@jayze
Copy link

jayze commented Jul 8, 2019

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
Copy link
Owner

mtakaki commented Oct 24, 2019

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
Copy link
Owner

mtakaki commented Nov 8, 2019

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.

@mtakaki mtakaki closed this as completed Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants