Skip to content
New issue

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

python: can't open file '/workspace/kubeflow-mnist/preprocessing.py': [Errno 2] No such file or directory #1

Open
bruceche11 opened this issue Sep 24, 2020 · 2 comments

Comments

@bruceche11
Copy link

hello, i learn you blog https://www.jianshu.com/p/b4f40d4c5f4e and try the fashion-mnist example, and here comes the issue:
image

here is my Dockerfile
image
my pipeline.py
image
image

the preprocessing.py and the train.py is the same as yours.

Thanks in advance

@benjamintanweihao
Copy link
Owner

benjamintanweihao commented Sep 28, 2020 via email

@bruceche11
Copy link
Author

Hi! I think the issue is that when you create the Dockerfile, you are using /workflow/kubeflow-mnist. However, when you use the VolumeOp and mount it on /workspace, the previous contents in /workflow/kubeflow-mnist is overridden. That's why it cannot find the files. In my example, I git clone-ed the repository into the VolumeOp. Hope this helps! Ben

On Thu, Sep 24, 2020 at 4:28 PM bruceche11 @.***> wrote: hello, i learn you blog https://www.jianshu.com/p/b4f40d4c5f4e and try the fashion-mnist example, and here comes the issue: [image: image] https://user-images.githubusercontent.com/16239670/94120164-6744ff00-fe82-11ea-82e1-17cbb719f89e.png here is my Dockerfile [image: image] https://user-images.githubusercontent.com/16239670/94120339-922f5300-fe82-11ea-82e7-0513a9ebde34.png my pipeline.py [image: image] https://user-images.githubusercontent.com/16239670/94120456-b428d580-fe82-11ea-962f-f10a7fa67084.png [image: image] https://user-images.githubusercontent.com/16239670/94120520-cc98f000-fe82-11ea-8a7f-7a0b8615cd03.png the preprocessing.py and the train.py is the same as yours. Thanks in advance — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGSINGR7MEIXY67WVNGCXDSHL7KRANCNFSM4RYACRUA .

Sorry to reply late.
Yes, you are right, that is the reason. I have figured it out. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants