Skip to content

PEP 517 error when installing with pip  #66

@ayberkydn

Description

@ayberkydn

"ERROR: Could not build wheels for pdal which use PEP 517 and cannot be installed directly"

This error message is shown when I try to install PDAL with pip.

The Python and pip versions I tried to install on are;
Python: 3.7 - 3.8
pip: 20.1 - 20.2

I also tried to install virtualenv/conda virtual environments and the system python. Same error message. Not sure if it is a bug or just I am missing something. Tried to google it with no results. Also, pdal 2.1 is installed and working as a command line utility on Arch Linux (installed with pacman).

Here is the full error message:


-- Found Python3: /home/ayb/.local/conda/envs/torch/bin/python3.8 (found version "3.8.3") found components: Interpreter Development NumPy Development.Module Development.Embed                                                             
  CMake Error at CMakeLists.txt:21 (find_package):                                                                                                                                                                                           
    By not providing "FindPDAL.cmake" in CMAKE_MODULE_PATH this project has                                                                                                                                                                  
    asked CMake to find a package configuration file provided by "PDAL", but                                                                                                                                                                 
    CMake did not find one.                                                                                                                                                                                                                  
                                                                                                                                                                                                                                             
    Could not find a package configuration file provided by "PDAL" (requested                                                                                                                                                                
    version 2.1) with any of the following names:                                                                                                                                                                                            
                                                                                                                                                                                                                                             
      PDALConfig.cmake                                                                                                                                                                                                                       
      pdal-config.cmake                                                                                                                                                                                                                      
  
    Add the installation prefix of "PDAL" to CMAKE_PREFIX_PATH or set
    "PDAL_DIR" to a directory containing one of the above files.  If "PDAL"
    provides a separate development package or SDK, be sure it has been
    installed.
  
  
  -- Configuring incomplete, errors occurred!
  See also "/tmp/pip-install-j3gyy3nq/pdal/_skbuild/linux-x86_64-3.8/cmake-build/CMakeFiles/CMakeOutput.log".
    File "/tmp/pip-build-env-bplzf55v/overlay/lib/python3.8/site-packages/skbuild/setuptools_wrap.py", line 582, in setup
      env = cmkr.configure(cmake_args,
    File "/tmp/pip-build-env-bplzf55v/overlay/lib/python3.8/site-packages/skbuild/cmaker.py", line 229, in configure
      raise SKBuildError(
  
  
  --------------------------------------------------------------------------------
  -- Trying "Ninja" generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying "Ninja" generator - success
  --------------------------------------------------------------------------------
  
  Configuring Project
    Working directory:
      /tmp/pip-install-j3gyy3nq/pdal/_skbuild/linux-x86_64-3.8/cmake-build
    Command:
      cmake /tmp/pip-install-j3gyy3nq/pdal/pdal -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-j3gyy3nq/pdal/_skbuild/linux-x86_64-3.8/cmake-install -DPYTHON_EXECUTABLE:FILEPATH=/home/ayb/.local/conda/bin/python -DPYTHON_VERSION_STRING:STRING=3.8.3 -DPYTHON_INCLUDE_DIR:PATH=/home/ayb/.local/conda/include/python3.8 -DPYTHON_LIBRARY:FILEPATH=/home/ayb/.local/conda/lib/libpython3.8.so -DSKBUILD:BOOL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-bplzf55v/overlay/lib/python3.8/site-packages/skbuild/resources/cmake -DCMAKE_BUILD_TYPE:STRING=Release
  
  Traceback (most recent call last):
  
  An error occurred while configuring with CMake.
    Command:
      cmake /tmp/pip-install-j3gyy3nq/pdal/pdal -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-j3gyy3nq/pdal/_skbuild/linux-x86_64-3.8/cmake-install -DPYTHON_EXECUTABLE:FILEPATH=/home/ayb/.local/conda/bin/python -DPYTHON_VERSION_STRING:STRING=3.8.3 -DPYTHON_INCLUDE_DIR:PATH=/home/ayb/.local/conda/include/python3.8 -DPYTHON_LIBRARY:FILEPATH=/home/ayb/.local/conda/lib/libpython3.8.so -DSKBUILD:BOOL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-bplzf55v/overlay/lib/python3.8/site-packages/skbuild/resources/cmake -DCMAKE_BUILD_TYPE:STRING=Release
    Source directory:
      /tmp/pip-install-j3gyy3nq/pdal/pdal
    Working directory:
      /tmp/pip-install-j3gyy3nq/pdal/_skbuild/linux-x86_64-3.8/cmake-build
  Please see CMake's output for more information.
  ----------------------------------------
  ERROR: Failed building wheel for pdal
Failed to build pdal
ERROR: Could not build wheels for pdal which use PEP 517 and cannot be installed directly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions