We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
__main__
The following code fails:
from pytrack import PyTrack, DVC, PyTrackProject @PyTrack(package=False) class HelloWorld: def __init__(self) -> None: self.output = DVC.result def __call__(self, *args, **kwds): pass def run(self): self.output = "Hello World" if __name__ == "__main__": project = PyTrackProject() project.create_dvc_repository() hello_world = HelloWorld() hello_world()
with
ImportError: cannot import name 'HelloWorld' from '__main__' (unknown location) ERROR: failed to reproduce 'dvc.yaml': failed to run: python -c "from __main__ import HelloWorld; HelloWorld(id_=0).run()", exited with 1
The text was updated successfully, but these errors were encountered:
PythonFZ
Successfully merging a pull request may close this issue.
The following code fails:
with
ImportError: cannot import name 'HelloWorld' from '__main__' (unknown location) ERROR: failed to reproduce 'dvc.yaml': failed to run: python -c "from __main__ import HelloWorld; HelloWorld(id_=0).run()", exited with 1
The text was updated successfully, but these errors were encountered: