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

Problem with docker build #226

Open
aliig opened this issue Aug 11, 2020 · 5 comments
Open

Problem with docker build #226

aliig opened this issue Aug 11, 2020 · 5 comments

Comments

@aliig
Copy link

aliig commented Aug 11, 2020

I'm struggling to get the proper linux environment to work for this, so I've resorted to using docker. I eventually got the program to work with the provided docker build instructions about a week or so ago on WSL2, but it doesn't seem to work for me any more.

docker build -t first-order-model . fails for me on this step: full log

Collecting opencv-python (from face-alignment==1.1.0)
  Downloading https://files.pythonhosted.org/packages/a1/d6/8422797e35f8814b1d9842530566a949d9b5850a466321a6c1d5a99055ee/opencv-python-4.3.0.38.tar.gz (88.0MB)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-wuc0x2vh/opencv-python/setup.py", line 9, in <module>
        import skbuild
    ModuleNotFoundError: No module named 'skbuild'

Any ideas to get this working again?

Running on a fresh WSL2 Ubuntu build following the instructions here. Building with a fresh clone of this repo as well.

Thank you!

@koles289
Copy link

Hi, I have exactly the same problem after downloading OpenVino toolkit for linux with FPGA support version 2020.4.287.
the same issue is being solved in this thread, but I do not know, how to download changed files.
OpenVisualCloud/Dockerfiles#549

@Grandmother
Copy link

Hi, this problem is described in issue in official opencv-python repo and in their FAQ.

@lobomfz
Copy link
Contributor

lobomfz commented Aug 11, 2020

Submited a pull request to fix it

@aliig
Copy link
Author

aliig commented Aug 11, 2020

Submited a pull request to fix it

This worked, thank you

@ishc3ice
Copy link

ishc3ice commented Aug 12, 2020

Edit the Dockerfile, and add RUN pip3 install scikit-build==0.11.1 before the last Command

about like this:

FROM nvcr.io/nvidia/cuda:10.0-cudnn7-runtime-ubuntu18.04

RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update \
 && DEBIAN_FRONTEND=noninteractive apt-get -qqy install python3-pip ffmpeg git less nano libsm6 libxext6 libxrender-dev \
 && rm -rf /var/lib/apt/lists/*

COPY . /app/
WORKDIR /app

RUN pip3 install scikit-build==0.11.1

RUN pip3 install \
  https://download.pytorch.org/whl/cu100/torch-1.0.0-cp36-cp36m-linux_x86_64.whl \
  git+https://github.com/1adrianb/face-alignment \
  -r requirements.txt

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

5 participants