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

FileNotFoundError: [Errno 2] No such file or directory: 'credentials.json' #21

Open
chandraprakash4790 opened this issue Jul 9, 2023 · 1 comment

Comments

@chandraprakash4790
Copy link

You said: jarvis take a screenshot
Traceback (most recent call last):
File "c:\Users\venky\Downloads\JARVIS-master\JARVIS-master\main.py", line 108, in run
self.TaskExecution()
File "c:\Users\venky\Downloads\JARVIS-master\JARVIS-master\main.py", line 231, in TaskExecution
obj.google_calendar_events(command)
File "c:\Users\venky\Downloads\JARVIS-master\JARVIS-master\Jarvis_init_.py", line 126, in google_calendar_events
service = google_calendar.authenticate_google()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\venky\Downloads\JARVIS-master\JARVIS-master\Jarvis\features\google_calendar.py", line 48, in authenticate_google
flow = InstalledAppFlow.from_client_secrets_file(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\venky\AppData\Local\Programs\Python\Python311\Lib\site-packages\google_auth_oauthlib\flow.py", line 198, in from_client_secrets_file
with open(client_secrets_file, "r") as json_file:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'credentials.json'

@MrSpideyNihal
Copy link

Create a file first named as client_secrets_file.json

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