molssi-seamm / seamm_util

Utility classes and functions that support other MolSSI tools
Other
1 stars 3 forks source link

Bug in seamm argument_parser. #39

Open paulsaxe opened 3 years ago

paulsaxe commented 3 years ago

Description

The Dashboard tires on startup due to a '$' in the secret key. It can be wired around by editing the key in seamm.ini and replacing '$' signs.

What I Did

seamm-dashboard
Traceback (most recent call last):
  File "/Users/psaxe/opt/miniconda3/envs/seamm-dashboard/bin/seamm-dashboard", line 33, in <module>
    sys.exit(load_entry_point('seamm-dashboard==2021.6.11+7.gdc4d826', 'console_scripts', 'seamm-dashboard')())
  File "/Users/psaxe/opt/miniconda3/envs/seamm-dashboard/bin/seamm-dashboard", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/Users/psaxe/opt/miniconda3/envs/seamm-dashboard/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/Users/psaxe/opt/miniconda3/envs/seamm-dashboard/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/Users/psaxe/opt/miniconda3/envs/seamm-dashboard/lib/python3.9/site-packages/seamm_dashboard-2021.6.11+7.gdc4d826-py3.9.egg/seamm_dashboard/__init__.py", line 26, in <module>
    from .setup_argparsing import options, parser
  File "/Users/psaxe/opt/miniconda3/envs/seamm-dashboard/lib/python3.9/site-packages/seamm_dashboard-2021.6.11+7.gdc4d826-py3.9.egg/seamm_dashboard/setup_argparsing.py", line 761, in <module>
    parser.parse_args()
  File "/Users/psaxe/opt/miniconda3/envs/seamm-dashboard/lib/python3.9/site-packages/seamm_util/argument_parser.py", line 251, in parse_args
    value = self._interpolation.before_get(
  File "/Users/psaxe/opt/miniconda3/envs/seamm-dashboard/lib/python3.9/configparser.py", line 456, in before_get
    self._interpolate_some(parser, option, L, value, section, defaults, 1)
  File "/Users/psaxe/opt/miniconda3/envs/seamm-dashboard/lib/python3.9/configparser.py", line 516, in _interpolate_some
    raise InterpolationSyntaxError(
configparser.InterpolationSyntaxError: '$' must be followed by '$' or '{', found: "$\\x84\\xb3b\\xc3\\xeb@j\\n\\x8b\\x8a?\\x13\\xb6\\xde\\xe1\\xe9\\xf4q\\x87\\xe8'"