Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
'psutil==5.9.1',
'python-dateutil==2.8.2',
'pytz==2022.1',
'PyYAML==6.0',
'PyYAML==6.0.3',
'setuptools>=40.0.0,<=70.0.0',
# tzlocal 3.0 breaks without the backports.tzinfo package on python < 3.9 https://pypi.org/project/tzlocal/3.0/
'tzlocal==2.1',
Expand All @@ -65,7 +65,7 @@
'sphinxcontrib-mermaid'],
'drivers': ['pymodbus==2.5.3',
'bacpypes==0.16.7',
'modbus-tk==1.1.2',
'modbus-tk==1.1.5',
'pyserial==3.5'],
'influxdb': ['influxdb==5.3.1'],
'market': ['numpy==1.23.1', 'transitions==0.8.11'],
Expand All @@ -84,7 +84,7 @@
'pytest-rerunfailures==10.2',
'websocket-client==1.2.2',
'deepdiff==5.8.1',
'docker==5.0.3',
'docker==7.1.0',
'pytest_asyncio==0.19.0',
'pytest_timeout==2.1.0'],
'weather': ['Pint==0.19.2'],
Expand All @@ -95,6 +95,6 @@
'passlib==1.7.4',
'argon2-cffi==21.3.0',
'Werkzeug==2.2.1',
'treelib==1.6.1'],
'treelib==1.8.0'],
'dnp3': ['dnp3-python==0.2.3b3'],
'openadr': ['openleadr==0.5.30']}
8 changes: 6 additions & 2 deletions volttron/platform/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,12 @@ def _take(n):
# This argument is positional; skip further processing
cli_args.append(arg_string)
continue
# Some kind of option was encountered, so deal with it
action, option_string, explicit_arg = option_tuple
# Handle Python 3.12+ compatibility where _parse_optional may return more than 3 values
if _sys.version_info.minor >= 12:
action, option_string, sep, explicit_arg = option_tuple
else:
# Fallback for older Python versions
action, option_string, explicit_arg = option_tuple
if explicit_arg is not None:
args = [explicit_arg]
elif action.nargs in [_argparse.REMAINDER, _argparse.PARSER]:
Expand Down
Loading