You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Guys! While setting up project for first time I am getting this error.
Please let me know where is this file or What is required in the file.
This file is accessed in setting.py with variable GOOGLE_OAUTH2_CLIENT_SECRETS_JSON = "client_secret.json"
(venv) tarun@tarun-ROG-Strix-G531GW-GL531GW:~/Downloads/peeljobs/peeljobs$ python manage.py makemigrations
Traceback (most recent call last):
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/oauth2client/clientsecrets.py", line 121, in _loadfile
with open(filename, 'r') as fp:
FileNotFoundError: [Errno 2] No such file or directory: 'client_secret.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
utility.execute()
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/django/core/management/init.py", line 377, in execute
django.setup()
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
app_config.import_models()
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/django/apps/config.py", line 211, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/tarun/Downloads/peeljobs/peeljobs/peeldb/models.py", line 7, in
from oauth2client.contrib.django_util.models import CredentialsField
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/oauth2client/contrib/django_util/init.py", line 365, in
oauth2_settings = OAuth2Settings(django.conf.settings)
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/oauth2client/contrib/django_util/init.py", line 341, in init
info = _get_oauth2_client_id_and_secret(settings_instance)
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/oauth2client/contrib/django_util/init.py", line 277, in _get_oauth2_client_id_and_secret
return _load_client_secrets(secret_json)
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/oauth2client/contrib/django_util/init.py", line 255, in _load_client_secrets
client_type, client_info = clientsecrets.loadfile(filename)
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/oauth2client/clientsecrets.py", line 165, in loadfile
return _loadfile(filename)
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/oauth2client/clientsecrets.py", line 124, in _loadfile
raise InvalidClientSecretsError('Error opening file', exc.filename,
oauth2client.clientsecrets.InvalidClientSecretsError: ('Error opening file', 'client_secret.json', 'No such file or directory', 2)
The text was updated successfully, but these errors were encountered:
Hi Guys! While setting up project for first time I am getting this error.
Please let me know where is this file or What is required in the file.
This file is accessed in setting.py with variable GOOGLE_OAUTH2_CLIENT_SECRETS_JSON = "client_secret.json"
(venv) tarun@tarun-ROG-Strix-G531GW-GL531GW:~/Downloads/peeljobs/peeljobs$ python manage.py makemigrations
Traceback (most recent call last):
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/oauth2client/clientsecrets.py", line 121, in _loadfile
with open(filename, 'r') as fp:
FileNotFoundError: [Errno 2] No such file or directory: 'client_secret.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/django/core/management/init.py", line 401, in execute_from_command_line
utility.execute()
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/django/core/management/init.py", line 377, in execute
django.setup()
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate
app_config.import_models()
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/django/apps/config.py", line 211, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/tarun/Downloads/peeljobs/peeljobs/peeldb/models.py", line 7, in
from oauth2client.contrib.django_util.models import CredentialsField
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/oauth2client/contrib/django_util/init.py", line 365, in
oauth2_settings = OAuth2Settings(django.conf.settings)
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/oauth2client/contrib/django_util/init.py", line 341, in init
info = _get_oauth2_client_id_and_secret(settings_instance)
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/oauth2client/contrib/django_util/init.py", line 277, in _get_oauth2_client_id_and_secret
return _load_client_secrets(secret_json)
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/oauth2client/contrib/django_util/init.py", line 255, in _load_client_secrets
client_type, client_info = clientsecrets.loadfile(filename)
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/oauth2client/clientsecrets.py", line 165, in loadfile
return _loadfile(filename)
File "/home/tarun/Downloads/peeljobs/venv/lib/python3.8/site-packages/oauth2client/clientsecrets.py", line 124, in _loadfile
raise InvalidClientSecretsError('Error opening file', exc.filename,
oauth2client.clientsecrets.InvalidClientSecretsError: ('Error opening file', 'client_secret.json', 'No such file or directory', 2)
The text was updated successfully, but these errors were encountered: