MegEngine / MegEngine/MegFlow

Build Docker Image Failed

Open
#16 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
Dominant language
Rust
Stars
402
Forks
37
PR merge metrics
No merged PRs in 30d

Description

## detail | 详细描述
Hi there,
Try to build the docker as refer to the guid, but always failed with the same messages as below, any clue to fix it? Thanks!

Step 7/7 : RUN PATH=$HOME/.cargo/bin:${PATH} && cargo build && cd flow-python && python3 setup.py install --user && cd examples && cargo run --example run_with_plugins -- -p logical_test
---> Running in 9e5d7d0b6e8c
Updating crates.io index
Updating git repository `https://github.com/nbdd0121/stackful.git`
Updating git repository `https://github.com/Easonzero/rust-ffmpeg`
Updating git repository `https://github.com/Easonzero/rust-ffmpeg-sys`
Downloading crates ...

... ... [**Omitt dozens of lines**]

Downloaded clang-sys v0.29.3
Downloaded h2 v0.3.3
warning: spurious network error (2 tries remaining): [28] Timeout was reached (download of `ndarray v0.15.3` failed to transfer more than 10 bytes in 30s)
warning: spurious network error (2 tries remaining): [28] Timeout was reached (failed to download any data for `libc v0.2.100` within 30s)
error: failed to download from `https://crates.io/api/v1/crates/num-integer/0.1.44/download`

Caused by:
[92] Stream error in the HTTP/2 framing layer (HTTP/2 stream 279 was not closed cleanly before end of the underlying stream)
The command '/bin/sh -c PATH=$HOME/.cargo/bin:${PATH} && cargo build && cd flow-python && python3 setup.py install --user && cd examples && cargo run --example run_with_plugins -- -p logical_test' returned a non-zero code: 101

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by rerunning the Docker build and inspecting the cargo build step in the reported command, especially the crates.io download failures and HTTP/2 stream error. The work is done when the image build completes through setup.py install and the example cargo run command without the dependency download failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python, rust
Domain
build-system, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.