Title: Error installing xmlsec==1.3.13 on poetry · Issue #337 · xmlsec/python-xmlsec · GitHub
Open Graph Title: Error installing xmlsec==1.3.13 on poetry · Issue #337 · xmlsec/python-xmlsec
X Title: Error installing xmlsec==1.3.13 on poetry · Issue #337 · xmlsec/python-xmlsec
Description: 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 wh...
Open Graph Description: 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 p...
X Description: 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 r...
Opengraph URL: https://github.com/xmlsec/python-xmlsec/issues/337
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error installing xmlsec==1.3.13 on poetry","articleBody":"I'm running a project using poetry to isolate and manage dependencies.\nThe python version that I'm using on poetry is 3.9.20, as projet subdependencies require that version of python\n\nWhen running poetry install, I'm receiving an error while installing xmlsec on version 1.3.13:\n```\n- Installing xmlsec (1.3.13): Failed\n\n ChefBuildError\n\n Backend subprocess exited when trying to invoke build_wheel\n\n WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'\n Traceback (most recent call last):\n File \"/tmp/tmp3rr37sfq/.venv/lib/python3.9/site-packages/setuptools_scm/_integration/pyproject_reading.py\", line 36, in read_pyproject\n section = defn.get(\"tool\", {})[tool_name]\n KeyError: 'setuptools_scm'\n running bdist_wheel\n running build\n running build_py\n creating build/lib.linux-x86_64-cpython-39/xmlsec\n copying src/xmlsec/__init__.pyi -\u003e build/lib.linux-x86_64-cpython-39/xmlsec\n copying src/xmlsec/constants.pyi -\u003e build/lib.linux-x86_64-cpython-39/xmlsec\n copying src/xmlsec/template.pyi -\u003e build/lib.linux-x86_64-cpython-39/xmlsec\n copying src/xmlsec/tree.pyi -\u003e build/lib.linux-x86_64-cpython-39/xmlsec\n copying src/xmlsec/py.typed -\u003e build/lib.linux-x86_64-cpython-39/xmlsec\n running build_ext\n building 'xmlsec' extension\n creating build/temp.linux-x86_64-cpython-39/tmp/tmp1wtqzv7k/xmlsec-1.3.13/src\n 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\n In file included from /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:10:\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c: In function ‘PyXmlSec_ConstantsModule_Init’:\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:304:51: error: ‘xmlSecSoap11Ns’ undeclared (first use in this function); did you mean ‘xmlSecEnc11Ns’?\n 304 | tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \\\n | ^~~~~~\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/common.h:21:23: note: in definition of macro ‘DO_JOIN2’\n 21 | #define DO_JOIN2(X,Y) X##Y\n | ^\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/common.h:19:19: note: in expansion of macro ‘DO_JOIN1’\n 19 | #define JOIN(X,Y) DO_JOIN1(X,Y)\n | ^~~~~~~~\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:304:46: note: in expansion of macro ‘JOIN’\n 304 | tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \\\n | ^~~~\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:319:5: note: in expansion of macro ‘PYXMLSEC_ADD_NS_CONSTANT’\n 319 | PYXMLSEC_ADD_NS_CONSTANT(Soap11Ns, \"SOAP11\");\n | ^~~~~~~~~~~~~~~~~~~~~~~~\n /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\n 304 | tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \\\n | ^~~~~~\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/common.h:21:23: note: in definition of macro ‘DO_JOIN2’\n 21 | #define DO_JOIN2(X,Y) X##Y\n | ^\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/common.h:19:19: note: in expansion of macro ‘DO_JOIN1’\n 19 | #define JOIN(X,Y) DO_JOIN1(X,Y)\n | ^~~~~~~~\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:304:46: note: in expansion of macro ‘JOIN’\n 304 | tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \\\n | ^~~~\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:319:5: note: in expansion of macro ‘PYXMLSEC_ADD_NS_CONSTANT’\n 319 | PYXMLSEC_ADD_NS_CONSTANT(Soap11Ns, \"SOAP11\");\n | ^~~~~~~~~~~~~~~~~~~~~~~~\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:304:51: error: ‘xmlSecSoap12Ns’ undeclared (first use in this function); did you mean ‘xmlSecXPath2Ns’?\n 304 | tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \\\n | ^~~~~~\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/common.h:21:23: note: in definition of macro ‘DO_JOIN2’\n 21 | #define DO_JOIN2(X,Y) X##Y\n | ^\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/common.h:19:19: note: in expansion of macro ‘DO_JOIN1’\n 19 | #define JOIN(X,Y) DO_JOIN1(X,Y)\n | ^~~~~~~~\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:304:46: note: in expansion of macro ‘JOIN’\n 304 | tmp = PyUnicode_FromString((const char*)(JOIN(xmlSec, name))); \\\n | ^~~~\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:320:5: note: in expansion of macro ‘PYXMLSEC_ADD_NS_CONSTANT’\n 320 | PYXMLSEC_ADD_NS_CONSTANT(Soap12Ns, \"SOAP12\");\n | ^~~~~~~~~~~~~~~~~~~~~~~~\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:433:31: error: ‘xmlSecKeyDataEcdsaId’ undeclared (first use in this function); did you mean ‘xmlSecKeyDataDsaId’?\n 433 | tmp = PyXmlSec_KeyDataNew(xmlSec ## name ## Id); \\\n | ^~~~~~\n /tmp/tmp1wtqzv7k/xmlsec-1.3.13/src/constants.c:450:5: note: in expansion of macro ‘PYXMLSEC_ADD_KEYDATA_CONSTANT’\n 450 | PYXMLSEC_ADD_KEYDATA_CONSTANT(KeyDataEcdsa, \"ECDSA\")\n | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n error: command '/usr/bin/gcc' failed with exit code 1\n\n\n at ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/chef.py:164 in _prepare\n 160│\n 161│ error = ChefBuildError(\"\\n\\n\".join(message_parts))\n 162│\n 163│ if error is not None:\n → 164│ raise error from None\n 165│\n 166│ return path\n 167│\n 168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -\u003e Path:\n``` \n\nI'm using arch (btw ☝️🤓) and found solutions to other distros like Ubuntu in here: [https://stackoverflow.com/questions/638 … ip-command](https://stackoverflow.com/questions/63859803/cant-install-xmlsec-using-pip-command)\nAnd also solution to users that uses homebrew (which is not my case) in here: [https://stackoverflow.com/questions/760 … 8#76018398](https://stackoverflow.com/questions/76005401/cant-install-xmlsec-via-pip/76018398#76018398)\n\nIt was reported a similar issue in [this post](https://bbs.archlinux.org/viewtopic.php?id=266798) but without poetry and using an old version of python(2.7)\nI tried to install the dependencies mentioned and follow the sugestions on the thread, but still no solution.","author":{"url":"https://github.com/GbAraujoSouza","@type":"Person","name":"GbAraujoSouza"},"datePublished":"2025-01-22T22:43:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/337/python-xmlsec/issues/337"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7fc1de7f-f63e-93e0-1570-783b38b414c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC30:23E3D6:86795F:BA5B5E:696A7FD9 |
| html-safe-nonce | 21a1660138ed8611eee64f701dbdba64514b3a1a28ddf0d5abe84b803117337a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzMwOjIzRTNENjo4Njc5NUY6QkE1QjVFOjY5NkE3RkQ5IiwidmlzaXRvcl9pZCI6IjUzMzU5MDg0OTk0Nzg3MDgxODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | da0b7752a66418e77e6ee8d52881cde8523c2572055ee761ef2c4fd1d85c329c |
| hovercard-subject-tag | issue:2805493637 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/xmlsec/python-xmlsec/337/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fc2c9807724f6cc96824e7fd6fc25aa90ce2c7ad9b78b6cce632c738929ec06c/xmlsec/python-xmlsec/issues/337 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fc2c9807724f6cc96824e7fd6fc25aa90ce2c7ad9b78b6cce632c738929ec06c/xmlsec/python-xmlsec/issues/337 |
| og:image:alt | 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 p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GbAraujoSouza |
| hostname | github.com |
| expected-hostname | github.com |
| None | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| turbo-cache-control | no-preview |
| go-import | github.com/xmlsec/python-xmlsec git https://github.com/xmlsec/python-xmlsec.git |
| octolytics-dimension-user_id | 111647685 |
| octolytics-dimension-user_login | xmlsec |
| octolytics-dimension-repository_id | 27934955 |
| octolytics-dimension-repository_nwo | xmlsec/python-xmlsec |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27934955 |
| octolytics-dimension-repository_network_root_nwo | xmlsec/python-xmlsec |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width