You are not logged in.
I'm running a project using poetry to isolate and manage dependencies.
The python version that I'm using on poetry is 3.9.20, as projet subdependencies require that version of python
When running poetry install, I'm receiving an error while installing xmlsec on version 1.3.13:
- Installing xmlsec (1.3.13): Failed
ChefBuildError
Backend subprocess exited when trying to invoke build_wheel
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
Traceback (most recent call last):
File "/tmp/tmp3rr37sfq/.venv/lib/python3.9/site-packages/setuptools_scm/_integration/pyproject_reading.py", line 36, in read_pyproject
section = defn.get("tool", {})[tool_name]
KeyError: 'setuptools_scm'
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-39/xmlsec
copying src/xmlsec/__init__.pyi -> build/lib.linux-x86_64-cpython-39/xmlsec
copying src/xmlsec/constants.pyi -> build/lib.linux-x86_64-cpython-39/xmlsec
copying src/xmlsec/template.pyi -> build/lib.linux-x86_64-cpython-39/xmlsec
copying src/xmlsec/tree.pyi -> build/lib.linux-x86_64-cpython-39/xmlsec
copying src/xmlsec/py.typed -> build/lib.linux-x86_64-cpython-39/xmlsec
running build_ext
building 'xmlsec' extension
creating build/temp.linux-x86_64-cpython-39/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -fPIC -DXMLSEC_CRYPTO_DYNAMIC_LOADING=1 -D__XMLSEC_FUNCTION__=__func__ -DXMLSEC_NO_FTP=1 -DXMLSEC_NO_HTTP=1 -DXMLSEC_NO_MD5=1 -DXMLSEC_NO_RIPEMD160=1 -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_GOST2012=1 -DXMLSEC_DL_LIBLTDL=1 -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.3.13 -I/usr/include/xmlsec1 -I/usr/include/libxml2 -I/tmp/tmp3rr37sfq/.venv/lib/python3.9/site-packages/lxml/includes -I/tmp/tmp3rr37sfq/.venv/lib/python3.9/site-packages/lxml -I/tmp/tmp3rr37sfq/.venv/lib/python3.9/site-packages/lxml/includes/libxml -I/tmp/tmp3rr37sfq/.venv/lib/python3.9/site-packages/lxml/includes/extlibs -I/tmp/tmp3rr37sfq/.venv/lib/python3.9/site-packages/lxml/includes/libexslt -I/tmp/tmp3rr37sfq/.venv/lib/python3.9/site-packages/lxml/includes/libxslt -I/tmp/tmp3rr37sfq/.venv/include -I/home/gbaraujosouza/.pyenv/versions/3.9.20/include/python3.9 -c /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c -o build/temp.linux-x86_64-cpython-39/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.o -g -std=c99 -fPIC -fno-strict-aliasing -Wno-error=declaration-after-statement -Werror=implicit-function-declaration -Os
In file included from /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:10:
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c: In function ‘PyXmlSec_ConstantsModule_Init’:
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:304:51: error: ‘xmlSecSoap11Ns’ undeclared (first use in this function); did you mean ‘xmlSecEnc11Ns’?
304 | tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \
| ^~~~~~
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/common.h:21:23: note: in definition of macro ‘DO_JOIN2’
21 | #define DO_JOIN2(X,Y) X##Y
| ^
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/common.h:19:19: note: in expansion of macro ‘DO_JOIN1’
19 | #define JOIN(X,Y) DO_JOIN1(X,Y)
| ^~~~~~~~
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:304:46: note: in expansion of macro ‘JOIN’
304 | tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \
| ^~~~
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:319:5: note: in expansion of macro ‘PYXMLSEC_ADD_NS_CONSTANT’
319 | PYXMLSEC_ADD_NS_CONSTANT(Soap11Ns, "SOAP11");
| ^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:304:51: note: each undeclared identifier is reported only once for each function it appears in
304 | tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \
| ^~~~~~
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/common.h:21:23: note: in definition of macro ‘DO_JOIN2’
21 | #define DO_JOIN2(X,Y) X##Y
| ^
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/common.h:19:19: note: in expansion of macro ‘DO_JOIN1’
19 | #define JOIN(X,Y) DO_JOIN1(X,Y)
| ^~~~~~~~
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:304:46: note: in expansion of macro ‘JOIN’
304 | tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \
| ^~~~
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:319:5: note: in expansion of macro ‘PYXMLSEC_ADD_NS_CONSTANT’
319 | PYXMLSEC_ADD_NS_CONSTANT(Soap11Ns, "SOAP11");
| ^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:304:51: error: ‘xmlSecSoap12Ns’ undeclared (first use in this function); did you mean ‘xmlSecXPath2Ns’?
304 | tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \
| ^~~~~~
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/common.h:21:23: note: in definition of macro ‘DO_JOIN2’
21 | #define DO_JOIN2(X,Y) X##Y
| ^
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/common.h:19:19: note: in expansion of macro ‘DO_JOIN1’
19 | #define JOIN(X,Y) DO_JOIN1(X,Y)
| ^~~~~~~~
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:304:46: note: in expansion of macro ‘JOIN’
304 | tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \
| ^~~~
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:320:5: note: in expansion of macro ‘PYXMLSEC_ADD_NS_CONSTANT’
320 | PYXMLSEC_ADD_NS_CONSTANT(Soap12Ns, "SOAP12");
| ^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:433:31: error: ‘xmlSecKeyDataEcdsaId’ undeclared (first use in this function); did you mean ‘xmlSecKeyDataDsaId’?
433 | tmp = PyXmlSec_KeyDataNew(xmlSec ## name ## Id); \
| ^~~~~~
/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:450:5: note: in expansion of macro ‘PYXMLSEC_ADD_KEYDATA_CONSTANT’
450 | PYXMLSEC_ADD_KEYDATA_CONSTANT(KeyDataEcdsa, "ECDSA")
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
at ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/chef.py:164 in _prepare
160│
161│ error = ChefBuildError("\n\n".join(message_parts))
162│
163│ if error is not None:
→ 164│ raise error from None
165│
166│ return path
167│
168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
I found solutions to other distros like Ubuntu in here: https://stackoverflow.com/questions/638 … ip-command
And also solution to users that uses homebrew (which is not my case) in here: https://stackoverflow.com/questions/760 … 8#76018398
It was reported a similar issue in this post but without poetry and using an old version of python(2.7)
I tried to install the dependencies mentioned and follow the sugestions on the thread, but still no solution.
This is my first post here in the forum. Let me know if you need any more information
Offline