Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using python2 setup.py install and build #629

Open
Mystery2419 opened this issue Jun 11, 2022 · 8 comments
Open

Error when using python2 setup.py install and build #629

Mystery2419 opened this issue Jun 11, 2022 · 8 comments

Comments

@Mystery2419
Copy link

cpyrit/_cpyrit_cpu.c:32:10: fatal error: Python.h: No such file or directory
32 | #include <Python.h>
this is the problem.

@use0098
Copy link

use0098 commented Jun 24, 2022

sudo python setup.py build
File "/home/ap/Pyrit/setup.py", line 56
print "Failed to build; Compiling without AES-NI"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
how to solve this

@use0098
Copy link

use0098 commented Jun 24, 2022

sudo python setup.py install
File "/home/ap/Pyrit/setup.py", line 56
print "Failed to build; Compiling without AES-NI"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
even this is'nt working

@jakbin
Copy link

jakbin commented Jul 2, 2022

sudo python setup.py install File "/home/ap/Pyrit/setup.py", line 56 print "Failed to build; Compiling without AES-NI" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)? even this is'nt working

run command : sudo python2 setup.py build

@jakbin
Copy link

jakbin commented Jul 2, 2022

cpyrit/_cpyrit_cpu.c:32:10: fatal error: Python.h: No such file or directory 32 | #include <Python.h> this is the problem.

install package : python2-dev

@Chewbee
Copy link

Chewbee commented Aug 19, 2022

cpyrit/_cpyrit_cpu.c:32:10: fatal error: Python.h: No such file or directory 32 | #include <Python.h> this is the problem.

install package : python2-dev

Thanks this is good for fixing this but will then fail on :
cpyrit/_cpyrit_cpu.c:35:10: fatal error: openssl/hmac.h: No such file or directory 35 | #include <openssl/hmac.h> | ^~~~~~~~~~~~~~~~
maybe one more package is missing

@Chewbee
Copy link

Chewbee commented Aug 19, 2022

...

Thanks this is good for fixing this but will then fail on : cpyrit/_cpyrit_cpu.c:35:10: fatal error: openssl/hmac.h: No such file or directory 35 | #include <openssl/hmac.h> | ^~~~~~~~~~~~~~~~ maybe one more package is missing

Found it : sudo apt-get install libssl-dev ;) then an other one i keep on looking

@Chewbee
Copy link

Chewbee commented Aug 19, 2022

and this one also is required :
sudo apt-get install libpcap-dev
beware libPcap ;)
then it will build ok

@Roy-Wanyoike
Copy link

─[roy@roy]─[~/Pyrit]
└──╼ $sudo python setup.py install
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying pyrit_cli.py -> build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/cpyrit
copying cpyrit/init.py -> build/lib.linux-x86_64-2.7/cpyrit
copying cpyrit/cpyrit.py -> build/lib.linux-x86_64-2.7/cpyrit
copying cpyrit/util.py -> build/lib.linux-x86_64-2.7/cpyrit
copying cpyrit/pckttools.py -> build/lib.linux-x86_64-2.7/cpyrit
copying cpyrit/config.py -> build/lib.linux-x86_64-2.7/cpyrit
copying cpyrit/network.py -> build/lib.linux-x86_64-2.7/cpyrit
copying cpyrit/storage.py -> build/lib.linux-x86_64-2.7/cpyrit
running build_ext
building 'cpyrit._cpyrit_cpu' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/cpyrit
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:35:10: fatal error: openssl/hmac.h: No such file or directory
35 | #include <openssl/hmac.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:35:10: fatal error: openssl/hmac.h: No such file or directory
35 | #include <openssl/hmac.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants