Comments (3)
@SaraKingGH Two answers to this.
First case: The import problem
In the first instance, could you tell us which context you executed the script in? To make it work 'as is', you should run it within the examples/scikit
directory. From scratch, do the following:
git clone https://github.com/maiot-io/zenml.git
Before continuing, either install the zenml pip package or install it from the cloned repo. Then:
cd zenml
zenml init
cd examples/scikit
python run.py
This is working for me personally, and looking at your screenshot also seems to be what you're doing. Not sure why you had to resolve from examples.scikit.step.trainer import MyScikitTrainer
in run.py to from step.trainer import MyScikitTrainer
. Could you try repeating the above steps and tell if the problems persists?
Second case: The Ref HEAD
problem
The screenshot you shared seems to indicate that there is a file called fun.py
within the directory. And that seems to be the cause of the problem: As it seems not to be tracked by Git at all, we are having a hard error when it tries to resolve the step. Read more about how Git resolution works here: https://docs.zenml.io/repository/integration-with-git.html .
This is not intended behavior, and seems to be a bug. Further investigation is warranted. For now, please try and commit fun.py before running and it should work better. Let me know if any of that helps!
from zenml.
@SaraKingGH Update: After further investigation, my above diagnosis seems flawed.You were indeed correct to point out that changing from from examples.scikit.step.trainer import MyScikitTrainer
in run.py of the scikit example to from step.trainer import MyScikitTrainer
would yield the error you showed. This was becuase of the logic of resolving relative imports in the git wrapper of zenml. We have no fixed this issue with PR #59. After merge and next release (hopefully today or tomorrow), please installed the latest zenml and see if it works now :-). Thank you!
from zenml.
@SaraKingGH Update: After further investigation, my above diagnosis seems flawed.You were indeed correct to point out that changing from
from examples.scikit.step.trainer import MyScikitTrainer
in run.py of the scikit example tofrom step.trainer import MyScikitTrainer
would yield the error you showed. This was becuase of the logic of resolving relative imports in the git wrapper of zenml. We have no fixed this issue with PR #59. After merge and next release (hopefully today or tomorrow), please installed the latest zenml and see if it works now :-). Thank you!
sounds great Tahir, thanks for letting me know.:)
from zenml.
Related Issues (20)
- ServiceAccount fails to create when adding annotation for IAM role [BUG]: HOT 3
- [BUG]: Unable to deploy a ML model locally to MLFlow HOT 4
- Improve Clarity of Pipeline Version Logs During Execution HOT 1
- Improve logging logic to improve/fix GPU performance HOT 2
- Update Vertex orchestrator to allow for custom disk size and type HOT 4
- Enhance Logging for Docker Build Processes in ZenML
- Implement Error Handling for Kubernetes Version Mismatch in ZenML HOT 3
- Enhance Logging for Code Repository Interactions in ZenML HOT 2
- Implement Cleanup of Temporary Directories for built-in Materializers
- Resolve Case Sensitivity Issue in ZenML Stack Renaming HOT 6
- Add Active Stack as part of configuration YAML HOT 3
- Resolve Vertex Scheduler Character Limit Issue for Long Pipeline Names HOT 4
- A docs update for incorrect import in docs/book/user-guide/starter-guide/track-ml-models.md HOT 1
- Quickstart error due to incorrect notebooks path
- Minio Cache Miss Detected
- Minio Cache Miss Detected
- Minio Cache Miss Detected HOT 1
- [BUG]: unknown instruction: Dockerfile HOT 5
- A simple example of building a pipeline with a custom dockerfile. HOT 1
- Minio Cache Miss Detected HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zenml.