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

install python package failed #100

Open
xxk101010 opened this issue Sep 6, 2023 · 3 comments
Open

install python package failed #100

xxk101010 opened this issue Sep 6, 2023 · 3 comments

Comments

@xxk101010
Copy link

bazel build is okay,but fail when install python package; info
image

@kchan1130
Copy link

kchan1130 commented Oct 19, 2023

Same here!

> python -m pip install .
Processing /Users/XXX/ReposGithub/visqol
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: visqol
  Building wheel for visqol (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [69 lines of output]
      Loading:
      Loading: 0 packages loaded
      WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/4ce3e4da2e21ae4dfcee9366415e55f408c884ec.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
      DEBUG: /private/var/tmp/_bazel_bytedance/c1c4d770c893bafa65e6e3850647a4b0/external/org_tensorflow/third_party/repo.bzl:132:14:
      Warning: skipping import of repository 'pybind11_abseil' because it already exists.
      DEBUG: /private/var/tmp/_bazel_bytedance/c1c4d770c893bafa65e6e3850647a4b0/external/org_tensorflow/third_party/repo.bzl:132:14:
      Warning: skipping import of repository 'pybind11_bazel' because it already exists.
      DEBUG: /private/var/tmp/_bazel_bytedance/c1c4d770c893bafa65e6e3850647a4b0/external/org_tensorflow/third_party/repo.bzl:132:14:
      Warning: skipping import of repository 'com_google_protobuf' because it already exists.
      DEBUG: /private/var/tmp/_bazel_bytedance/c1c4d770c893bafa65e6e3850647a4b0/external/org_tensorflow/third_party/repo.bzl:132:14:
      Warning: skipping import of repository 'pybind11' because it already exists.
      Analyzing: target //:similarity_result_py_pb2 (0 packages loaded, 0 targets configured)
      INFO: Analyzed target //:similarity_result_py_pb2 (0 packages loaded, 0 targets configured).
      INFO: Found 1 target...
      [0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
      Target //:similarity_result_py_pb2 up-to-date:
        bazel-bin/similarity_result_pb2.py
      INFO: Elapsed time: 0.351s, Critical Path: 0.01s
      INFO: 1 process: 1 internal.
      INFO: Build completed successfully, 1 total action
      INFO: Build completed successfully, 1 total action
      Loading:
      Loading: 0 packages loaded
      WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/4ce3e4da2e21ae4dfcee9366415e55f408c884ec.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
      DEBUG: /private/var/tmp/_bazel_bytedance/c1c4d770c893bafa65e6e3850647a4b0/external/org_tensorflow/third_party/repo.bzl:132:14:
      Warning: skipping import of repository 'pybind11_abseil' because it already exists.
      DEBUG: /private/var/tmp/_bazel_bytedance/c1c4d770c893bafa65e6e3850647a4b0/external/org_tensorflow/third_party/repo.bzl:132:14:
      Warning: skipping import of repository 'pybind11_bazel' because it already exists.
      DEBUG: /private/var/tmp/_bazel_bytedance/c1c4d770c893bafa65e6e3850647a4b0/external/org_tensorflow/third_party/repo.bzl:132:14:
      Warning: skipping import of repository 'com_google_protobuf' because it already exists.
      DEBUG: /private/var/tmp/_bazel_bytedance/c1c4d770c893bafa65e6e3850647a4b0/external/org_tensorflow/third_party/repo.bzl:132:14:
      Warning: skipping import of repository 'pybind11' because it already exists.
      Analyzing: target //:visqol_config_py_pb2 (0 packages loaded, 0 targets configured)
      INFO: Analyzed target //:visqol_config_py_pb2 (0 packages loaded, 0 targets configured).
      INFO: Found 1 target...
      [0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
      Target //:visqol_config_py_pb2 up-to-date:
        bazel-bin/visqol_config_pb2.py
      INFO: Elapsed time: 0.305s, Critical Path: 0.00s
      INFO: 1 process: 1 internal.
      INFO: Build completed successfully, 1 total action
      INFO: Build completed successfully, 1 total action
      Loading:
      Loading: 0 packages loaded
      WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/4ce3e4da2e21ae4dfcee9366415e55f408c884ec.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
      DEBUG: /private/var/tmp/_bazel_bytedance/c1c4d770c893bafa65e6e3850647a4b0/external/org_tensorflow/third_party/repo.bzl:132:14:
      Warning: skipping import of repository 'pybind11_abseil' because it already exists.
      DEBUG: /private/var/tmp/_bazel_bytedance/c1c4d770c893bafa65e6e3850647a4b0/external/org_tensorflow/third_party/repo.bzl:132:14:
      Warning: skipping import of repository 'pybind11_bazel' because it already exists.
      DEBUG: /private/var/tmp/_bazel_bytedance/c1c4d770c893bafa65e6e3850647a4b0/external/org_tensorflow/third_party/repo.bzl:132:14:
      Warning: skipping import of repository 'com_google_protobuf' because it already exists.
      DEBUG: /private/var/tmp/_bazel_bytedance/c1c4d770c893bafa65e6e3850647a4b0/external/org_tensorflow/third_party/repo.bzl:132:14:
      Warning: skipping import of repository 'pybind11' because it already exists.
      Analyzing: target //python:visqol_lib_py.so (0 packages loaded, 0 targets configured)
      WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/e8f74a9763aa36559980a0c2f37f587794995622.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found
      INFO: Analyzed target //python:visqol_lib_py.so (0 packages loaded, 0 targets configured).
      INFO: Found 1 target...
      [0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
      Target //python:visqol_lib_py.so up-to-date:
        bazel-bin/python/visqol_lib_py.so
      INFO: Elapsed time: 0.194s, Critical Path: 0.00s
      INFO: 1 process: 1 internal.
      INFO: Build completed successfully, 1 total action
      INFO: Build completed successfully, 1 total action
      running bdist_wheel
      running build
      running build_py
      creating build
      error: could not create 'build': File exists
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for visqol
  Running setup.py clean for visqol
Failed to build visqol
ERROR: Could not build wheels for visqol, which is required to install pyproject.toml-based projects

[notice] A new release of pip is available: 23.2.1 -> 23.3
[notice] To update, run: pip install --upgrade pip

Versions:

  • Python 3.9.6
  • pip 23.2.1
  • MacOS 13.3.1

@IgnazioGul
Copy link

IgnazioGul commented Oct 26, 2023

I fixed it as stated in #88.
However, I still cannot import visqol_lib_py as shown in README API Usage example.
Any suggestion?
It seems like visqol_lib_py.so does not expose PyInit_visqol_lib_py method to allow the import of the shared object file (https://docs.python.org/3/extending/building.html)

@steventan0110
Copy link

I fixed it as stated in #88. However, I still cannot import visqol_lib_py as shown in README API Usage example. Any suggestion? It seems like visqol_lib_py.so does not expose PyInit_visqol_lib_py method to allow the import of the shared object file (https://docs.python.org/3/extending/building.html)

Same here. Wondering if anyone gets the Python pkg working?

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