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

KeyError: '~/.config' #16

Open
shadowmeandyou opened this issue Sep 24, 2024 · 0 comments
Open

KeyError: '~/.config' #16

shadowmeandyou opened this issue Sep 24, 2024 · 0 comments

Comments

@shadowmeandyou
Copy link

Dear LBesnard,

After having bdnex installed, got systematically that error 👍

$ bdnex -f ./tmp/
2024-09-24 21:30:54,484 - INFO :L165 - root - Logging now setup.
Traceback (most recent call last):
File "/usr/local/bin/bdnex", line 8, in
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/bdnex/ui/init.py", line 79, in main
add_metadata_from_bdgest(file)
File "/usr/local/lib/python3.11/site-packages/bdnex/ui/init.py", line 16, in add_metadata_from_bdgest
bdnex_conf = bdnex_config()
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/bdnex/lib/utils.py", line 131, in bdnex_config
config = yaml.safe_load(open(_init_config()))
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/bdnex/lib/utils.py", line 108, in _init_config
bdnex_user_path = os.path.join(os.environ[UNIX_DIR_FALLBACK],
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "", line 679, in getitem
KeyError: '~/.config'

Same problem trying to change the value of that string to an other specific directory

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