Giter Club home page Giter Club logo

Comments (3)

IgnazioGul avatar IgnazioGul commented on June 2, 2024 1

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)

from visqol.

kchan1130 avatar kchan1130 commented on June 2, 2024

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

from visqol.

steventan0110 avatar steventan0110 commented on June 2, 2024

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?

from visqol.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.