Building wheel for pygeodiff (pyproject.toml) did not run successfully
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- cmake, python
- 领域
- build-system
调研方向
在报告的 macOS 环境中使用 Python 3.12 重现 requirements.txt 的失败,然后检查 pygeodiff 在 pyproject.toml 和 CMakeLists.txt 中的构建配置。当依赖项能够成功安装且 wheel 构建不再失败时,工作即告完成。
由索引模型根据 Issue 内容生成。
描述
(venv) gisforst@MacBook-Pro-von-GIS WWW_Jagd % python -m pip install -r requirements.txt
Collecting pyyaml (from -r requirements.txt (line 1))
Using cached PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl.metadata (2.1 kB)
Collecting mergin-client==0.9.0 (from -r requirements.txt (line 2))
Using cached mergin_client-0.9.0-py3-none-any.whl
Collecting python-dateutil==2.8.2 (from mergin-client==0.9.0->-r requirements.txt (line 2))
Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting pygeodiff==2.0.2 (from mergin-client==0.9.0->-r requirements.txt (line 2))
Using cached pygeodiff-2.0.2.tar.gz (204 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pytz==2022.1 (from mergin-client==0.9.0->-r requirements.txt (line 2))
Using cached pytz-2022.1-py2.py3-none-any.whl (503 kB)
Collecting click==8.1.3 (from mergin-client==0.9.0->-r requirements.txt (line 2))
Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting six>=1.5 (from python-dateutil==2.8.2->mergin-client==0.9.0->-r requirements.txt (line 2))
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Using cached PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl (178 kB)
Building wheels for collected packages: pygeodiff
Building wheel for pygeodiff (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pygeodiff (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [183 lines of output]
--------------------------------------------------------------------------------
-- Trying 'Ninja' generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
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.
Not searching for unused variables given on the command line.
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.
-- Configuring incomplete, errors occurred!
--
-------
------------
-----------------
----------------------
---------------------------
--------------------------------
-- Trying 'Ninja' generator - failure
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Trying 'Unix Makefiles' generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
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.
Not searching for unused variables given on the command line.
-- The C compiler identification is AppleClang 15.0.0.15000100
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is AppleClang 15.0.0.15000100
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (1.6s)
-- Generating done (0.0s)
-- Build files have been written to: /private/var/folders/98/nl310yzj0_j1d8077jdc9hmm0000gn/T/pip-install-yn94uyuy/pygeodiff_c4b69866109b4c4898b7b2a9b429b214/_cmake_test_compile/build
--
-------
------------
-----------------
----------------------
---------------------------
--------------------------------
-- Trying 'Unix Makefiles' generator - success
--------------------------------------------------------------------------------
Configuring Project
Working directory:
/private/var/folders/98/nl310yzj0_j1d8077jdc9hmm0000gn/T/pip-install-yn94uyuy/pygeodiff_c4b69866109b4c4898b7b2a9b429b214/_skbuild/macosx-14.0-x86_64-3.12/cmake-build
Command:
/private/var/folders/98/nl310yzj0_j1d8077jdc9hmm0000gn/T/pip-build-env-tmwdjfis/overlay/lib/python3.12/site-packages/cmake/data/bin/cmake /private/var/folders/98/nl310yzj0_j1d8077jdc9hmm0000gn/T/pip-install-yn94uyuy/pygeodiff_c4b69866109b4c4898b7b2a9b429b214/geodiff -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/private/var/folders/98/nl310yzj0_j1d8077jdc9hmm0000gn/T/pip-install-yn94uyuy/pygeodiff_c4b69866109b4c4898b7b2a9b429b214/_skbuild/macosx-14.0-x86_64-3.12/cmake-install -DPYTHON_VERSION_STRING:STRING=3.12.0 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/private/var/folders/98/nl310yzj0_j1d8077jdc9hmm0000gn/T/pip-build-env-tmwdjfis/overlay/lib/python3.12/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/Users/gisforst/PycharmProjects/WWW_Jagd/venv/bin/python -DPYTHON_INCLUDE_DIR:PATH=/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -DPYTHON_LIBRARY:PATH=/Library/Frameworks/Python.framework/Versions/3.12/lib/libpython3.12.dylib -DPython_EXECUTABLE:PATH=/Users/gisforst/PycharmProjects/WWW_Jagd/venv/bin/python -DPython_ROOT_DIR:PATH=/Users/gisforst/PycharmProjects/WWW_Jagd/venv -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -DPython3_EXECUTABLE:PATH=/Users/gisforst/PycharmProjects/WWW_Jagd/venv/bin/python -DPython3_ROOT_DIR:PATH=/Users/gisforst/PycharmProjects/WWW_Jagd/venv -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -DENABLE_TESTS:BOOL=OFF -DENABLE_COVERAGE:BOOL=OFF -DBUILD_TOOLS:BOOL=OFF -DPEDANTIC:BOOL=OFF -DPYGEODIFFVERSION=2.0.2 -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=14.0 -DCMAKE_OSX_ARCHITECTURES:STRING=x86_64 -DCMAKE_BUILD_TYPE:STRING=Release
Not searching for unused variables given on the command line.
-- The C compiler identification is AppleClang 15.0.0.15000100
-- The CXX compiler identification is AppleClang 15.0.0.15000100
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The geodiff is built using scikit-build for pygeodiff Python package
CMake Warning (dev) at /private/var/folders/98/nl310yzj0_j1d8077jdc9hmm0000gn/T/pip-build-env-tmwdjfis/overlay/lib/python3.12/site-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:245 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt:29 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found PythonInterp: /Users/gisforst/PycharmProjects/WWW_Jagd/venv/bin/python (found version "3.12")
CMake Warning (dev) at /private/var/folders/98/nl310yzj0_j1d8077jdc9hmm0000gn/T/pip-build-env-tmwdjfis/overlay/lib/python3.12/site-packages/skbuild/resources/cmake/FindPythonExtensions.cmake:252 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt:29 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found PythonLibs: /Library/Frameworks/Python.framework/Versions/3.12/lib/libpython3.12.dylib (found version "3.12.0")
-- Found SQLite3: /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include (found version "3.43.2")
-- SQLite3 version: 3.43.2
-- SQLite3 include dirs: /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/include
-- SQLite3 library: /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/lib/libsqlite3.tbd
-- Determining available thread-local storage mechanism
-- Checking if __thread is supported
-- Performing Test TLS_USE_THREAD
-- Performing Test TLS_USE_THREAD - Success
-- Checking if __thread is supported - yes
-- Determining available thread-local storage mechanism - Done
-- Determining available locale mechanism
-- Checking if _create_locale is supported
-- Looking for locale.h
-- Looking for locale.h - found
-- Performing Test LOCALE_USE__CREATE_LOCALE
-- Performing Test LOCALE_USE__CREATE_LOCALE - Failed
-- Checking if _create_locale is supported - no
-- Checking if newlocale is supported
-- Looking for xlocale.h
-- Looking for xlocale.h - found
-- Performing Test LOCALE_USE_NEWLOCALE
-- Performing Test LOCALE_USE_NEWLOCALE - Success
-- Checking if newlocale is supported - yes
-- Determining available locale mechanism - Done
-- Configuring done (5.4s)
-- Generating done (0.0s)
-- Build files have been written to: /private/var/folders/98/nl310yzj0_j1d8077jdc9hmm0000gn/T/pip-install-yn94uyuy/pygeodiff_c4b69866109b4c4898b7b2a9b429b214/_skbuild/macosx-14.0-x86_64-3.12/cmake-build
[ 3%] Building CXX object CMakeFiles/pygeodiff-2.0.2-python.dir/src/geodiff.cpp.o
[ 6%] Building CXX object CMakeFiles/pygeodiff-2.0.2-python.dir/src/geodiffutils.cpp.o
[ 9%] Building CXX object CMakeFiles/pygeodiff-2.0.2-python.dir/src/geodiffrebase.cpp.o
[ 12%] Building CXX object CMakeFiles/pygeodiff-2.0.2-python.dir/src/geodifflogger.cpp.o
[ 16%] Building CXX object CMakeFiles/pygeodiff-2.0.2-python.dir/src/geodiffcontext.cpp.o
[ 19%] Building CXX object CMakeFiles/pygeodiff-2.0.2-python.dir/src/changesetconcat.cpp.o
[ 22%] Building CXX object CMakeFiles/pygeodiff-2.0.2-python.dir/src/changesetreader.cpp.o
[ 25%] Building CXX object CMakeFiles/pygeodiff-2.0.2-python.dir/src/changesetutils.cpp.o
[ 29%] Building CXX object CMakeFiles/pygeodiff-2.0.2-python.dir/src/changesetwriter.cpp.o
[ 32%] Building CXX object CMakeFiles/pygeodiff-2.0.2-python.dir/src/driver.cpp.o
[ 35%] Building CXX object CMakeFiles/pygeodiff-2.0.2-python.dir/src/tableschema.cpp.o
[ 38%] Building CXX object CMakeFiles/pygeodiff-2.0.2-python.dir/src/drivers/sqlitedriver.cpp.o
[ 41%] Building CXX object CMakeFiles/pygeodiff-2.0.2-python.dir/src/drivers/sqliteutils.cpp.o
/private/var/folders/98/nl310yzj0_j1d8077jdc9hmm0000gn/T/pip-install-yn94uyuy/pygeodiff_c4b69866109b4c4898b7b2a9b429b214/geodiff/src/drivers/sqliteutils.cpp:229:12: error: use of undeclared identifier 'sqlite3_enable_load_extension'
int rc = sqlite3_enable_load_extension( db->get(), 1 );
^
1 error generated.
make[2]: *** [CMakeFiles/pygeodiff-2.0.2-python.dir/src/drivers/sqliteutils.cpp.o] Error 1
make[1]: *** [CMakeFiles/pygeodiff-2.0.2-python.dir/all] Error 2
make: *** [all] Error 2
Traceback (most recent call last):
File "/private/var/folders/98/nl310yzj0_j1d8077jdc9hmm0000gn/T/pip-build-env-tmwdjfis/overlay/lib/python3.12/site-packages/skbuild/setuptools_wrap.py", line 674, in setup
cmkr.make(make_args, install_target=cmake_install_target, env=env)
File "/private/var/folders/98/nl310yzj0_j1d8077jdc9hmm0000gn/T/pip-build-env-tmwdjfis/overlay/lib/python3.12/site-packages/skbuild/cmaker.py", line 697, in make
self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
File "/private/var/folders/98/nl310yzj0_j1d8077jdc9hmm0000gn/T/pip-build-env-tmwdjfis/overlay/lib/python3.12/site-packages/skbuild/cmaker.py", line 742, in make_impl
raise SKBuildError(msg)
An error occurred while building with CMake.
Command:
/private/var/folders/98/nl310yzj0_j1d8077jdc9hmm0000gn/T/pip-build-env-tmwdjfis/overlay/lib/python3.12/site-packages/cmake/data/bin/cmake --build . --target install --config Release --
Install target:
install
Source directory:
/private/var/folders/98/nl310yzj0_j1d8077jdc9hmm0000gn/T/pip-install-yn94uyuy/pygeodiff_c4b69866109b4c4898b7b2a9b429b214
Working directory:
/private/var/folders/98/nl310yzj0_j1d8077jdc9hmm0000gn/T/pip-install-yn94uyuy/pygeodiff_c4b69866109b4c4898b7b2a9b429b214/_skbuild/macosx-14.0-x86_64-3.12/cmake-build
Please check the install target is valid and see CMake's output for more information.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pygeodiff
Failed to build pygeodiff
ERROR: Could not build wheels for pygeodiff, which is required to install pyproject.toml-based projects
- 主要语言
- Python
- 星标
- 12
- 派生
- 6
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MerginMaps/work-packages 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
MerginMaps/work-packages#74 · 4 条评论 ·
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
MerginMaps/work-packages#73 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 42/100
MerginMaps/work-packages#72 · 1 条评论 ·
-
Work-packages <-> Media sync synchronization issue可能重新可做 @JanCaha 于 461 天前认领,目前没有进行中的 PR。 未关闭
MerginMaps/work-packages#69 · 2 条评论 · 已指派 1 人 ·
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
MerginMaps/work-packages#67 ·
查看 MerginMaps/work-packages 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
521xueweihan/HelloGitHub#4115 ·
-
get_lldp_neighbors_detail: query asks for 'max-address' (typo for 'mac-address'), so remote_chassis_id is always empty可能已有人在做 @Jah-yee 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 88/100
-
lesson-submission pending-review
难度 1/5 1 小时以内 新手友好度 74/100
Ikalus1988/MisakaNet#3899 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
aws-samples/sample-per-model-bedrock#549 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100