Zontex / python-red-alert

Israeli Pikud Haoref missile detection API
MIT License
50 stars 7 forks source link

The code cannot be activated #3

Closed yakirdayan closed 1 year ago

yakirdayan commented 1 year ago

Traceback (most recent call last): File "c:\Users\User\Desktop\python-red-alert-master\src\main.py", line 150, in main() File "c:\Users\User\Desktop\python-red-alert-master\src\main.py", line 108, in main alert = RedAlert() File "c:\Users\User\Desktop\python-red-alert-master\src\main.py", line 15, in init self.locations = self.get_locations_list() File "c:\Users\User\Desktop\python-red-alert-master\src\main.py", line 83, in get_locations_list f = open('targets.json') FileNotFoundError: [Errno 2] No such file or directory: 'targets.json'

Zontex commented 1 year ago

Did you put targets.json in the directory? You need to modify the path on windows perhaps to fit the right path for targets.json.

Zontex commented 1 year ago

Closing because not a bug, make sure you put the file in the directory and as you are using windows, mention the complete file path.