Git Product home page Git Product logo

python-extension-cpp's Introduction

python-extension-cpp's People

Contributors

esdandreu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

python-extension-cpp's Issues

Not working in Mac

If python3 is removed from the dependencies of pybind11. The package is installed but, importing it results in

ModuleNotFoundError: No module named 'pyproject._python_api'

Even if the lib folder of the virtual environment does contain a pyproject folder (package) with a _python_api file.

Imported target "pybind11::module" includes non-existent path "/usr/include/python3.8"

When installing in Windows Subsystem for Linux with Ubuntu 20.04

Imported target "pybind11::module" includes non-existent path

          "/usr/include/python3.8"

That path does not exist actually

ls /usr/include/python3.8/
ls: cannot access '/usr/include/python3.8/': No such file or directory

But it can be added by installing python3.8-dev which contains Python C headers

Failed to parse CMake console output to locate port start/end markers

Failed vcpkg install when running pip install . on Windows 11 in powershell

-- Running vcpkg install
      Failed to parse CMake console output to locate port start/end markers
      -- Running vcpkg install - failed
      CMake Error at vcpkg/scripts/buildsystems/vcpkg.cmake:816 (message):
        vcpkg install failed.  See logs for more information:
        C:\Users\esdan\Desktop\python-extension-cpp\_skbuild\win-amd64-3.8\cmake-build\vcpkg-manifest-install.log
      Call Stack (most recent call first):
        C:/Users/esdan/AppData/Local/Temp/pip-build-env-w7bbgfo8/overlay/Lib/site-packages/cmake/data/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake:124 (include)
        CMakeLists.txt:35 (project)


      CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
      CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
      -- Configuring incomplete, errors occurred!
        File "C:\Users\esdan\AppData\Local\Temp\pip-build-env-w7bbgfo8\overlay\Lib\site-packages\skbuild\setuptools_wrap.py", line 588, in setup
          env = cmkr.configure(cmake_args,
        File "C:\Users\esdan\AppData\Local\Temp\pip-build-env-w7bbgfo8\overlay\Lib\site-packages\skbuild\cmaker.py", line 289, in configure
          raise SKBuildError(


      --------------------------------------------------------------------------------
      -- Trying "Ninja (Visual Studio 17 2022 x64 v143)" generator
      --------------------------------
      ---------------------------
      ----------------------
      -----------------
      ------------
      -------
      --
      --
      -------
      ------------
      -----------------
      ----------------------
      ---------------------------
      --------------------------------
      -- Trying "Ninja (Visual Studio 17 2022 x64 v143)" generator - success
      --------------------------------------------------------------------------------

      Configuring Project
        Working directory:
          C:\Users\esdan\Desktop\python-extension-cpp\_skbuild\win-amd64-3.8\cmake-build
        Command:
          cmake 'C:\Users\esdan\Desktop\python-extension-cpp' -G Ninja '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\esdan\Desktop\python-extension-cpp\_skbuild\win-amd64-3.8\cmake-install\src\python\pyproject' '-DPYTHON_EXECUTABLE:FILEPATH=c:\users\esdan\desktop\python-extension-cpp\venv\scripts\python.exe' -DPYTHON_VERSION_STRING:STRING=3.8.10 '-DPYTHON_INCLUDE_DIR:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\Include' '-DPYTHON_LIBRARY:FILEPATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\libs\python38.lib' -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\esdan\AppData\Local\Temp\pip-build-env-w7bbgfo8\overlay\Lib\site-packages\skbuild\resources\cmake' '-DCMAKE_MAKE_PROGRAM:FILEPATH=C:\Users\esdan\AppData\Local\Temp\pip-build-env-w7bbgfo8\overlay\Lib\site-packages\ninja\data\bin\ninja' '-DCMAKE_TOOLCHAIN_FILE:PATH=C:\Users\esdan\Desktop\python-extension-cpp\vcpkg\scripts\buildsystems\vcpkg.cmake' -DBUILD_PYTHON_API=ON -DBUILD_TESTS=OFF -DCMAKE_BUILD_TYPE:STRING=Release

      Traceback (most recent call last):

      An error occurred while configuring with CMake.
        Command:
          cmake 'C:\Users\esdan\Desktop\python-extension-cpp' -G Ninja '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\esdan\Desktop\python-extension-cpp\_skbuild\win-amd64-3.8\cmake-install\src\python\pyproject' '-DPYTHON_EXECUTABLE:FILEPATH=c:\users\esdan\desktop\python-extension-cpp\venv\scripts\python.exe' -DPYTHON_VERSION_STRING:STRING=3.8.10 '-DPYTHON_INCLUDE_DIR:PATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\Include' '-DPYTHON_LIBRARY:FILEPATH=C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0\libs\python38.lib' -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\esdan\AppData\Local\Temp\pip-build-env-w7bbgfo8\overlay\Lib\site-packages\skbuild\resources\cmake' '-DCMAKE_MAKE_PROGRAM:FILEPATH=C:\Users\esdan\AppData\Local\Temp\pip-build-env-w7bbgfo8\overlay\Lib\site-packages\ninja\data\bin\ninja' '-DCMAKE_TOOLCHAIN_FILE:PATH=C:\Users\esdan\Desktop\python-extension-cpp\vcpkg\scripts\buildsystems\vcpkg.cmake' -DBUILD_PYTHON_API=ON -DBUILD_TESTS=OFF -DCMAKE_BUILD_TYPE:STRING=Release
        Source directory:
          C:\Users\esdan\Desktop\python-extension-cpp
        Working directory:
          C:\Users\esdan\Desktop\python-extension-cpp\_skbuild\win-amd64-3.8\cmake-build
  • When installing via python setup.py install it works
  • When installing in Windows Subsystem for Linux Ubuntu 20.04 via pip install . it also works

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.