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

Build of Keras from source fails on Windows "cp: cannot stat 'bazel-bin/keras/tools/pip_package/build_pip_package.runfiles/org_keras/keras': No such file or directory" #340

Closed
MidouDali opened this issue Dec 4, 2022 · 6 comments

Comments

@MidouDali
Copy link

MidouDali commented Dec 4, 2022

I used bazel to build Keras from source on Windows 10. I ran this command:
bazel --output_user_root=C:/tmp5 build //keras/tools/pip_package:build_pip_package
Then, when I wanted to create the package with this command:
bazel-bin\keras\tools\pip_package\build_pip_package C:/tmp/keras_pkg
I got this error:
1

It seems that the error came from the buil_pip_pacakge file (line 36):
5

I verified that the folder "bazel-bin" was created:
2

The following figures present the sub-elements of the folders "bazel-bin" and "build_pip_package.exe.runfiles":

3

4

@MidouDali MidouDali changed the title Build of Keras from source fails on Windows “Could not find bazel-bin. Did you run from the root of the build tree?” Build of Keras from source fails on Windows "cp: cannot stat 'bazel-bin/keras/tools/pip_package/build_pip_package.runfiles/org_keras/keras': No such file or directory" Dec 4, 2022
@sushreebarsa
Copy link
Collaborator

@MidouDali To use Keras, you will need to have the TensorFlow package installed. Please check these detailed instructions and let us know if it helps? This article on building Keras from source might help as well. Thank you!

@MidouDali
Copy link
Author

@sushreebarsa Thank you, I have the Tensorflow package installed. I followed all the steps in the article and got the same error because it seems that Keras requires the creation of the path "bazel-bin/keras/tools/pip_package/build_pip_package.runfiles/org_keras/keras". This path was not created in the "bazel-bin" folder. In addition, I got a folder "build_pip_package.exe.runfiles" and not "build_pip_package.runfiles".
Thank you

@sushreebarsa
Copy link
Collaborator

@MidouDali Could you please share the error log in text format instead of screenshots as it would be easier to analyze the issue?
Thank you!

@google-ml-butler
Copy link

This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you.

@google-ml-butler
Copy link

Closing as stale. Please reopen if you'd like to work on this further.

@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

@fchollet fchollet transferred this issue from keras-team/keras Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants