shy-refrigerator-15055
04/27/2023, 11:23 AM>>> from metaflow import namespace, Flow
>>> data = Flow("TestSitesFlow/1858/join_metrics/28465").latest_run.data
>>> data
<MetaflowData: name>
>>> data.name
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/homebrew/lib/python3.10/site-packages/metaflow/client/core.py", line 736, in __getattr__
return self._artifacts[name].data
File "/opt/homebrew/lib/python3.10/site-packages/metaflow/client/core.py", line 902, in data
obj = filecache.get_artifact(ds_type, location[6:], meta, *components)
TypeError: FileCache.get_artifact() takes 9 positional arguments but 12 were givenancient-application-36103
04/27/2023, 1:35 PMshy-refrigerator-15055
04/27/2023, 1:44 PMshy-refrigerator-15055
04/27/2023, 1:46 PMsquare-wire-39606
04/27/2023, 2:23 PMFlow("TestSitesFlow/1858/join_metrics/28465").latest_run.end_task.metadata_dict
?better-branch-69556
04/27/2023, 2:29 PM{'runtime': 'dev',
'python_version': '3.11.2',
'user': 'tom',
'metaflow_version': '2.8.3',
'attempt': '0',
'origin-run-id': 'None',
'ds-type': 's3',
'ds-root': '<s3://metaflow-s3>-*************/metaflow',
'attempt_ok': 'True',
'attempt-done': '0'}square-wire-39606
04/27/2023, 2:34 PMbetter-branch-69556
04/27/2023, 2:35 PMpyproject.toml has metaflow = "^2.8.0"
We're also using a custom image, but it has the same version built-in:
> docker run --rm -it ********.<http://dkr.ecr.eu-west-1.amazonaws.com/natcap:351117a0758a|dkr.ecr.eu-west-1.amazonaws.com/natcap:351117a0758a> python
Python 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import metaflow
>>> metaflow.__version__
'2.8.3'