Skip to content

Installation Failure of cmeel-octomap with Python 3.13 in Virtual Environment #428

Open
@emrecemal

Description

@emrecemal

I'm encountering an error while trying to install the cmeel-octomap package using pip within a Python 3.13 virtual environment. The installation process completes up to the build phase but fails during the test execution. Below are the detailed steps and the complete error log for reference.

Steps

Create a Python 3.13 virtual environment:

python3.13 -m venv .venv

Activate the virtual environment:

source .venv/bin/activate

Verify Python version:

python --version
# Output: Python 3.13.1

Upgrade pip to the latest version:

pip install pip --upgrade

Attempt to install cmeel-octomap:

pip install cmeel-octomap<2,>=1.9.8.2

The installation fails during the metadata preparation and testing phase after building the package. Specifically, one of the tests (test_color_tree) fails, causing the entire installation process to abort.

Error log:

➜  ~ python3.13 -m venv .venv
➜  ~ source .venv/bin/activate
(.venv) ➜  ~ python --version
Python 3.13.1
(.venv) ➜  ~ pip install pip --upgrade
Requirement already satisfied: pip in ./.venv/lib/python3.13/site-packages (24.3.1)
Collecting pip
  Using cached pip-25.0.1-py3-none-any.whl.metadata (3.7 kB)
Using cached pip-25.0.1-py3-none-any.whl (1.8 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 24.3.1
    Uninstalling pip-24.3.1:
      Successfully uninstalled pip-24.3.1
Successfully installed pip-25.0.1
(.venv) ➜  ~ pip install cmeel-octomap<2,>=1.9.8.2
Collecting cmeel-octomap<2,>=1.9.8.2
  Using cached cmeel_octomap-1.10.0.tar.gz (1.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [Full error log included below]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

The full error log is extensive, detailing numerous warnings related to C++11 extensions and a failed test (test_color_tree). You can find the full terminal output here: full_terminal.txt Below is a snippet highlighting the critical failure:

...
The following tests FAILED:
     14 - test_color_tree (Failed)

93% tests passed, 1 tests failed out of 15

Total Test time (real) =   2.42 sec

The following tests FAILED:
     14 - test_color_tree (Failed)
Errors while running CTest
make: *** [test] Error 8
...
subprocess.CalledProcessError: Command '['cmake', '--build', '/var/.../bld', '-t', 'test']' returned non-zero exit status 2.

Additional Information:

Operating System: macOS (13.6.8) M1 chip
Python Version: 3.13.1
pip Version: 25.0.1
CMake Version: 3.31.5
C++ Compiler: AppleClang 15.0.0

Could someone assist in resolving this installation issue? It seems to be related to the package's build and test process, possibly compatibility issues with Python 3.13 or the CMake configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions