install python package failed
xxk101010 opened this issue · 3 comments
xxk101010 commented
kchan1130 commented
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 commented
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 commented
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?