ish-app / ish-app/ish

Problem with Cargo while installing pydantic-core

Open
#2,450 3 comments 0 reactions 0 assignees View on GitHub
unconfirmed
Dominant language
C
Stars
20.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

I've installed cargo and rust:

```bash
apk add rustc
apk add cargo
```

But every time I encounter the same problem when installing the pip package pydantic:

```bash

(venv) localhost:~/HamsterValor# pip install pydantic
Collecting pydantic
Using cached pydantic-2.8.2-py3-none-any.whl (423 kB)
Requirement already satisfied: typing-extensions>=4.6.1 in /usr/lib/python3.10/site-packages (from pydantic) (4.12.2)
Collecting pydantic-core==2.20.1
Using cached pydantic_core-2.20.1.tar.gz (388 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
╰─> [19 lines of output]
Updating crates.io index
error: failed to get `ahash` as a dependency of package `pydantic-core v2.20.1 (/tmp/pip-install-313nz3kj/pydantic-core_65a6b7ec56b14a10b925e210d3c920fb)`

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: unknown error; class=Ssl (16)
💥 maturin failed
Caused by: Cargo metadata failed. Does your crate compile with `cargo build`?

```

I have no idea what to do. It would be very nice if someone could pay my attention to root of the problem or write a solution.

Contributor guide

No contributing guide indexed for this repository

Research direction

No repository file or test is named. Start by reproducing the shown `pip install pydantic` command and inspect the Cargo SSL failure while fetching crates.io; done means identifying whether the problem is in iSH or the environment and documenting a verified resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
operating-systems, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.