"Either the username or the repository does not exist"

"Either the username or the repository does not exist"

travis-encrypt OverLordGoldDragon see-rnnrepository; travis-encrypt version: 1.3.1, Win OS. Seems cli.py looks here,显示构建通过 - 但无论如何都会抛出错误;完整跟踪如下。

有什么解决方案吗?


Traceback (most recent call last):
  File "d:\anaconda\envs\viz\lib\site-packages\travis\encrypt.py", line 49, in retrieve_public_key
    return response.json()['key'].replace(' RSA ', ' ')
KeyError: 'key'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "d:\anaconda\envs\viz\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "d:\anaconda\envs\viz\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\Anaconda\envs\viz\Scripts\travis-encrypt.exe\__main__.py", line 7, in <module>
  File "d:\anaconda\envs\viz\lib\site-packages\click\core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "d:\anaconda\envs\viz\lib\site-packages\click\core.py", line 717, in main
    rv = self.invoke(ctx)
  File "d:\anaconda\envs\viz\lib\site-packages\click\core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "d:\anaconda\envs\viz\lib\site-packages\click\core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "d:\anaconda\envs\viz\lib\site-packages\travis\cli.py", line 68, in cli
    key = retrieve_public_key('{}/{}' .format(username, repository), url)
  File "d:\anaconda\envs\viz\lib\site-packages\travis\encrypt.py", line 52, in retrieve_public_key
    raise InvalidCredentialsError("Either the username: '{}' or the repository: '{}' does not exist. Please enter a valid username or repository name. The username and repository name are both case sensitive." .format(username, repository))
travis.encrypt.InvalidCredentialsError: Either the username: 'OverLordGoldDragon' or the repository: 'see-rnn' does not exist. Please enter a valid username or repository name. The username and repository name are both case sensitive.

另一种方法是通过 travis client, taken from Travis PyPi deployment 使用下面的方法:

travis encrypt token-name --add deploy.password --com

通过 travis-encrypt 的解决方案可以在 this Issue 中遵循。