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

pip install deepfilternet[train] failed #612

Open
zxj329 opened this issue Oct 24, 2024 · 0 comments
Open

pip install deepfilternet[train] failed #612

zxj329 opened this issue Oct 24, 2024 · 0 comments

Comments

@zxj329
Copy link

zxj329 commented Oct 24, 2024

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting deepfilternet[train]
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/70/71/2edcc970c4dc689c301ea83e89a169fde08d6af0dfb26b14009ab27ee105/deepfilternet-0.5.6-py3-none-any.whl (113 kB)
Collecting appdirs<2.0,>=1.4 (from deepfilternet[train])
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3b/00/2344469e2084fb287c2e0b57b72910309874c3245463acd6cf5e3db69324/appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting deepfilterlib==0.5.6 (from deepfilternet[train])
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/61/ca/c85f5796b6ab4974b105b82ad29e1addd83040ca498d658dc0587739fa6f/DeepFilterLib-0.5.6.tar.gz (112 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
💥 maturin failed
Caused by: Cargo metadata failed. Does your crate compile with cargo build?
Caused by: cargo metadata exited with an error: Updating crates.io index
error: Unable to update registry crates-io

  Caused by:
    failed to fetch `https://github.com/rust-lang/crates.io-index`
  
  Caused by:
    network failure seems to have happened
    if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
    https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
  
  Caused by:
    SSL error: received early EOF; class=Ssl (16); code=Eof (-20)
  Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/tmp/pip-modern-metadata-nmhxsy1m', '--interpreter', '/home/zhengxinjiang/anaconda3/envs/deepfilternet/bin/python']' returned non-zero exit status 1.
  Checking for Rust toolchain....
  Running `maturin pep517 write-dist-info --metadata-directory /tmp/pip-modern-metadata-nmhxsy1m --interpreter /home/zhengxinjiang/anaconda3/envs/deepfilternet/bin/python`
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

how can i solve this problem?

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

1 participant