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

sops error #15

Closed
dkay0670 opened this issue Jan 13, 2021 · 3 comments
Closed

sops error #15

dkay0670 opened this issue Jan 13, 2021 · 3 comments

Comments

@dkay0670
Copy link

Every time I run sops secrets/.sops.yaml I get

Traceback (most recent call last):
  File "/home/dkay/.local/bin/sops", line 8, in <module>
    sys.exit(main())
  File "/home/dkay/.local/lib/python3.9/site-packages/sops/__init__.py", line 236, in main
    tree, need_key, existing_file = initialize_tree(args.file, itype,
  File "/home/dkay/.local/lib/python3.9/site-packages/sops/__init__.py", line 466, in initialize_tree
    tree, need_key = verify_or_create_sops_branch(tree, kms_arns, pgp_fps,
  File "/home/dkay/.local/lib/python3.9/site-packages/sops/__init__.py", line 604, in verify_or_create_sops_branch
    config = find_config_for_file(path, configloc)
  File "/home/dkay/.local/lib/python3.9/site-packages/sops/__init__.py", line 517, in find_config_for_file
    filename = os.path.basename(filename)
  File "/usr/lib/python3.9/posixpath.py", line 142, in basename
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Do I need to install a python dependency or something?

@dkay0670
Copy link
Author

Never mind I had the python version installed instead of the go one.

@dkay0670
Copy link
Author

You might want to add that to the README

@AvikaTrivedi
Copy link

Never mind I had the python version installed instead of the go one.

How did you fixed that error ?

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

2 participants