Closed gagestinson closed 3 months ago
me too
It looks like the error message you're seeing indicates that the compilation of Python extension module is falling because it can't find Python.h. "fatal error: Python.h: No such file or directory" typically occurs when the development headers for Python are not installed on your system.
To fix, install python development headers: $ sudo apt-get install python-dev
This should fix it.
Also, please consider using Python3.
Goodluck!
Thank you for the clarification
On Wed, Sep 6, 2023, 4:21 AM Gabriel Mislang @.***> wrote:
It looks like the error message you're seeing indicates that the compilation of Python extension module is falling because it can't find Python.h. "fatal error: Python.h: No such file or directory" typically occurs when the development headers for Python are not installed on your system.
To fix, install python development headers: $ sudo apt-get install python-dev
This should fix it.
Also, please consider using Python3.
Goodluck!
— Reply to this email directly, view it on GitHub https://github.com/JPaulMora/Pyrit/issues/650#issuecomment-1707981828, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALQFVOX37UOXV2CYDIZIKKTXZA6B7ANCNFSM6AAAAAA2MHX5EI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I get the following output when running
sudo python2 setup.py build
running build running build_py running build_ext building 'cpyrit._cpyrit_cpu' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-vgIf7a/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.7/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION="0.5.1" -maes -mpclmul cpyrit/_cpyrit_cpu.c:32:10: fatal error: Python.h: No such file or directory 32 | #include <Python.h> | ^~~~~~~~~~ compilation terminated. Failed to build; Compiling without AES-NI building 'cpyrit._cpyrit_cpu' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-vgIf7a/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.7/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION="0.5.1" cpyrit/_cpyrit_cpu.c:32:10: fatal error: Python.h: No such file or directory 32 | #include <Python.h> | ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
I am unsure what I am doing wrong here