Python 3.11 package install fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyGPGME |
New
|
Undecided
|
Unassigned |
Bug Description
I am trying to install pygpgme on vanilla Python 3.11 compiled from source (on Fedora 36) but get a compiler error message. Attached below. Would you be able to offer any advice on how this may be fixed?
```
~>pip3 install pygpgme
Collecting pygpgme
Using cached pygpgme-0.3.tar.gz (50 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: pygpgme
Building wheel for pygpgme (setup.py) ... error
error: subprocess-
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [75 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.
creating build/lib.
copying gpgme/editutil.py -> build/lib.
copying gpgme/__init__.py -> build/lib.
running build_ext
building 'gpgme._gpgme' extension
creating build/temp.
creating build/temp.
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/
src/gpgme.c: In function ‘create_module’:
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
61 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
62 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
63 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
64 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
65 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
66 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
67 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
68 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
69 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
70 | INIT_TYPE(
| ^~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pygpgme
Running setup.py clean for pygpgme
Failed to build pygpgme
Installing collected packages: pygpgme
Running setup.py install for pygpgme ... error
error: subprocess-
× Running setup.py install for pygpgme did not run successfully.
│ exit code: 1
╰─> [77 lines of output]
running install
/
running build
running build_py
creating build
creating build/lib.
creating build/lib.
copying gpgme/editutil.py -> build/lib.
copying gpgme/__init__.py -> build/lib.
running build_ext
building 'gpgme._gpgme' extension
creating build/temp.
creating build/temp.
gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/
src/gpgme.c: In function ‘create_module’:
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
61 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
62 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
63 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
64 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
65 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
66 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
67 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
68 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
69 | INIT_TYPE(
| ^~~~~~~~~
src/
49 | Py_TYPE(&type) = &PyType_Type; \
| ^
src/
70 | INIT_TYPE(
| ^~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-
× Encountered error while trying to install package.
╰─> pygpgme
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
```