Open denizsincar29 opened 1 year ago
this is also failing for me on manjaro linux python 3.11, works with python 3.9
Collecting ggwave
Using cached ggwave-0.4.2.tar.gz (76 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: ggwave
Building wheel for ggwave (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
running bdist_wheel
running build
running build_ext
building 'ggwave' extension
creating build
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/ggwave
creating build/temp.linux-x86_64-cpython-311/ggwave/src
gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -fPIC -Iggwave/include -Iggwave/include/ggwave -I/usr/include/python3.11 -c ggwave.bycython.cpp -o build/temp.linux-x86_64-cpython-311/ggwave.bycython.o -O3 -std=c++11
ggwave.bycython.cpp: In function ‘void __Pyx_AddTraceback(const char*, int, int, const char*)’:
ggwave.bycython.cpp:452:62: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
452 | #define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
| ^~
ggwave.bycython.cpp:5722:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’
5722 | __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:42,
from ggwave.bycython.cpp:6:
/usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
22 | typedef struct _frame PyFrameObject;
| ^~~~~~
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 ggwave
Running setup.py clean for ggwave
Failed to build ggwave
ERROR: Could not build wheels for ggwave, which is required to install pyproject.toml-based projects
working wheels here for now (only tested x86)
https://whl.smartgic.io/ggwave-0.4.2-cp311-cp311-linux_x86_64.whl
https://whl.smartgic.io/ggwave-0.4.2-cp311-cp311-linux_aarch64.whl (untested)
You can fix this by adding the following line at the beginning of the file ggwave.bycython.cpp from the latest pip release. The error comes from a change in Python 3.11, as _frame struct was moved to an internal header, however the public API is primarily read-only.
#include "internal/pycore_frame.h"
Just download ggwave 0.4.2, do the modification, and pip install the setup.py
Hello. I am trying to run my gui ggwaver in a new python, but pip install ggwave throws me an error. I tried to pip install it from setup.py, but no success.