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

[OSX] missing ~/.aws folder prevents cca init running #21

Open
sandfox opened this issue Sep 1, 2020 · 0 comments
Open

[OSX] missing ~/.aws folder prevents cca init running #21

sandfox opened this issue Sep 1, 2020 · 0 comments

Comments

@sandfox
Copy link

sandfox commented Sep 1, 2020

If there is no ~/.aws folder, cca init can't run.

After installing cca on a new machine and then running cca init <token> it then fails with the following:

INI file: /Users/sandfox/.aws/credentials does not exist
Traceback (most recent call last):
  File "/Users/sandfox/Library/Python/3.8/lib/python/site-packages/cca/cca.py", line 35, in <module>
    config = IniFile(os.path.expanduser(configfn), takebackup=False)
  File "/Users/sandfox/Library/Python/3.8/lib/python/site-packages/cca/cliinifile.py", line 52, in __init__
    raise FileExistsError("INI file: {} does not exist".format(self.filename))
FileExistsError: INI file: /Users/sandfox/.aws/credentials does not exist

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/sandfox/Library/Python/3.7/bin/cca", line 6, in <module>
    from cca.cca import cca
  File "/Users/sandfox/Library/Python/3.8/lib/python/site-packages/cca/cca.py", line 49, in <module>
    open(os.path.expanduser(configfn), "a").close()
FileNotFoundError: [Errno 2] No such file or directory: '/Users/sandfox/.aws/credentials'

creating the folder ~/.aws allows the command to complete.

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

1 participant