nmwsharp / potpourri3d

An invigorating blend of 3D geometry tools in Python.
MIT License
414 stars 31 forks source link

Cannot install on Python 3.11 #13

Closed patrick-nicodemus closed 1 year ago

patrick-nicodemus commented 1 year ago

I am unable to install this program on either Windows or Linux using Python 3.11.

In windows, I get the following error. The most relevant part seems to be:

The C compiler

          "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe"

        is not able to compile a simple test program.

The error is more specifically:

C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003: The specified task executable "CL.exe" could not be run. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.dir\Debug\cmTC_244d2.tlog'. [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]

There may be problems with my installation of Microsoft Visual Studio 2022 or configuration of CMake but after much googling I cannot figure out how I should configure CMake to get this to work, and I think it might be the Python install script. The precompiled binaries work out of the box for Python 3.9 and Python 3.10 so I have not experimented with CMake there.

Full error:

Collecting potpourri3d
  Downloading potpourri3d-0.0.8-cp310-cp310-win_amd64.whl (485 kB)
     ---------------------------------------- 485.9/485.9 kB 3.8 MB/s eta 0:00:00
Requirement already satisfied: numpy in c:\users\patn\appdata\local\miniconda3\envs\3.10\lib\site-packages (from potpourri3d) (1.25.0)
Requirement already satisfied: scipy in c:\users\patn\appdata\local\miniconda3\envs\3.10\lib\site-packages (from potpourri3d) (1.10.1)
Installing collected packages: potpourri3d
Successfully installed potpourri3d-0.0.8
(3.10) PS C:\> conda deactivate
(base) PS C:\> pip install potpourri3d
Collecting potpourri3d
  Using cached potpourri3d-0.0.8.tar.gz (1.4 MB)
  Preparing metadata (setup.py) ... done
Collecting numpy (from potpourri3d)
  Downloading numpy-1.25.1-cp311-cp311-win_amd64.whl (15.0 MB)
     ---------------------------------------- 15.0/15.0 MB 23.4 MB/s eta 0:00:00
Collecting scipy (from potpourri3d)
  Using cached scipy-1.11.1-cp311-cp311-win_amd64.whl (44.0 MB)
Building wheels for collected packages: potpourri3d
  Building wheel for potpourri3d (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [150 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\potpourri3d
      copying src\potpourri3d\core.py -> build\lib.win-amd64-cpython-311\potpourri3d
      copying src\potpourri3d\io.py -> build\lib.win-amd64-cpython-311\potpourri3d
      copying src\potpourri3d\mesh.py -> build\lib.win-amd64-cpython-311\potpourri3d
      copying src\potpourri3d\point_cloud.py -> build\lib.win-amd64-cpython-311\potpourri3d
      copying src\potpourri3d\__init__.py -> build\lib.win-amd64-cpython-311\potpourri3d
      running build_ext
      C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\setup.py:30: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
        cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', out.decode()).group(1))
      Running cmake configure command: cmake C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\lib.win-amd64-cpython-311 -DPYTHON_EXECUTABLE=C:\Users\patn\AppData\Local\miniconda3\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\lib.win-amd64-cpython-311 -A x64 -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
      -- Building for: Visual Studio 17 2022
      CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 3.5 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.

      -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19045.
      -- The C compiler identification is MSVC 19.34.31933.0
      -- The CXX compiler identification is MSVC 19.34.31933.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - failed
      -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe
      -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe - broken
      CMake Error at C:/Program Files/CMake/share/cmake-3.27/Modules/CMakeTestCCompiler.cmake:67 (message):
        The C compiler

          "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe"

        is not able to compile a simple test program.

        It fails with the following output:

          Change Dir: 'C:/Users/patn/AppData/Local/Temp/pip-install-r9xhx066/potpourri3d_6d90223e14de4ab7b036116bf0105c08/build/temp.win-amd64-cpython-311/Release/CMakeFiles/CMakeScratch/TryCompile-0tiggc'

          Run Build Command(s): "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/amd64/MSBuild.exe" cmTC_244d2.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=17.0 /v:n
          MSBuild version 17.4.0+18d5aef85 for .NET Framework
          Build started 7/20/2023 12:00:40 PM.
          Project "C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj" on node 1 (default targets).
          PrepareForBuild:
            Creating directory "cmTC_244d2.dir\Debug\".
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(527,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
            Creating directory "C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\Debug\".
            Creating directory "cmTC_244d2.dir\Debug\cmTC_244d2.tlog\".
          InitializeBuildStatus:
            Creating "cmTC_244d2.dir\Debug\cmTC_244d2.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
          ClCompile:
            C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64\CL.exe /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_244d2.dir\Debug\\" /Fd"cmTC_244d2.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\testCCompiler.c"
            Microsoft (R) C/C++ Optimizing Compiler Version 19.34.31933 for x64
            testCCompiler.c
            Copyright (C) Microsoft Corporation.  All rights reserved.
            cl /c /Zi /W3 /WX- /diagnostics:column /Od /Ob0 /D _MBCS /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_244d2.dir\Debug\\" /Fd"cmTC_244d2.dir\Debug\vc143.pdb" /external:W3 /Gd /TC /errorReport:queue "C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\testCCompiler.c"
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003: The specified task executable "CL.exe" could not be run. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.dir\Debug\cmTC_244d2.tlog'. [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at System.IO.FileSystemEnumerableIterator`1.CommonInit() [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost) [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at System.IO.Directory.GetFiles(String path, String searchPattern) [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at Microsoft.Build.Utilities.TrackedDependencies.ExpandWildcards(ITaskItem[] expand) [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at Microsoft.Build.CPPTasks.TrackedVCToolTask.DeleteFiles(ITaskItem[] filesToDelete) [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at Microsoft.Build.CPPTasks.CL.PostExecuteTool(Int32 exitCode) [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at Microsoft.Build.CPPTasks.TrackedVCToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute() [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          Done Building Project "C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj" (default targets) -- FAILED.

          Build FAILED.

          "C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj" (default target) (1) ->
          (PrepareForBuild target) ->
            C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(527,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]

          "C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj" (default target) (1) ->
          (ClCompile target) ->
            C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003: The specified task executable "CL.exe" could not be run. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.dir\Debug\cmTC_244d2.tlog'. [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at System.IO.FileSystemEnumerableIterator`1.CommonInit() [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost) [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at System.IO.Directory.GetFiles(String path, String searchPattern) [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at Microsoft.Build.Utilities.TrackedDependencies.ExpandWildcards(ITaskItem[] expand) [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at Microsoft.Build.CPPTasks.TrackedVCToolTask.DeleteFiles(ITaskItem[] filesToDelete) [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at Microsoft.Build.CPPTasks.CL.PostExecuteTool(Int32 exitCode) [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at Microsoft.Build.CPPTasks.TrackedVCToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]
          C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(703,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute() [C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\build\temp.win-amd64-cpython-311\Release\CMakeFiles\CMakeScratch\TryCompile-0tiggc\cmTC_244d2.vcxproj]

              1 Warning(s)
              1 Error(s)

          Time Elapsed 00:00:00.61

        CMake will not be able to correctly generate this project.
      Call Stack (most recent call first):
        CMakeLists.txt:2 (project)

      -- Configuring incomplete, errors occurred!
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\setup.py", line 111, in <module>
          main()
        File "C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\setup.py", line 91, in main
          setup(
        File "C:\Users\patn\AppData\Local\miniconda3\Lib\site-packages\setuptools\__init__.py", line 107, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\patn\AppData\Local\miniconda3\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "C:\Users\patn\AppData\Local\miniconda3\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
          dist.run_commands()
        File "C:\Users\patn\AppData\Local\miniconda3\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "C:\Users\patn\AppData\Local\miniconda3\Lib\site-packages\setuptools\dist.py", line 1244, in run_command
          super().run_command(command)
        File "C:\Users\patn\AppData\Local\miniconda3\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "C:\Users\patn\AppData\Local\miniconda3\Lib\site-packages\wheel\bdist_wheel.py", line 325, in run
          self.run_command("build")
        File "C:\Users\patn\AppData\Local\miniconda3\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "C:\Users\patn\AppData\Local\miniconda3\Lib\site-packages\setuptools\dist.py", line 1244, in run_command
          super().run_command(command)
        File "C:\Users\patn\AppData\Local\miniconda3\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "C:\Users\patn\AppData\Local\miniconda3\Lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run
          self.run_command(cmd_name)
        File "C:\Users\patn\AppData\Local\miniconda3\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "C:\Users\patn\AppData\Local\miniconda3\Lib\site-packages\setuptools\dist.py", line 1244, in run_command
          super().run_command(command)
        File "C:\Users\patn\AppData\Local\miniconda3\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\setup.py", line 35, in run
          self.build_extension(ext)
        File "C:\Users\patn\AppData\Local\Temp\pip-install-r9xhx066\potpourri3d_6d90223e14de4ab7b036116bf0105c08\setup.py", line 69, in build_extension
          subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
        File "C:\Users\patn\AppData\Local\miniconda3\Lib\subprocess.py", line 413, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\patn\\AppData\\Local\\Temp\\pip-install-r9xhx066\\potpourri3d_6d90223e14de4ab7b036116bf0105c08', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\patn\\AppData\\Local\\Temp\\pip-install-r9xhx066\\potpourri3d_6d90223e14de4ab7b036116bf0105c08\\build\\lib.win-amd64-cpython-311', '-DPYTHON_EXECUTABLE=C:\\Users\\patn\\AppData\\Local\\miniconda3\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\patn\\AppData\\Local\\Temp\\pip-install-r9xhx066\\potpourri3d_6d90223e14de4ab7b036116bf0105c08\\build\\lib.win-amd64-cpython-311', '-A', 'x64', '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON']' returned non-zero exit status 1.

I am also not able to install it on Linux. The error message here seems much more likely to be a Python 3.11 compatibility issue, perhaps due to a change in the C API? This is on Ubuntu 22.04 (running in WSL2). I have also tried it in a Docker container.

[ 96%] Building CXX object CMakeFiles/potpourri3d_bindings.dir/src/cpp/io.cpp.o
      /usr/bin/c++ -DNOMINMAX -D_USE_MATH_DEFINES -Dpotpourri3d_bindings_EXPORTS -I/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/potpourri3d_bindings -I/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/src/cpp -I/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/geometry-central/src/../include -I/usr/local/include/eigen3 -I/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/geometry-central/deps/nanort/include -I/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/geometry-central/deps/nanoflann/include -I/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/geometry-central/deps/happly -isystem /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include -isystem /home/patn/miniconda3/envs/cajal-3.11/include/python3.11 -DVERSION_INFO=\"0.0.8\" -O3 -DNDEBUG -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -MD -MT CMakeFiles/potpourri3d_bindings.dir/src/cpp/core.cpp.o -MF CMakeFiles/potpourri3d_bindings.dir/src/cpp/core.cpp.o.d -o CMakeFiles/potpourri3d_bindings.dir/src/cpp/core.cpp.o -c /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/src/cpp/core.cpp
      /usr/bin/c++ -DNOMINMAX -D_USE_MATH_DEFINES -Dpotpourri3d_bindings_EXPORTS -I/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/potpourri3d_bindings -I/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/src/cpp -I/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/geometry-central/src/../include -I/usr/local/include/eigen3 -I/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/geometry-central/deps/nanort/include -I/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/geometry-central/deps/nanoflann/include -I/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/geometry-central/deps/happly -isystem /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include -isystem /home/patn/miniconda3/envs/cajal-3.11/include/python3.11 -DVERSION_INFO=\"0.0.8\" -O3 -DNDEBUG -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -MD -MT CMakeFiles/potpourri3d_bindings.dir/src/cpp/io.cpp.o -MF CMakeFiles/potpourri3d_bindings.dir/src/cpp/io.cpp.o.d -o CMakeFiles/potpourri3d_bindings.dir/src/cpp/io.cpp.o -c /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/src/cpp/io.cpp
      In file included from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/cast.h:16,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pybind11.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/numpy.h:12,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/eigen.h:18,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/src/cpp/core.h:5,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/src/cpp/core.cpp:1:
      /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/detail/type_caster_base.h: In function ‘std::string pybind11::detail::error_string()’:
      /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/detail/type_caster_base.h:482:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        482 |             frame = frame->f_back;
            |                          ^~
      In file included from /home/patn/miniconda3/envs/cajal-3.11/include/python3.11/Python.h:42,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/detail/common.h:186,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/cast.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pybind11.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/numpy.h:12,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/eigen.h:18,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/src/cpp/core.h:5,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/src/cpp/core.cpp:1:
      /home/patn/miniconda3/envs/cajal-3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/cast.h:16,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pybind11.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/numpy.h:12,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/eigen.h:18,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/src/cpp/io.cpp:14:
      /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/detail/type_caster_base.h: In function ‘std::string pybind11::detail::error_string()’:
      /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/detail/type_caster_base.h:482:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        482 |             frame = frame->f_back;
            |                          ^~
      In file included from /home/patn/miniconda3/envs/cajal-3.11/include/python3.11/Python.h:42,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/detail/common.h:186,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/cast.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pybind11.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/numpy.h:12,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/eigen.h:18,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/src/cpp/io.cpp:14:
      /home/patn/miniconda3/envs/cajal-3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /home/patn/miniconda3/envs/cajal-3.11/include/python3.11/Python.h:38,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/detail/common.h:186,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/cast.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pybind11.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/numpy.h:12,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/eigen.h:18,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/src/cpp/core.h:5,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/src/cpp/core.cpp:1:
      /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::detail::get_type_override(const void*, const pybind11::detail::type_info*, const char*)’:
      /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pybind11.h:2348:29: error: ‘PyCodeObject’ {aka ‘struct PyCodeObject’} has no member named ‘co_varnames’; did you mean ‘co_names’?
       2348 |                     locals, PyTuple_GET_ITEM(f_code->co_varnames, 0)
            |                             ^~~~~~~~~~~~~~~~
      In file included from /home/patn/miniconda3/envs/cajal-3.11/include/python3.11/Python.h:38,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/detail/common.h:186,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/cast.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pybind11.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/numpy.h:12,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/eigen.h:18,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/src/cpp/io.cpp:14:
      /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::detail::get_type_override(const void*, const pybind11::detail::type_info*, const char*)’:
      /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pybind11.h:2348:29: error: ‘PyCodeObject’ {aka ‘struct PyCodeObject’} has no member named ‘co_varnames’; did you mean ‘co_names’?
       2348 |                     locals, PyTuple_GET_ITEM(f_code->co_varnames, 0)
            |                             ^~~~~~~~~~~~~~~~
      In file included from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/cast.h:16,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pybind11.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/numpy.h:12,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/eigen.h:18,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/src/cpp/mesh.cpp:14:
      /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/detail/type_caster_base.h: In function ‘std::string pybind11::detail::error_string()’:
      /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/detail/type_caster_base.h:482:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
        482 |             frame = frame->f_back;
            |                          ^~
      In file included from /home/patn/miniconda3/envs/cajal-3.11/include/python3.11/Python.h:42,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/detail/common.h:186,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/cast.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pybind11.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/numpy.h:12,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/eigen.h:18,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/src/cpp/mesh.cpp:14:
      /home/patn/miniconda3/envs/cajal-3.11/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
         22 | typedef struct _frame PyFrameObject;
            |                ^~~~~~
      In file included from /home/patn/miniconda3/envs/cajal-3.11/include/python3.11/Python.h:38,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/detail/common.h:186,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pytypes.h:12,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/cast.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/attr.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pybind11.h:13,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/numpy.h:12,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/eigen.h:18,
                       from /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/src/cpp/mesh.cpp:14:
      /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::detail::get_type_override(const void*, const pybind11::detail::type_info*, const char*)’:
      /tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/deps/pybind11/include/pybind11/pybind11.h:2348:29: error: ‘PyCodeObject’ {aka ‘struct PyCodeObject’} has no member named ‘co_varnames’; did you mean ‘co_names’?
       2348 |                     locals, PyTuple_GET_ITEM(f_code->co_varnames, 0)
            |                             ^~~~~~~~~~~~~~~~
      gmake[2]: *** [CMakeFiles/potpourri3d_bindings.dir/build.make:79: CMakeFiles/potpourri3d_bindings.dir/src/cpp/core.cpp.o] Error 1
      gmake[2]: *** Waiting for unfinished jobs....
      gmake[2]: *** [CMakeFiles/potpourri3d_bindings.dir/build.make:93: CMakeFiles/potpourri3d_bindings.dir/src/cpp/io.cpp.o] Error 1
      gmake[2]: *** [CMakeFiles/potpourri3d_bindings.dir/build.make:107: CMakeFiles/potpourri3d_bindings.dir/src/cpp/mesh.cpp.o] Error 1
      gmake[2]: Leaving directory '/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/build/temp.linux-x86_64-cpython-311'
      gmake[1]: *** [CMakeFiles/Makefile2:154: CMakeFiles/potpourri3d_bindings.dir/all] Error 2
      gmake[1]: Leaving directory '/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/build/temp.linux-x86_64-cpython-311'
      gmake: *** [Makefile:94: all] Error 2

      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/setup.py", line 111, in <module>
          main()
        File "/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/setup.py", line 91, in main
          setup(
        File "/home/patn/.local/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/patn/.local/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/home/patn/.local/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/home/patn/.local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/home/patn/.local/lib/python3.11/site-packages/setuptools/dist.py", line 1208, in run_command
          super().run_command(command)
        File "/home/patn/.local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/home/patn/miniconda3/envs/cajal-3.11/lib/python3.11/site-packages/wheel/bdist_wheel.py", line 325, in run
          self.run_command("build")
        File "/home/patn/.local/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/home/patn/.local/lib/python3.11/site-packages/setuptools/dist.py", line 1208, in run_command
          super().run_command(command)
        File "/home/patn/.local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/home/patn/.local/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 132, in run
          self.run_command(cmd_name)
        File "/home/patn/.local/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/home/patn/.local/lib/python3.11/site-packages/setuptools/dist.py", line 1208, in run_command
          super().run_command(command)
        File "/home/patn/.local/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/setup.py", line 35, in run
          self.build_extension(ext)
        File "/tmp/pip-install-nvw0msc6/potpourri3d_9bc38efbd0494ee3b07a074a0db6b5e9/setup.py", line 73, in build_extension
          subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
        File "/home/patn/miniconda3/envs/cajal-3.11/lib/python3.11/subprocess.py", line 413, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j3']' returned non-zero exit status 2.
nmwsharp commented 1 year ago

Hi! Thanks for posting this. This error is happening because there is no matching precompiled binary wheel available for your system (see the list here https://pypi.org/project/potpourri3d/#files). So it is falling back on trying to compile on your local machine.

We could try to debug why it's failing to compile on your local machine, but really the solution is I should generate wheels for Python 3.11 so you don't have to :) I will try to do that real quick.

nmwsharp commented 1 year ago

The builds are churning here: https://github.com/nmwsharp/potpourri3d/actions/runs/5614088468/job/15211471662

Best case (if I didn't mess anything up), it'll be ~2hrs before they percolate to pypi. Then pip install should fetch the wheel on your machines and 'just work'.

nmwsharp commented 1 year ago

Ok, new builds are uploaded, installing the latest version from a binary wheel should 'just work'. Be sure you are getting version >= 1.0.0. Please reopen if it still doesn't work.

patrick-nicodemus commented 1 year ago

I really appreciate it, many thanks. 👍