Title: error installing python-ldap 3.4.4 on amazon linux 2 · Issue #569 · python-ldap/python-ldap · GitHub
Open Graph Title: error installing python-ldap 3.4.4 on amazon linux 2 · Issue #569 · python-ldap/python-ldap
X Title: error installing python-ldap 3.4.4 on amazon linux 2 · Issue #569 · python-ldap/python-ldap
Description: If you found a bug in python-ldap, or would request a new feature, this is the place to let us know. Please describe the issue and your environment here. error install python-ldap 3.4.4 on Amazon Linux 2 using python 3.11 Issue descripti...
Open Graph Description: If you found a bug in python-ldap, or would request a new feature, this is the place to let us know. Please describe the issue and your environment here. error install python-ldap 3.4.4 on Amazon L...
X Description: If you found a bug in python-ldap, or would request a new feature, this is the place to let us know. Please describe the issue and your environment here. error install python-ldap 3.4.4 on Amazon L...
Opengraph URL: https://github.com/python-ldap/python-ldap/issues/569
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"error installing python-ldap 3.4.4 on amazon linux 2","articleBody":"If you found a bug in python-ldap, or would request a new feature,\r\nthis is the place to let us know.\r\n\r\nPlease describe the issue and your environment here.\r\nerror install python-ldap 3.4.4 on Amazon Linux 2 using python 3.11\r\n---\r\n\r\nIssue description:\r\n\r\nAll pre-reqs installed, ie \r\n# yum groupinstall \"Development tools\"\r\n# yum install openldap-devel python-devel\r\n\r\n rpm -qa | grep openldap\r\nopenldap-2.4.57-6.amzn2023.0.6.x86_64\r\nopenldap-devel-2.4.57-6.amzn2023.0.6.x86_64\r\nopenldap-compat-2.4.57-6.amzn2023.0.6.x86_64\r\nopenldap-clients-2.4.57-6.amzn2023.0.6.x86_64\r\n\r\n\r\nRunning python3.11 -m pip install python-ldap\r\nresults in \r\n\r\n gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -ftree-vectorize -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -ftree-vectorize -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -ftree-vectorize -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=3.4.4 \"-DLDAPMODULE_AUTHOR=python-ldap project\" \"-DLDAPMODULE_LICENSE=Python style\" -IModules -I/usr/include/python3.11 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-cpython-311/Modules/LDAPObject.o\r\n In file included from Modules/LDAPObject.c:3:\r\n Modules/common.h:9:10: fatal error: Python.h: No such file or directory\r\n 9 | #include \"Python.h\"\r\n | ^~~~~~~~~~\r\n compilation terminated.\r\n error: command '/usr/bin/gcc' failed with exit code 1\r\n\r\nSteps to reproduce: \r\n\r\n# python3.11 -m pip install python-ldap\r\nCollecting python-ldap\r\n Using cached python-ldap-3.4.4.tar.gz (377 kB)\r\n Installing build dependencies ... done\r\n Getting requirements to build wheel ... done\r\n Preparing metadata (pyproject.toml) ... done\r\nRequirement already satisfied: pyasn1\u003e=0.3.7 in /usr/local/lib/python3.11/site-packages (from python-ldap) (0.6.0)\r\nRequirement already satisfied: pyasn1-modules\u003e=0.1.5 in /usr/local/lib/python3.11/site-packages (from python-ldap) (0.4.0)\r\nBuilding wheels for collected packages: python-ldap\r\n Building wheel for python-ldap (pyproject.toml) ... error\r\n error: subprocess-exited-with-error\r\n\r\n × Building wheel for python-ldap (pyproject.toml) did not run successfully.\r\n │ exit code: 1\r\n ╰─\u003e [83 lines of output]\r\n running bdist_wheel\r\n running build\r\n running build_py\r\n creating build\r\n creating build/lib.linux-x86_64-cpython-311\r\n copying Lib/ldapurl.py -\u003e build/lib.linux-x86_64-cpython-311\r\n copying Lib/ldif.py -\u003e build/lib.linux-x86_64-cpython-311\r\n creating build/lib.linux-x86_64-cpython-311/ldap\r\n copying Lib/ldap/syncrepl.py -\u003e build/lib.linux-x86_64-cpython-311/ldap\r\n copying Lib/ldap/sasl.py -\u003e build/lib.linux-x86_64-cpython-311/ldap\r\n copying Lib/ldap/resiter.py -\u003e build/lib.linux-x86_64-cpython-311/ldap\r\n copying Lib/ldap/pkginfo.py -\u003e build/lib.linux-x86_64-cpython-311/ldap\r\n copying Lib/ldap/modlist.py -\u003e build/lib.linux-x86_64-cpython-311/ldap\r\n copying Lib/ldap/logger.py -\u003e build/lib.linux-x86_64-cpython-311/ldap\r\n copying Lib/ldap/ldapobject.py -\u003e build/lib.linux-x86_64-cpython-311/ldap\r\n copying Lib/ldap/functions.py -\u003e build/lib.linux-x86_64-cpython-311/ldap\r\n copying Lib/ldap/filter.py -\u003e build/lib.linux-x86_64-cpython-311/ldap\r\n copying Lib/ldap/dn.py -\u003e build/lib.linux-x86_64-cpython-311/ldap\r\n copying Lib/ldap/constants.py -\u003e build/lib.linux-x86_64-cpython-311/ldap\r\n copying Lib/ldap/compat.py -\u003e build/lib.linux-x86_64-cpython-311/ldap\r\n copying Lib/ldap/cidict.py -\u003e build/lib.linux-x86_64-cpython-311/ldap\r\n copying Lib/ldap/asyncsearch.py -\u003e build/lib.linux-x86_64-cpython-311/ldap\r\n copying Lib/ldap/async.py -\u003e build/lib.linux-x86_64-cpython-311/ldap\r\n copying Lib/ldap/__init__.py -\u003e build/lib.linux-x86_64-cpython-311/ldap\r\n creating build/lib.linux-x86_64-cpython-311/ldap/controls\r\n copying Lib/ldap/controls/vlv.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/controls\r\n copying Lib/ldap/controls/sss.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/controls\r\n copying Lib/ldap/controls/simple.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/controls\r\n copying Lib/ldap/controls/sessiontrack.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/controls\r\n copying Lib/ldap/controls/readentry.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/controls\r\n copying Lib/ldap/controls/pwdpolicy.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/controls\r\n copying Lib/ldap/controls/psearch.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/controls\r\n copying Lib/ldap/controls/ppolicy.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/controls\r\n copying Lib/ldap/controls/pagedresults.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/controls\r\n copying Lib/ldap/controls/openldap.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/controls\r\n copying Lib/ldap/controls/libldap.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/controls\r\n copying Lib/ldap/controls/deref.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/controls\r\n copying Lib/ldap/controls/__init__.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/controls\r\n creating build/lib.linux-x86_64-cpython-311/ldap/extop\r\n copying Lib/ldap/extop/passwd.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/extop\r\n copying Lib/ldap/extop/dds.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/extop\r\n copying Lib/ldap/extop/__init__.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/extop\r\n creating build/lib.linux-x86_64-cpython-311/ldap/schema\r\n copying Lib/ldap/schema/tokenizer.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/schema\r\n copying Lib/ldap/schema/subentry.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/schema\r\n copying Lib/ldap/schema/models.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/schema\r\n copying Lib/ldap/schema/__init__.py -\u003e build/lib.linux-x86_64-cpython-311/ldap/schema\r\n creating build/lib.linux-x86_64-cpython-311/slapdtest\r\n copying Lib/slapdtest/_slapdtest.py -\u003e build/lib.linux-x86_64-cpython-311/slapdtest\r\n copying Lib/slapdtest/__init__.py -\u003e build/lib.linux-x86_64-cpython-311/slapdtest\r\n running egg_info\r\n writing Lib/python_ldap.egg-info/PKG-INFO\r\n writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt\r\n writing requirements to Lib/python_ldap.egg-info/requires.txt\r\n writing top-level names to Lib/python_ldap.egg-info/top_level.txt\r\n reading manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'\r\n reading manifest template 'MANIFEST.in'\r\n no previously-included directories found matching 'Doc/.build'\r\n adding license file 'LICENCE'\r\n writing manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'\r\n creating build/lib.linux-x86_64-cpython-311/slapdtest/certs\r\n copying Lib/slapdtest/certs/README -\u003e build/lib.linux-x86_64-cpython-311/slapdtest/certs\r\n copying Lib/slapdtest/certs/ca.conf -\u003e build/lib.linux-x86_64-cpython-311/slapdtest/certs\r\n copying Lib/slapdtest/certs/ca.pem -\u003e build/lib.linux-x86_64-cpython-311/slapdtest/certs\r\n copying Lib/slapdtest/certs/client.conf -\u003e build/lib.linux-x86_64-cpython-311/slapdtest/certs\r\n copying Lib/slapdtest/certs/client.key -\u003e build/lib.linux-x86_64-cpython-311/slapdtest/certs\r\n copying Lib/slapdtest/certs/client.pem -\u003e build/lib.linux-x86_64-cpython-311/slapdtest/certs\r\n copying Lib/slapdtest/certs/gencerts.sh -\u003e build/lib.linux-x86_64-cpython-311/slapdtest/certs\r\n copying Lib/slapdtest/certs/gennssdb.sh -\u003e build/lib.linux-x86_64-cpython-311/slapdtest/certs\r\n copying Lib/slapdtest/certs/server.conf -\u003e build/lib.linux-x86_64-cpython-311/slapdtest/certs\r\n copying Lib/slapdtest/certs/server.key -\u003e build/lib.linux-x86_64-cpython-311/slapdtest/certs\r\n copying Lib/slapdtest/certs/server.pem -\u003e build/lib.linux-x86_64-cpython-311/slapdtest/certs\r\n running build_ext\r\n building '_ldap' extension\r\n creating build/temp.linux-x86_64-cpython-311\r\n creating build/temp.linux-x86_64-cpython-311/Modules\r\n gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -ftree-vectorize -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -ftree-vectorize -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -ftree-vectorize -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=3.4.4 \"-DLDAPMODULE_AUTHOR=python-ldap project\" \"-DLDAPMODULE_LICENSE=Python style\" -IModules -I/usr/include/python3.11 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-cpython-311/Modules/LDAPObject.o\r\n In file included from Modules/LDAPObject.c:3:\r\n Modules/common.h:9:10: fatal error: Python.h: No such file or directory\r\n 9 | #include \"Python.h\"\r\n | ^~~~~~~~~~\r\n compilation terminated.\r\n error: command '/usr/bin/gcc' failed with exit code 1\r\n [end of output]\r\n\r\n note: This error originates from a subprocess, and is likely not a problem with pip.\r\n ERROR: Failed building wheel for python-ldap\r\nFailed to build python-ldap\r\nERROR: Could not build wheels for python-ldap, which is required to install pyproject.toml-based projects\r\n\r\n\r\n\r\nOperating system: \r\nAmazon Linux 2\r\nPython version: \r\n3.11\r\n\r\npython-ldap version: \r\n3.4.4\r\n","author":{"url":"https://github.com/ashterenberg-paramount","@type":"Person","name":"ashterenberg-paramount"},"datePublished":"2024-06-05T21:16:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/569/python-ldap/issues/569"}
| 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:b70d3c71-0f86-e3a3-3136-b264c602b0fa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85E4:285CE0:1815531:1EAEBB7:6975C33C |
| html-safe-nonce | dfade38792d7dc35c5d2693a195ffc34ff112c628e194acea4e77a9767d44e33 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUU0OjI4NUNFMDoxODE1NTMxOjFFQUVCQjc6Njk3NUMzM0MiLCJ2aXNpdG9yX2lkIjoiMjEwNTUyNDExNzA5NDkwODczMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ffad11e93b3ce874fbcef0d4155faec8d28474c4755e0d24795a6fb3d8de7ff3 |
| hovercard-subject-tag | issue:2336851431 |
| 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/python-ldap/python-ldap/569/issue_layout |
| twitter:image | https://opengraph.githubassets.com/43b9cd340cf1efa9c1225ac107660ec806c3b5999a4f4122ce25e619537f94fb/python-ldap/python-ldap/issues/569 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/43b9cd340cf1efa9c1225ac107660ec806c3b5999a4f4122ce25e619537f94fb/python-ldap/python-ldap/issues/569 |
| og:image:alt | If you found a bug in python-ldap, or would request a new feature, this is the place to let us know. Please describe the issue and your environment here. error install python-ldap 3.4.4 on Amazon L... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ashterenberg-paramount |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/python-ldap/python-ldap git https://github.com/python-ldap/python-ldap.git |
| octolytics-dimension-user_id | 33895877 |
| octolytics-dimension-user_login | python-ldap |
| octolytics-dimension-repository_id | 111794776 |
| octolytics-dimension-repository_nwo | python-ldap/python-ldap |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 111794776 |
| octolytics-dimension-repository_network_root_nwo | python-ldap/python-ldap |
| 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 | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width