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

Unable to create Keras Package on Windows #57

Open
mraunak opened this issue Mar 9, 2023 · 11 comments
Open

Unable to create Keras Package on Windows #57

mraunak opened this issue Mar 9, 2023 · 11 comments
Assignees

Comments

@mraunak
Copy link

mraunak commented Mar 9, 2023

Error while creating Keras package on windows from source. This issue is the same as #340.

System information.

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
  • TensorFlow installed from (source or binary): Binary
  • TensorFlow version: TF 2.12.rc1
  • Python version: 3.9
  • Bazel version (if compiling from source): 5.4.0
  • GPU model and memory: NA
  • Exact command to reproduce: .\bazel-bin\keras\tools\pip_package\build_pip_package C:\tmp\keras_package

I am getting an error while trying to create Keras Package on windows

Error in text format:

(venv39) D:\user\mraunak\priv_keras\frameworks.ai.keras>.\bazel-bin\keras\tools\pip_package\build_pip_package C:\tmp\keras_package
Thu Mar 9 13:34:20 PST 2023 : === Preparing sources in dir: /tmp/tmp.KBfCiElRiO
cp: cannot stat 'bazel-bin/keras/tools/pip_package/build_pip_package.runfiles/org_keras/keras': No such file or directory

I was successfully able to build from the source but got an error while creating the Keras package.

@SuryanarayanaY
Copy link
Contributor

Hi @mraunak ,

Could you please exact sequence of commands you have used for the build ? Thank you!

@mraunak
Copy link
Author

mraunak commented Mar 12, 2023

Hi @SuryanarayanaY , I have attached the file which shows the steps I followed

Steps_keras.txt

@SuryanarayanaY
Copy link
Contributor

Hi @mraunak ,

Could you cross check in this path bazel-bin/keras/tools/pip_package/ whether do you have build_pip_package.runfiles or build_pip_package.exe.runfiles ?? Please confirm.

@mraunak
Copy link
Author

mraunak commented Mar 15, 2023

Hi @SuryanarayanaY, I have build_pip_package.runfiles.
Keras_error_path.docx

@SuryanarayanaY
Copy link
Contributor

Hi @mraunak ,

It seems I can't access the .docx file attached by you. I interested to know whether the build file have .exe extension or not as reported by the user in other issue(17654) you referenced. So you got build_pip_package.runfiles but not build_pip_package.exe.runfiles right ?

@mraunak
Copy link
Author

mraunak commented Mar 16, 2023

image
image

Hi @SuryanarayanaY I got the same files as reported by the user in issue 17654.
I got build_pip_package.exe.runfiles as a folder

@SuryanarayanaY
Copy link
Contributor

@mraunak ,

As the error states it is looking for the path bazel-bin/keras/tools/pip_package/build_pip_package.runfiles/org_keras/keras but you have the directory created by bazel build as bazel-bin/keras/tools/pip_package/build_pip_package.exe.runfiles.

Can you please check whether the directory build_pip_package.exe.runfiles has org_keras/keras directory and if found can you try renaming the directory build_pip_package.exe.runfiles to build_pip_package.runfiles and then try the command.Please try this and confirm whether it is working or not. Thanks!

@mraunak
Copy link
Author

mraunak commented Mar 20, 2023

image

@SuryanarayanaY

build_pip_package.exe.runfiles has only one file MANIFEST. I don't see any directory org_keras/keras inside it.

@mraunak
Copy link
Author

mraunak commented Mar 30, 2023

Hi @SuryanarayanaY, any update on the above issue, if the error is not reproducible on your end, can you please share the steps you are following

@sampathweb
Copy link
Collaborator

Keras is a pure Python package and the wheel file generated should work on all platforms - https://pypi.org/project/keras/2.12.0/#files. Is there an issue in using existing Keras Wheel file on Windows?

@sampathweb
Copy link
Collaborator

sampathweb commented Apr 14, 2023

If you have to build it, try python pip_build.py inside a virtual environment?

@sachinprasadhs sachinprasadhs 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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants