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

Building wheel for opencv-python (PEP 517) … - runs forever #29

Open
ajeetraina opened this issue Nov 1, 2020 · 2 comments · May be fixed by #30
Open

Building wheel for opencv-python (PEP 517) … - runs forever #29

ajeetraina opened this issue Nov 1, 2020 · 2 comments · May be fixed by #30

Comments

@ajeetraina
Copy link

Summary:

While running docker-compose up I faced an issue with OpenCV-Python trying to get built and then going into infinite mode.

Collecting opencv-python>=4.0.1.23 (from -r requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/38/a9/cd39fd25df434b5d9451dc266c12b72f68282a2b9bd5d7b4aa2d57d6c20e/opencv-python-4.4.0.44.tar.gz (88.9MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Collecting Pillow==6.2.2 (from -r requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/c3/3f/03375124676ab49ca6e6917c0f1f663afb8354d5d24e12f4fe4587a39ae2/Pillow-6.2.2-cp37-cp37m-manylinux1_x86_64.whl (2.1MB)
Collecting redis==3.2.1 (from -r requirements.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/ac/a7/cff10cc5f1180834a3ed564d148fb4329c989cbb1f2e196fc9a10fa07072/redis-3.2.1-py2.py3-none-any.whl (65kB)
Collecting click>=5.1 (from Flask==1.0.2->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl (82kB)
Collecting Jinja2>=2.10 (from Flask==1.0.2->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl (125kB)
Collecting Werkzeug>=0.14 (from Flask==1.0.2->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/cc/94/5f7079a0e00bd6863ef8f1da638721e9da21e5bacee597595b318f71d62e/Werkzeug-1.0.1-py2.py3-none-any.whl (298kB)
Collecting itsdangerous>=0.24 (from Flask==1.0.2->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl
Collecting MarkupSafe>=0.23 (from Jinja2>=2.10->Flask==1.0.2->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/98/7b/ff284bd8c80654e471b769062a9b43cc5d03e7a615048d96f4619df8d420/MarkupSafe-1.1.1-cp37-cp37m-manylinux1_x86_64.whl
Building wheels for collected packages: opencv-python
  Building wheel for opencv-python (PEP 517): started
  Building wheel for opencv-python (PEP 517): still running...
  Building wheel for opencv-python (PEP 517): still running...
  Building wheel for opencv-python (PEP 517): still running...
  Building wheel for opencv-python (PEP 517): still running...
  Building wheel for opencv-python (PEP 517): still running...

  Building wheel for opencv-python (PEP 517): still running...
  Building wheel for opencv-python (PEP 517): still running...
  Building wheel for opencv-python (PEP 517): still running..

Tested Infrastructure:

  • MacOS Catalina v10.15.7
  • Docker Desktop 2.4.2.0

How to reproduce this issue

Cloning the repository

ajeetraina@Ajeets-MacBook-Pro testing % git clone https://github.com/RedisGears/EdgeRealtimeVideoAnalytics

Change directory to EdgeRealtimeVideoAnalytics

ajeetraina@Ajeets-MacBook-Pro testing % cd EdgeRealtimeVideoAnalytics 

Bringing up Microservices

ajeetraina@Ajeets-MacBook-Pro EdgeRealtimeVideoAnalytics % docker-compose up 
Creating network "edgerealtimevideoanalytics_default" with the default driver
Building redisedge
Step 1/8 : FROM redislabs/redisedge:latest
 ---> 1a0427006ffa
Step 2/8 : ENV DEPS "python python3-pip python3-setuptools libglib2.0-0 libsm6 libxrender1 libxext6 libgomp1"
 ---> Using cache
 ---> df85b7e2b9f3
Step 3/8 : RUN set -ex;     apt-get update;     apt-get install -y --no-install-recommends $DEPS;
 ---> Using cache
 ---> e2ee7e2a44e8
Step 4/8 : RUN set -ex;     pip3 install -U pipenv;
 ---> Using cache
 ---> b33977d195ca
Step 5/8 : ADD ./requirements.txt /tmp/requirements.txt
 ---> Using cache
 ---> 6c522f9035ef
Step 6/8 : RUN set -ex;     cd /opt/redislabs/lib/modules/python3;     pipenv run pip3 install -r /tmp/requirements.txt;
 ---> Using cache
 ---> 9a8e97701ecd
Step 7/8 : ADD ./redisedge.conf /usr/local/etc/redisedge.conf
 ---> Using cache
 ---> 13fb70eecf79
Step 8/8 : CMD ["/usr/local/etc/redisedge.conf"]
 ---> Using cache
 ---> 5a7b3519b6ee

Successfully built 5a7b3519b6ee
Successfully tagged edgerealtimevideoanalytics_redisedge:latest
WARNING: Image for service redisedge was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Building init
Step 1/5 : FROM python:3.7.3
3.7.3: Pulling from library/python
6f2f362378c5: Pull complete
494c27a8a6b8: Pull complete
7596bb83081b: Pull complete
372744b62d49: Pull complete
615db220d76c: Pull complete
39aa0c89bda1: Pull complete
ac275157d894: Pull complete
98d16dec829a: Pull complete
c8514b1c6524: Pull complete
Digest: sha256:9e0b4f32487ca1863b45383420b8db77990debae748e2e875d2f86fa9510d4a5
Status: Downloaded newer image for python:3.7.3
 ---> 34a518642c76
Step 2/5 : WORKDIR /app
 ---> Running in 74258fa4a02a
Removing intermediate container 74258fa4a02a
 ---> 13cc09418402
Step 3/5 : ADD . /app
 ---> 6ac96397de20
Step 4/5 : RUN set -ex;     pip install -r requirements.txt;
 ---> Running in d637a297b2b6
+ pip install -r requirements.txt
Collecting Flask==1.0.2 (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/7f/e7/08578774ed4536d3242b14dacb4696386634607af824ea997202cd0edb4b/Flask-1.0.2-py2.py3-none-any.whl (91kB)
Collecting numpy==1.16.3 (from -r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/bb/76/24e9f32c78e6f6fb26cf2596b428f393bf015b63459468119f282f70a7fd/numpy-1.16.3-cp37-cp37m-manylinux1_x86_64.whl (17.3MB)
Collecting opencv-python>=4.0.1.23 (from -r requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/38/a9/cd39fd25df434b5d9451dc266c12b72f68282a2b9bd5d7b4aa2d57d6c20e/opencv-python-4.4.0.44.tar.gz (88.9MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Collecting Pillow==6.2.2 (from -r requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/c3/3f/03375124676ab49ca6e6917c0f1f663afb8354d5d24e12f4fe4587a39ae2/Pillow-6.2.2-cp37-cp37m-manylinux1_x86_64.whl (2.1MB)
Collecting redis==3.2.1 (from -r requirements.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/ac/a7/cff10cc5f1180834a3ed564d148fb4329c989cbb1f2e196fc9a10fa07072/redis-3.2.1-py2.py3-none-any.whl (65kB)
Collecting click>=5.1 (from Flask==1.0.2->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl (82kB)
Collecting Jinja2>=2.10 (from Flask==1.0.2->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d838042ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl (125kB)
Collecting Werkzeug>=0.14 (from Flask==1.0.2->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/cc/94/5f7079a0e00bd6863ef8f1da638721e9da21e5bacee597595b318f71d62e/Werkzeug-1.0.1-py2.py3-none-any.whl (298kB)
Collecting itsdangerous>=0.24 (from Flask==1.0.2->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl
Collecting MarkupSafe>=0.23 (from Jinja2>=2.10->Flask==1.0.2->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/98/7b/ff284bd8c80654e471b769062a9b43cc5d03e7a615048d96f4619df8d420/MarkupSafe-1.1.1-cp37-cp37m-manylinux1_x86_64.whl
Building wheels for collected packages: opencv-python
  Building wheel for opencv-python (PEP 517): started
  Building wheel for opencv-python (PEP 517): still running...
  Building wheel for opencv-python (PEP 517): still running...
  Building wheel for opencv-python (PEP 517): still running...
  Building wheel for opencv-python (PEP 517): still running...
  Building wheel for opencv-python (PEP 517): still running...
```
@itamarhaber itamarhaber linked a pull request Nov 2, 2020 that will close this issue
@itamarhaber
Copy link
Collaborator

Hello @ajeetraina

Thanks for reporting this. I've submitted #30 as a fix - please confirm that it resolves the issue (tested locally, works for me ;)).

@ajeetraina
Copy link
Author

ajeetraina commented Nov 2, 2020

Hello @itamarhaber That fixes the issue. Tested and verified. Thanks.

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

Successfully merging a pull request may close this issue.

2 participants