Comments (3)
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.
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.
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)
- ImportError: initialization failed when trying to import in python HOT 2
- Do not get the maximum of MOS value using two same audio under speech mode HOT 2
- MOS-LQO results are low in speech mode
- Build did NOT complete successfully
- SegFault with Python bindings HOT 1
- Shows Build did NOT complete successfully when building visqol HOT 2
- Build the bazel failed
- build visqol with python
- Segmentation fault (core dumped)
- What kind of question is that HOT 3
- Cannot be used for testing Opus encoded files? HOT 2
- Input sample rate 8kHz HOT 2
- M2 Mac issue
- Hello, everyone. When i build visqol, why the warning saying 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 HOT 2
- Does anyone can share the VISQOL package on Linux or Windows HOT 1
- Reference File is shorter than degraded file -> MemoryError: std::bad_alloc HOT 2
- Please specify the supported Python versions. HOT 1
- bazel build uses system Python instead of current conda environment
- why does this error happen suddenly?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from visqol.