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

Makefile exits with error #2

Open
ebonak opened this issue Jul 2, 2021 · 0 comments
Open

Makefile exits with error #2

ebonak opened this issue Jul 2, 2021 · 0 comments

Comments

@ebonak
Copy link

ebonak commented Jul 2, 2021

I cloned the repo and then ran the make command, but it fails - this is on a stock Pi 4 with the current version of Docker. Any tips?

`pi@ftl:~/DOG/dog_detector $ make
Installing locally with docker
Sending build context to Docker daemon 93.7kB
Step 1/9 : FROM python:3.8
---> d3accf0d6192
Step 2/9 : WORKDIR /code
---> Using cache
---> d3e345c646bd
Step 3/9 : ENV PYTHONUNBUFFERED=1
---> Using cache
---> a4e8863756d6
Step 4/9 : RUN apt-get clean && apt-get update && apt-get install -y ffmpeg libsm6 libxext6
---> Using cache
---> 3c1c223b63a5
Step 5/9 : COPY src/requirements.txt .
---> Using cache
---> 813462f11751
Step 6/9 : RUN pip install -r requirements.txt
---> Running in 07bc34d7804d
Collecting opencv-contrib-python==4.5.1.48
Downloading opencv-contrib-python-4.5.1.48.tar.gz (148.8 MB)
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python /tmp/pip-standalone-pip-he1qq12x/env_pip.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-7h6wcv9o/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel scikit-build cmake pip 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_machine != '"'"'aarch64'"'"'' 'numpy==1.19.3; python_version>='"'"'3.6'"'"' and sys_platform == '"'"'linux'"'"' and platform_machine == '"'"'aarch64'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_machine != '"'"'aarch64'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_machine != '"'"'aarch64'"'"'' 'numpy==1.19.3; python_version>='"'"'3.9'"'"' and platform_machine != '"'"'aarch64'"'"''
cwd: None
Complete output (59 lines):
Ignoring numpy: markers 'python_version == "3.6" and platform_machine != "aarch64"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.6" and sys_platform == "linux" and platform_machine == "aarch64"' don't match your environment
Ignoring numpy: markers 'python_version == "3.7" and platform_machine != "aarch64"' don't match your environment
Ignoring numpy: markers 'python_version >= "3.9" and platform_machine != "aarch64"' don't match your environment
Collecting setuptools
Downloading setuptools-57.0.0-py3-none-any.whl (821 kB)
Collecting wheel
Downloading wheel-0.36.2-py2.py3-none-any.whl (35 kB)
Collecting scikit-build
Downloading scikit_build-0.11.1-py2.py3-none-any.whl (72 kB)
Collecting cmake
Downloading cmake-3.20.5.tar.gz (30 kB)
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 pip
Downloading pip-21.1.3-py3-none-any.whl (1.5 MB)
Collecting numpy==1.17.3
Downloading numpy-1.17.3.zip (6.4 MB)
Collecting packaging
Using cached packaging-20.9-py2.py3-none-any.whl (40 kB)
Collecting distro
Using cached distro-1.5.0-py2.py3-none-any.whl (18 kB)
Collecting pyparsing>=2.0.2
Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Building wheels for collected packages: numpy, cmake
Building wheel for numpy (setup.py): started
Building wheel for numpy (setup.py): still running...
Building wheel for numpy (setup.py): still running...
Building wheel for numpy (setup.py): still running...
Building wheel for numpy (setup.py): still running...
Building wheel for numpy (setup.py): still running...
Building wheel for numpy (setup.py): still running...
Building wheel for numpy (setup.py): finished with status 'done'
Created wheel for numpy: filename=numpy-1.17.3-cp38-cp38-linux_armv7l.whl size=14982555 sha256=84770359559d68ea91d31dc121fb4999cbcdb6d14d7e5477918db03f47c74204
Stored in directory: /root/.cache/pip/wheels/aa/67/93/1a3eb3ad40a08a0cc44ce3da7bfcad685c04afba45b7e72589
Building wheel for cmake (PEP 517): started
Building wheel for cmake (PEP 517): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python /tmp/tmpgd7rn84g build_wheel /tmp/tmprvctbd9x
cwd: /tmp/pip-install-ns_7gik5/cmake_0495b089099b4d2694e96f0050a1ef6b
Complete output (9 lines):
Traceback (most recent call last):
File "/tmp/pip-build-env-7r36bbgw/overlay/lib/python3.8/site-packages/skbuild/setuptools_wrap.py", line 560, in setup
cmkr = cmaker.CMaker(cmake_executable)
File "/tmp/pip-build-env-7r36bbgw/overlay/lib/python3.8/site-packages/skbuild/cmaker.py", line 95, in init
self.cmake_version = get_cmake_version(self.cmake_executable)
File "/tmp/pip-build-env-7r36bbgw/overlay/lib/python3.8/site-packages/skbuild/cmaker.py", line 81, in get_cmake_version
raise SKBuildError(

Problem with the CMake installation, aborting build. CMake executable is cmake
----------------------------------------
ERROR: Failed building wheel for cmake

Successfully built numpy
Failed to build cmake
ERROR: Could not build wheels for cmake which use PEP 517 and cannot be installed directly

WARNING: Discarding https://files.pythonhosted.org/packages/42/02/7b2fb0b81266aa3243dd8f392d48db1a206cc9a1856a14228e75c515616e/opencv-contrib-python-4.5.1.48.tar.gz#sha256=74ebf353d7e1666066265922153a0f60fff9e1dd603f5929b13a99415363f078 (from https://pypi.org/simple/opencv-contrib-python/) (requires-python:>=3.6). Command errored out with exit status 1: /usr/local/bin/python /tmp/pip-standalone-pip-he1qq12x/env_pip.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-7h6wcv9o/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel scikit-build cmake pip 'numpy==1.13.3; python_version=='"'"'3.6'"'"' and platform_machine != '"'"'aarch64'"'"'' 'numpy==1.19.3; python_version>='"'"'3.6'"'"' and sys_platform == '"'"'linux'"'"' and platform_machine == '"'"'aarch64'"'"'' 'numpy==1.14.5; python_version=='"'"'3.7'"'"' and platform_machine != '"'"'aarch64'"'"'' 'numpy==1.17.3; python_version=='"'"'3.8'"'"' and platform_machine != '"'"'aarch64'"'"'' 'numpy==1.19.3; python_version>='"'"'3.9'"'"' and platform_machine != '"'"'aarch64'"'"'' Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement opencv-contrib-python==4.5.1.48 (from versions: 3.4.11.45, 3.4.13.47, 3.4.14.51, 4.4.0.46, 4.5.1.48, 4.5.2.52)
ERROR: No matching distribution found for opencv-contrib-python==4.5.1.48
The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1
make: *** [Makefile:10: install] Error 1
pi@ftl:~/DOG/dog_detector $
`

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

1 participant