Skip to content

this is uninstalable on linux and windows #387

Open
@developer992

Description

on linux:

9.451
9.451   ChefBuildError
9.451
9.451   Backend subprocess exited when trying to invoke build_wheel
9.451
9.451   WARNING setuptools_scm._integration.setuptools pyproject.toml does not contain a tool.setuptools_scm section
9.451   WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
9.451   running bdist_wheel
9.451   running build
9.451   running build_py
9.451   creating build
9.451   creating build/lib.linux-x86_64-cpython-311
9.451   creating build/lib.linux-x86_64-cpython-311/xmlsec
9.451   copying src/xmlsec/tree.pyi -> build/lib.linux-x86_64-cpython-311/xmlsec
9.451   copying src/xmlsec/constants.pyi -> build/lib.linux-x86_64-cpython-311/xmlsec
9.451   copying src/xmlsec/template.pyi -> build/lib.linux-x86_64-cpython-311/xmlsec
9.451   copying src/xmlsec/__init__.pyi -> build/lib.linux-x86_64-cpython-311/xmlsec
9.451   copying src/xmlsec/py.typed -> build/lib.linux-x86_64-cpython-311/xmlsec
9.451   warning: build_py: byte-compiling is disabled, skipping.
9.451
9.451   running build_ext
9.451   error: Unable to invoke pkg-config.
9.451
9.451
9.451   at /opt/poetry/venv/lib/python3.11/site-packages/poetry/installation/chef.py:147 in _prepare
9.460       143│
9.460       144│                 error = ChefBuildError("\n\n".join(message_parts))
9.460       145│
9.460       146│             if error is not None:
9.460     → 147│                 raise error from None
9.460       148│
9.461       149│             return path
9.461       150│
9.461       151│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
9.461
9.461 Note: This error originates from the build backend, and is likely not a problem with poetry but with xmlsec (1.3.13) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "xmlsec (==1.3.13)"'.
9.461

on windows:

  C:\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\build\tmp\libs\libxml2-2.9.4.win64\include\libxml/xmlversion.h(277): warning C4005: 'LIBXML_ICONV_ENABLED': macro redefinition
  C:\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\build\tmp\libs\libxml2-2.9.4.win64\include\libxml/xmlversion.h(277): note: 'LIBXML_ICONV_ENABLED' previously declared on the command line
  C:\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\build\tmp\libs\xmlsec-1.2.24.win64\include\xmlsec/xmlsec.h(99): warning C4005: 'XMLSEC_CRYPTO': macro redefinition
  C:\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\build\tmp\libs\xmlsec-1.2.24.win64\include\xmlsec/xmlsec.h(99): note: 'XMLSEC_CRYPTO' previously declared on the command line
  "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\build\tmp\libs\iconv-1.14.win64\lib /LIBPATH:C:\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\build\tmp\libs\libxml2-2.9.4.win64\lib /LIBPATH:C:\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\build\tmp\libs\libxslt-1.1.29.win64\lib /LIBPATH:C:\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\build\tmp\libs\openssl-1.0.1.win64\lib /LIBPATH:C:\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\build\tmp\libs\xmlsec-1.2.24.win64\lib /LIBPATH:C:\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\build\tmp\libs\zlib-1.2.8.win64\lib /LIBPATH:C:\Users\joe\AppData\Local\Temp\tmpvepdi3_0\.venv\libs /LIBPATH:C:\Users\joe\.pyenv\pyenv-win\versions\3.11.5\libs /LIBPATH:C:\Users\joe\.pyenv\pyenv-win\versions\3.11.5 /LIBPATH:C:\Users\joe\AppData\Local\Temp\tmpvepdi3_0\.venv\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" libxmlsec_a.lib libxmlsec-openssl_a.lib libeay32.lib iconv_a.lib libxslt_a.lib libexslt_a.lib libxml2_a.lib zlib.lib WS2_32.lib Advapi32.lib User32.lib Gdi32.lib Crypt32.lib /EXPORT:PyInit_xmlsec build\temp.win-amd64-cpython-311\Release\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\src\constants.obj build\temp.win-amd64-cpython-311\Release\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\src\ds.obj build\temp.win-amd64-cpython-311\Release\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\src\enc.obj build\temp.win-amd64-cpython-311\Release\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\src\exception.obj build\temp.win-amd64-cpython-311\Release\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\src\keys.obj build\temp.win-amd64-cpython-311\Release\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\src\lxml.obj build\temp.win-amd64-cpython-311\Release\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\src\main.obj build\temp.win-amd64-cpython-311\Release\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\src\template.obj build\temp.win-amd64-cpython-311\Release\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\src\tree.obj build\temp.win-amd64-cpython-311\Release\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\src\utils.obj /OUT:build\lib.win-amd64-cpython-311\xmlsec.cp311-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-311\Release\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\src\xmlsec.cp311-win_amd64.lib
  fatal error C1047: The object or library file 'C:\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\build\tmp\libs\iconv-1.14.win64\lib\iconv_a.lib' was created by a different version of the compiler than other objects like 'build\temp.win-amd64-cpython-311\Release\Users\joe\AppData\Local\Temp\tmplmibm3ti\xmlsec-1.3.13\src\constants.obj'; rebuild all objects and libraries with the same compiler
  LINK : fatal error LNK1257: code generation failed
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX86\\x64\\link.exe' failed with exit code 1257

installed VS Build Tools:

image
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions