Hey there!
I’ve got problems running the elevation map plugin.
I guess I’ve pinned down the problem to a missing package. I can’t install the openCV package due to missing python files(?) .Everytime I start WebODM or try to install openCV manually I get the following error message.
Can someone help me fix this issue?
INFO Installing requirements.txt for [coreplugins.elevationmap.plugin]
webapp | Collecting geojson==2.4.1
webapp | Downloading geojson-2.4.1-py2.py3-none-any.whl (15 kB)
webapp | Collecting opencv-python-headless==4.4.0.46
webapp | Downloading opencv-python-headless-4.4.0.46.tar.gz (88.9 MB)
webapp | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 88.9/88.9 MB 18.0 MB/s eta 0:00:00
webapp | Installing build dependencies: started
webapp | Installing build dependencies: finished with status 'done'
webapp | Getting requirements to build wheel: started
webapp | Getting requirements to build wheel: finished with status 'done'
webapp | Preparing metadata (pyproject.toml): started
webapp | Preparing metadata (pyproject.toml): finished with status 'done'
webapp | Collecting numpy>=1.19.3
webapp | Downloading numpy-1.23.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (13.9 MB)
webapp | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.9/13.9 MB 27.9 MB/s eta 0:00:00
webapp | Building wheels for collected packages: opencv-python-headless
webapp | Building wheel for opencv-python-headless (pyproject.toml): started
webapp | Building wheel for opencv-python-headless (pyproject.toml): finished with status 'error'
webapp | error: subprocess-exited-with-error
webapp |
webapp | × Building wheel for opencv-python-headless (pyproject.toml) did not run successfully.
webapp | │ exit code: 1
webapp | ╰─> [66 lines of output]
webapp |
webapp |
webapp | --------------------------------------------------------------------------------
webapp | -- Trying "Ninja" generator
webapp | --------------------------------
webapp | ---------------------------
webapp | ----------------------
webapp | -----------------
webapp | ------------
webapp | -------
webapp | --
webapp | Not searching for unused variables given on the command line.
webapp | CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
webapp | -- Configuring incomplete, errors occurred!
webapp | See also "/tmp/pip-install-47il8zja/opencv-python-headless_48d4903acf1c411cb85eca97c6274ba0/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
webapp | --
webapp | -------
webapp | ------------
webapp | -----------------
webapp | ----------------------
webapp | ---------------------------
webapp | --------------------------------
webapp | -- Trying "Ninja" generator - failure
webapp | --------------------------------------------------------------------------------
webapp |
webapp |
webapp |
webapp | --------------------------------------------------------------------------------
webapp | -- Trying "Unix Makefiles" generator
webapp | --------------------------------
webapp | ---------------------------
webapp | ----------------------
webapp | -----------------
webapp | ------------
webapp | -------
webapp | --
webapp | Not searching for unused variables given on the command line.
webapp | CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
webapp | -- Configuring incomplete, errors occurred!
webapp | See also "/tmp/pip-install-47il8zja/opencv-python-headless_48d4903acf1c411cb85eca97c6274ba0/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
webapp | --
webapp | -------
webapp | ------------
webapp | -----------------
webapp | ----------------------
webapp | ---------------------------
webapp | --------------------------------
webapp | -- Trying "Unix Makefiles" generator - failure
webapp | --------------------------------------------------------------------------------
webapp |
webapp | ********************************************************************************
webapp | scikit-build could not get a working generator for your system. Aborting build.
webapp |
webapp | Building Linux wheels for Python 3.9 requires a compiler (e.g gcc).
webapp | But scikit-build does *NOT* know how to install it on ubuntu
webapp |
webapp | To build compliant wheels, consider using the manylinux system described in PEP-513.
webapp | Get it with "dockcross/manylinux-x64" docker image:
webapp |
webapp | https://github.com/dockcross/dockcross#readme
webapp |
webapp | For more details, please refer to scikit-build documentation:
webapp |
webapp | http://scikit-build.readthedocs.io/en/latest/generators.html#linux
webapp |
webapp | ********************************************************************************
webapp | [end of output]
webapp |
webapp | note: This error originates from a subprocess, and is likely not a problem with pip.
webapp | ERROR: Failed building wheel for opencv-python-headless
webapp | Failed to build opencv-python-headless
webapp | ERROR: Could not build wheels for opencv-python-headless, which is required to install pyproject.toml-based projects
webapp | --- Logging error ---
webapp | Traceback (most recent call last):
webapp | File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 177, in emit
webapp | self.console.print(renderable, overflow="ignore", crop=False, style=style)
webapp | File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1673, in print
webapp | extend(render(renderable, render_options))
webapp | File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1305, in render
webapp | for render_output in iter_render:
webapp | File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 134, in __rich_console__
webapp | for line in lines:
webapp | File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/segment.py", line 249, in split_lines
webapp | for segment in segments:
webapp | File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/console.py", line 1283, in render
webapp | renderable = rich_cast(renderable)
webapp | File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/rich/protocol.py", line 36, in rich_cast
webapp | renderable = cast_method()
webapp | File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 130, in __rich__
webapp | pip_cmd = get_best_invocation_for_this_pip()
webapp | File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/entrypoints.py", line 58, in get_best_invocation_for_this_pip
webapp | if found_executable and os.path.samefile(
webapp | File "/usr/lib/python3.9/genericpath.py", line 101, in samefile
webapp | s2 = os.stat(f2)
webapp | FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pip3.9'
webapp | Call stack:
webapp | File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
webapp | return _run_code(code, main_globals, None,
webapp | File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
webapp | exec(code, run_globals)
webapp | File "/usr/local/lib/python3.9/dist-packages/pip/__main__.py", line 31, in <module>
webapp | sys.exit(_main())
webapp | File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/main.py", line 70, in main
webapp | return command.main(cmd_args)
webapp | File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 101, in main
webapp | return self._main(args)
webapp | File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/base_command.py", line 223, in _main
webapp | self.handle_pip_version_check(options)
webapp | File "/usr/local/lib/python3.9/dist-packages/pip/_internal/cli/req_command.py", line 190, in handle_pip_version_check
webapp | pip_self_version_check(session, options)
webapp | File "/usr/local/lib/python3.9/dist-packages/pip/_internal/self_outdated_check.py", line 236, in pip_self_version_check
webapp | logger.info("[present-rich] %s", upgrade_prompt)
webapp | File "/usr/lib/python3.9/logging/__init__.py", line 1446, in info
webapp | self._log(INFO, msg, args, **kwargs)
webapp | File "/usr/lib/python3.9/logging/__init__.py", line 1589, in _log
webapp | self.handle(record)
webapp | File "/usr/lib/python3.9/logging/__init__.py", line 1599, in handle
webapp | self.callHandlers(record)
webapp | File "/usr/lib/python3.9/logging/__init__.py", line 1661, in callHandlers
webapp | hdlr.handle(record)
webapp | File "/usr/lib/python3.9/logging/__init__.py", line 952, in handle
webapp | self.emit(record)
webapp | File "/usr/local/lib/python3.9/dist-packages/pip/_internal/utils/logging.py", line 179, in emit
webapp | self.handleError(record)
webapp | Message: '[present-rich] %s'
webapp | Arguments: (UpgradePrompt(old='22.2', new='22.2.2'),)
webapp | WARNING Failed to install requirements.txt for [coreplugins.elevationmap.plugin]
webapp | INFO Registered [coreplugins.elevationmap.plugin]
My Specs:
Machine: MacBook Pro
CPU: M1Pro
Python Version on machine: Python 3.10.6
Cmake Version on machine: cmake 3.23.3
WebODM Version: WebODM 1.9.15
Thanks in advance