RVC-Project / RVC-Project/Retrieval-based-Voice-Conversion-WebUI

(Colab) error while downloading voice model

Open
#1,902 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
38.4k
Forks
5.3k
PR merge metrics
No merged PRs in 30d

Description


JSONDecodeError Traceback (most recent call last)
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:

/usr/local/lib/python3.10/dist-packages/google/oauth2/service_account.py 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 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 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 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 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 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)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Colab cell around line 31, especially the config_path check and Credentials.from_service_account_file call, then inspect how the service-account JSON is created or loaded before gspread.authorize. Done means the credential file is valid JSON and the voice-model download proceeds without JSONDecodeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.