https://dagster.io/ logo
#ask-community
Title
# ask-community
b

Bebeto Nyamwamu (Berbetto)

04/25/2023, 6:48 AM
Hello,
Copy code
TypeError: int() argument must be a string, a bytes-like object or a number, not 'DatasetVersion'
  File "/home/main/Documents/kazispaces/desrc/soka/.venv/lib/python3.8/site-packages/dagster/_core/execution/plan/utils.py", line 54, in op_execution_error_boundary
    yield
  File "/home/main/Documents/kazispaces/desrc/soka/.venv/lib/python3.8/site-packages/dagster/_utils/__init__.py", line 443, in iterate_with_context
    next_output = next(iterator)
  File "/home/main/Documents/kazispaces/desrc/soka/soka/ops/op.py", line 23, in fetch_version
    yield AssetMaterialization(asset_key=asset_key, metadata={"latest_version": int(versions[0])})
Natively in pyhton,
versions[0]
is an int
c

chris

04/25/2023, 7:42 PM
mind sending a code snippet?
3 Views