Skip to content

KeyError: '~/.config' #16

@shadowmeandyou

Description

@shadowmeandyou

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions