Closed bonacciog closed 3 years ago
Thanks for reporting @bonacciog ! Could you please verify that your pipelines_dir
does not contain any YAML files from older runs of ZenML. This might be due to a non-backwards compatible upgrade of the YAML standard from 0.1.2 to 0.1.3
@hamzamaiot Thanks for your reply!
It does't seem there is an YAML file. Is this screenshot enough?
Could you check in the pipelines
directory?
ls pipelines/
ah yes, I see the bug. The Untitled.ipynb
file should not exist in the pipelines
directory. Actually, nothing should exist in the pipelines
directory except the pipeline YAML configurations -> Thats a condition we should be catching in the code so thanks for bringing it up! I'll keep this issue open and add a PR to it that helps in catching these errors more elegantly.
Your immediate solution would be to move the Untitled.ipynb
out into the root zenml_practise
dir and try again. It should hopefully work.
P.S. If you wanted a recommended directory structure, we have one in our docs for reference. Hope it helps!
Thank you for your help @hamzamaiot!
I have created that file, so my mistake. Now the dir is organized in this way:
I have created the dir "notebooks" and file QuickStart.ipynb to start with QuickStart example.
Now I got another error:
Maybe I have to work outside of subdirectories (notebooks, pipelines..) ? @hamzamaiot
Sorry switching accounts. Now the error is clearer - the datasource already exists so you can either fetch it in your script using the repository.get_datasource_by_name()
. The repository instance can be fetched by using Repository.get_instance()
.
Or to start from scratch just delete the pipelines
directory and it will work 👍
Thank you! @htahir1 Now it is working fine! My mistake, sorry
No problem! We also added a fix to the YAML pipelines dir problem you were facing in https://github.com/maiot-io/zenml/pull/14 . Thanks for the heads-up!
Describe the bug I'm not able to getting started with quickstart example pipeline. Trying to run: ds = CSVDatasource(name='Pima Indians Diabetes Dataset', path='gs://zenml_quickstart/diabetes.csv')
To Reproduce I have followed QuickStart steps:
Screenshots
Stack Trace
KeyError Traceback (most recent call last)