Code Monkey home page Code Monkey logo

Comments (7)

Rikorose avatar Rikorose commented on June 15, 2024

Hi there,

as the error says Found no HDF5 installations. you don't have HDF5 development headers installed.

Refer to http://www.hdfgroup.org/solutions/hdf5/ or your preferred package manger for install instructions.

from deepfilternet.

Tim5Tang avatar Tim5Tang commented on June 15, 2024

May this is a good job, but it is hard for me to build the env.
i also test in linux, and install the hdf5
when i use the pip install deepfilternet[train]

thread 'main' panicked at 'Unable to locate HDF5 root directory and/or headers.', /home/tangzixing/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/hdf5-sys-0.8.1/build.rs:548:13
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed
πŸ’₯ maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit status: 101": cargo rustc --message-format json --manifest-path Cargo.toml --release --lib -- -C link-arg=-s
🍹 Building a mixed python/rust project
πŸ”— Found pyo3 bindings
🐍 Found CPython 3.8 at /home/tangzixing/anaconda3/envs/deepfilter/bin/python
Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/home/tangzixing/anaconda3/envs/deepfilter/bin/python'] returned non-zero exit status 1

from deepfilternet.

Rikorose avatar Rikorose commented on June 15, 2024

pip install deepfilternet[train] should not require any installed hdf5 libs or rust compiler. It just fetches the prebuild wheel from pypi. Not sure what is going on.

If you want to build the package yourself, could you give me the output of cargo build?

from deepfilternet.

Tim5Tang avatar Tim5Tang commented on June 15, 2024

thanks for you replay, the info is :
Compiling cfg-if v1.0.0
Compiling autocfg v1.0.1
Compiling proc-macro2 v1.0.33
Compiling unicode-xid v0.2.2
Compiling libc v0.2.111
Compiling syn v1.0.82
Compiling memchr v2.4.1
Compiling scopeguard v1.1.0
Compiling serde_derive v1.0.131
Compiling regex-syntax v0.6.25
Compiling crossbeam-utils v0.8.5
Compiling pyo3-build-config v0.15.1
Compiling proc-macro-hack v0.5.19
Compiling pkg-config v0.3.24
Compiling serde v1.0.131
Compiling lazy_static v1.4.0
Compiling once_cell v1.8.0
Compiling parking_lot_core v0.8.5
Compiling crossbeam-epoch v0.9.5
Compiling smallvec v1.7.0
Compiling rawpointer v0.2.1
Compiling strength_reduce v0.2.3
Compiling rayon-core v1.9.1
Compiling unindent v0.1.7
Compiling log v0.4.14
Compiling hdf5-types v0.8.1
Compiling ascii v1.0.0
Compiling hdf5 v0.8.1
Compiling ppv-lite86 v0.2.15
Compiling tinyvec_macros v0.1.0
Compiling serde_json v1.0.72
Compiling byteorder v1.4.3
Compiling itoa v0.4.8
Compiling either v1.6.1
Compiling paste v1.0.6
Compiling ryu v1.0.9
Compiling bitflags v1.3.2
Compiling hound v3.4.0
Compiling cfg-if v0.1.10
Compiling libloading v0.7.2
Compiling instant v0.1.12
Compiling tinyvec v1.5.1
Compiling lock_api v0.4.5
Compiling matrixmultiply v0.3.2
Compiling ogg v0.8.0
Compiling num-traits v0.2.14
Compiling num-integer v0.1.44
Compiling memoffset v0.6.5
Compiling rayon v1.5.1
Compiling crossbeam-channel v0.5.1
Compiling aho-corasick v0.7.18
Compiling quote v1.0.10
Compiling lewton v0.10.2
Compiling getrandom v0.2.3
Compiling num_cpus v1.13.0
Compiling crossbeam-deque v0.8.1
Compiling rand_core v0.6.3
Compiling parking_lot v0.11.2
Compiling pyo3 v0.15.1
Compiling paste-impl v0.1.18
Compiling rand_chacha v0.3.1
Compiling rand_xoshiro v0.6.0
Compiling rand v0.8.4
Compiling num-complex v0.4.0
Compiling paste v0.1.18
Compiling regex v1.5.4
Compiling primal-check v0.3.1
Compiling transpose v0.2.1
Compiling rustfft v6.0.1
Compiling pyo3-macros-backend v0.15.1
Compiling hdf5-sys v0.8.1
error: failed to run custom build command for hdf5-sys v0.8.1

Caused by:
process didn't exit successfully: /home/tangzixing/data/deeplearning/program/audio/DeepFilterNet/target/debug/build/hdf5-sys-4c8472666dcac2f7/build-script-build (exit status: 101)
--- stdout
Attempting to find HDF5 via pkg-config...
cargo:rerun-if-env-changed=HDF5_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=HDF5_STATIC
cargo:rerun-if-env-changed=HDF5_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

--- stderr
thread 'main' panicked at 'Unable to locate HDF5 root directory and/or headers.', /home/tangzixing/.cargo/registry/src/mirrors.tuna.tsinghua.edu.cn-df7c3c540f42cdbd/hdf5-sys-0.8.1/build.rs:548:13
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

from deepfilternet.

Rikorose avatar Rikorose commented on June 15, 2024

You are still missing the HDF5 headers. Did you install them via apt-get install libhdf5-dev if you are on ubuntu?

from deepfilternet.

Tim5Tang avatar Tim5Tang commented on June 15, 2024

thanks
cargo build pass.
the reason is that i install the hdf5 by the source code.

from deepfilternet.

wenbozhang avatar wenbozhang commented on June 15, 2024

You are still missing the HDF5 headers. Did you install them via apt-get install libhdf5-dev if you are on ubuntu?
What could I do on Windows 11 system? THANKS A LOT.

from deepfilternet.

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.