bulky-author-98775
03/06/2023, 6:00 AMbulky-author-98775
03/06/2023, 6:00 AMCONDA_CHANNEL=conda-forge python flow2.py --environment=conda --no-pylint runbulky-author-98775
03/06/2023, 6:01 AMbulky-author-98775
03/06/2023, 6:01 AMbulky-author-98775
03/06/2023, 6:01 AMvictorious-lawyer-58417
03/06/2023, 6:02 AM@conda_base(python='3.9.10', libraries={"datashader": "0.14.0", "pandas": "1.4.2", "pyarrow": "5.0.0"})victorious-lawyer-58417
03/06/2023, 6:03 AMbulky-author-98775
03/06/2023, 6:04 AM@conda("test-env.yaml) returned this:
(base) honson@Aisan:~/metaflow$ CONDA_CHANNEL=conda-forge python flow2.py --environment=conda run
Traceback (most recent call last):
File "/home/honson/metaflow/flow2.py", line 14, in <module>
@conda("./test-env.yaml")
File "/home/honson/.local/lib/python3.10/site-packages/metaflow/decorators.py", line 433, in _base_step_decorator
raise BadStepDecoratorException(decotype.name, func)
File "/home/honson/.local/lib/python3.10/site-packages/metaflow/decorators.py", line 33, in __init__
deco=deco, func=func.__name__
AttributeError: 'str' object has no attribute '__name__'. Did you mean: '__ne__'?
Any ideas on this?victorious-lawyer-58417
03/06/2023, 6:05 AM@conda doesn't support .yaml definitions natively. You have to specify a libraries= attributebulky-author-98775
03/06/2023, 6:06 AMbulky-author-98775
03/06/2023, 6:06 AM@conda_base and @conda?
is @conda_base applicable to the entire workflow? whereas @conda can be defined per step?victorious-lawyer-58417
03/06/2023, 6:08 AM@conda_base is applied to all steps of a flow. You can use it to define a base set of libraries that all steps need and then you can optionally add @conda if some steps need some extra librariesvictorious-lawyer-58417
03/06/2023, 6:09 AM@conda("test-env.yaml) in the sandbox? 🤔bulky-author-98775
03/06/2023, 6:14 AMbulky-author-98775
03/06/2023, 6:15 AMvictorious-lawyer-58417
03/06/2023, 6:19 AM@conda_base(libraries={"datashader": "0.14.0", "pandas": "1.4.2", "pyarrow": "5.0.0"})
class NYCVizFlow(FlowSpec):
is what you get out of the box. Could it be that test-env is related to your testing?bulky-author-98775
03/06/2023, 6:19 AMconda_base commented out in replacement for the yaml
that was not something I added in therevictorious-lawyer-58417
03/06/2023, 6:20 AMvictorious-lawyer-58417
03/06/2023, 6:21 AMvictorious-lawyer-58417
03/06/2023, 6:22 AMbulky-author-98775
03/06/2023, 6:22 AMvictorious-lawyer-58417
03/06/2023, 6:26 AMmamba as an alternative to Conda which helps make it a bit fasterbulky-author-98775
03/06/2023, 6:28 AMbulky-author-98775
03/06/2023, 6:28 AMbulky-author-98775
03/06/2023, 6:49 AMbulky-author-98775
03/06/2023, 7:13 AMvictorious-lawyer-58417
03/06/2023, 7:19 AM