Open gourcuff72 opened 7 months ago
---------------------------------------------------------------------------
JSONDecodeError Traceback (most recent call last)
[<ipython-input-11-32c8b7213279>](https://localhost:8080/#) in <cell line: 31>()
31 if os.path.exists(config_path):
32 # File exists, proceed with creation of creds and client
---> 33 creds = Credentials.from_service_account_file(config_path, scopes=scope)
34 client = gspread.authorize(creds)
35 else:
5 frames
[/usr/local/lib/python3.10/dist-packages/google/oauth2/service_account.py](https://localhost:8080/#) in from_service_account_file(cls, filename, **kwargs)
255 credentials.
256 """
--> 257 info, signer = _service_account_info.from_filename(
258 filename, require=["client_email", "token_uri"]
259 )
[/usr/local/lib/python3.10/dist-packages/google/auth/_service_account_info.py](https://localhost:8080/#) in from_filename(filename, require, use_rsa_signer)
77 """
78 with io.open(filename, "r", encoding="utf-8") as json_file:
---> 79 data = json.load(json_file)
80 return data, from_dict(data, require=require, use_rsa_signer=use_rsa_signer)
[/usr/lib/python3.10/json/__init__.py](https://localhost:8080/#) in load(fp, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
291 kwarg; otherwise ``JSONDecoder`` is used.
292 """
--> 293 return loads(fp.read(),
294 cls=cls, object_hook=object_hook,
295 parse_float=parse_float, parse_int=parse_int,
[/usr/lib/python3.10/json/__init__.py](https://localhost:8080/#) in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
344 parse_int is None and parse_float is None and
345 parse_constant is None and object_pairs_hook is None and not kw):
--> 346 return _default_decoder.decode(s)
347 if cls is None:
348 cls = JSONDecoder
[/usr/lib/python3.10/json/decoder.py](https://localhost:8080/#) in decode(self, s, _w)
335
336 """
--> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
338 end = _w(s, end).end()
339 if end != len(s):
[/usr/lib/python3.10/json/decoder.py](https://localhost:8080/#) in raw_decode(self, s, idx)
353 obj, end = self.scan_once(s, idx)
354 except StopIteration as err:
--> 355 raise JSONDecodeError("Expecting value", s, err.value) from None
356 return obj, end
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I get this error on step 2 (upload model step) . Please help
JSONDecodeError: Expecting value: line 1 column 1 (char 0)