styler00dollar / VSGAN-tensorrt-docker

Using VapourSynth with super resolution and interpolation models and speeding them up with TensorRT.
BSD 3-Clause "New" or "Revised" License
288 stars 30 forks source link

Could not build wheels for cupy #76

Open blastilonic opened 2 months ago

blastilonic commented 2 months ago

Hello, I have a problem.

When I run docker build --no-cache -t vsgan_tensorrt:latest .

I have this error: note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cupy Running setup.py clean for cupy Failed to build cupy ERROR: Could not build wheels for cupy, which is required to install pyproject.toml-based projects

Part of the code where I have this problem:

RUN git clone https://github.com/cupy/cupy --recursive && cd cupy && git submodule update --init && python3.12 -m pip install . --break-system-packages && \
  MAKEFLAGS="-j$(nproc)" python3.12 setup.py bdist_wheel
styler00dollar commented 2 months ago

That text alone doesn't say much. Do you have Nvidia driver 560+? You could try to build with this with --verbose, maybe this will print more useful information. I just tested and it builds fine on my system. I think it most likely is related to how you set up your docker env.

RUN git clone https://github.com/cupy/cupy --recursive && cd cupy && git submodule update --init && python3.12 -m pip install . --break-system-packages --verbose && \
  MAKEFLAGS="-j$(nproc)" python3.12 setup.py bdist_wheel --verbose

If you do this because the non-avx docker is outdated, I use quite old hardware to build that docker and it takes around a full day to complete one build, so I didn't do it yet. Could try this weekend.

Also, please properly format text.