You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found an issue where the Runner API does not seem to be compatible with Python 3.12.
File "/home/me/Projects/Repos/repo/src/toplvlpkg/api/entrypoints/metaflow_run_flow.py", line 54, in metaflow_run_flow
with Runner(
^^^^^^^
File "/home/me/Projects/Repos/repo/.venv/lib/python3.12/site-packages/metaflow/runner/metaflow_runner.py", line 357, in run
command = self.api(**self.top_level_kwargs).run(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/me/Projects/Repos/repo/.venv/lib/python3.12/site-packages/metaflow/runner/click_api.py", line 612, in _method
method_params = _method_sanity_check(
^^^^^^^^^^^^^^^^^^^^^
File "/home/me/Projects/Repos/repo/.venv/lib/python3.12/site-packages/metaflow/runner/click_api.py", line 97, in _method_sanity_check
check_type(supplied_v, annotations[supplied_k])
File "/home/me/Projects/Repos/repo/.venv/lib/python3.12/site-packages/metaflow/_vendor/typeguard/_functions.py", line 105, in check_type
check_type_internal(value, expected_type, memo)
File "/home/me/Projects/Repos/repo/.venv/lib/python3.12/site-packages/metaflow/_vendor/typeguard/_checkers.py", line 774, in check_type_internal
checker(value, origin_type, args, memo)
File "/home/me/Projects/Repos/repo/.venv/lib/python3.12/site-packages/metaflow/_vendor/typeguard/_checkers.py", line 407, in check_union
check_type_internal(value, type_, memo)
File "/home/me/Projects/Repos/repo/.venv/lib/python3.12/site-packages/metaflow/_vendor/typeguard/_checkers.py", line 774, in check_type_internal
checker(value, origin_type, args, memo)
File "/home/me/Projects/Repos/repo/.venv/lib/python3.12/site-packages/metaflow/_vendor/typeguard/_checkers.py", line 233, in check_mapping
check_type_internal(v, value_type, memo)
File "/home/me/Projects/Repos/repo/.venv/lib/python3.12/site-packages/metaflow/_vendor/typeguard/_checkers.py", line 731, in check_type_internal
annotation = evaluate_forwardref(annotation, memo)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/me/Projects/Repos/repo/.venv/lib/python3.12/site-packages/metaflow/_vendor/typeguard/_utils.py", line 18, in evaluate_forwardref
return forwardref._evaluate(memo.globals, memo.locals, frozenset())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard'
With Python 3.11.11 the same code works fine.
AFAICS, the recursive_guard argument was removed with Python 3.12
Am I missing something?
The text was updated successfully, but these errors were encountered:
I've found an issue where the Runner API does not seem to be compatible with Python 3.12.
With Python 3.11.11 the same code works fine.
AFAICS, the
recursive_guard
argument was removed with Python 3.12Am I missing something?
The text was updated successfully, but these errors were encountered: