Example: Fresh install of refgenie in a conda environment.
$ refgenie --version
Traceback (most recent call last):
File "/home/user/.conda/envs/example/bin/refgenie", line 8, in <module>
sys.exit(main())
File "/home/user/.conda/envs/example/lib/python3.9/site-packages/refgenie/cli.py", line 37, in main
parser = logmuse.add_logging_options(build_argparser())
File "/home/user/.conda/envs/example/lib/python3.9/site-packages/refgenie/argparser.py", line 113, in build_argparser
sps[BUILD_CMD] = pypiper.add_pypiper_args(
File "/home/user/.conda/envs/example/lib/python3.9/site-packages/pypiper/utils.py", line 59, in add_pypiper_args
args_to_add = _determine_args(
File "/home/user/.conda/envs/example/lib/python3.9/site-packages/pypiper/utils.py", line 811, in _determine_args
"pypiper": ["recover", "new-start", "dirty", "force-follow", "testmode"] +
TypeError: can only concatenate list (not "dict_keys") to list
Current:
LOGGING_CLI_OPTDATA.keys()
Solution (Python >= 3.5: unpack into a list literal [*newdict]):
[*LOGGING_CLI_OPTDATA]
Converting this value into a list literal resolves the concatenation error.
https://github.com/databio/pypiper/blob/8f9993ab593021be022727cef60e150a764c0ac1/pypiper/utils.py#L812
Example: Fresh install of
refgenie
in aconda
environment.Current:
Solution (Python >= 3.5: unpack into a list literal [*newdict]):
Converting this value into a list literal resolves the concatenation error.