You are not logged in.

#1 2017-07-30 10:51:33

saw_mj
Member
Registered: 2017-06-12
Posts: 49

Problem installing pyrit

well since pyrit with cuda doesn't work for me when i itried to install it from AUR

I decided to take pyrits' developers recommendation and compile it from the source

I followed their tutorial ..

https://github.com/JPaulMora/Pyrit/wiki

when i try to install it through python

it gives me this error

 File "setup.py", line 56
    print "Failed to build; Compiling without AES-NI"
                                                    ^
SyntaxError: Missing parentheses in call to 'print'

and i already have installed openssl and zlib packages

Offline

#2 2017-07-30 11:57:49

Zeox101
Member
Registered: 2017-02-05
Posts: 93

Re: Problem installing pyrit

It sounds as if you have the wrong version of python installed. It sounds like pyrit needs python 2.X, are you sure you have python 2 installed? (As far as I know, Arch by default comes with python 3, and you have to install python 2 if you want it)

edit: Just so you know where I'm getting this from, because from the article you linked I can see no clear reference to any specific Python version (And I think its become customary to refer to Python 3 if you just use the name Python) A print statement without parenthesis is only allowed in Python 2, so if the setup file has a print statement like that, its safe to assume it needs to be run by Python 2

edit 2: Also if you DO have python 2 installed, you may need to type "python2 setup.py" to make sure it compiles with python 2 instead of 3.

Last edited by Zeox101 (2017-07-30 12:06:43)


The Hidden Secret of Arch Linux Forums:
No.  No one here really uses archlinux.  Arch Sucks.
We're just a bunch of neckbeards who tinker with arch linux in our mom's basement during our free time ... which we have a lot of because we are unemployed. ~ Trilby

Offline

#3 2017-07-30 14:58:59

saw_mj
Member
Registered: 2017-06-12
Posts: 49

Re: Problem installing pyrit

Zeox101 wrote:

It sounds as if you have the wrong version of python installed. It sounds like pyrit needs python 2.X, are you sure you have python 2 installed? (As far as I know, Arch by default comes with python 3, and you have to install python 2 if you want it)

edit: Just so you know where I'm getting this from, because from the article you linked I can see no clear reference to any specific Python version (And I think its become customary to refer to Python 3 if you just use the name Python) A print statement without parenthesis is only allowed in Python 2, so if the setup file has a print statement like that, its safe to assume it needs to be run by Python 2

edit 2: Also if you DO have python 2 installed, you may need to type "python2 setup.py" to make sure it compiles with python 2 instead of 3.

Oh Yes i missed that xD

it works now

EDIT:

Well the main problem still the same when i try to install the Cpyrit_cuda

it gives me this output :

running build
running build_ext
Compiling CUDA module using nvcc 8.0, V8.0.61...
Executing '/opt/cuda/bin/nvcc -m64 -ccbin clang -Xcompiler "-fPIC" --ptx ./_cpyrit_cudakernel.cu'
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc fatal   : The version ('40001') of the host compiler ('clang') is not supported
Traceback (most recent call last):
  File "setup.py", line 168, in <module>
    setup(**setup_args)
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/distutils/command/build.py", line 127, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 91, in run
    subprocess.check_call(nvcc_cmd, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 186, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/opt/cuda/bin/nvcc -m64 -ccbin clang -Xcompiler "-fPIC" --ptx ./_cpyrit_cudakernel.cu' returned non-zero exit status 1

Last edited by saw_mj (2017-07-30 15:00:27)

Offline

#4 2017-07-30 20:46:54

Zeox101
Member
Registered: 2017-02-05
Posts: 93

Re: Problem installing pyrit

Well I'm not really an expert by any means but from what I can gleam from this error (And a google search) :

 nvcc fatal   : The version ('40001') of the host compiler ('clang') is not supported 

It seems the version of cuda you have doesn't support the version of clang you have. It looks like you have cuda version 8, so you could try downgrading to cuda version 7 and see if you avoid the clang error.

Or update clang if there is a newer version and see if it works with cuda 8. (To be honest, I've never heard of clang before this, so I'm not sure if "40001" is the newest version. The official arch repository has 4.0.1-5, which looks similar enough to 40001 I guess.). If you do update clang however, I would do a full system upgrade since partial updates can cause problems

Also if this does fix your issue since you said its the same one you got before from the AUR, I would recommend going back and installing pyrit from the AUR so that it falls under pacman's package management.

Last edited by Zeox101 (2017-07-30 20:53:51)


The Hidden Secret of Arch Linux Forums:
No.  No one here really uses archlinux.  Arch Sucks.
We're just a bunch of neckbeards who tinker with arch linux in our mom's basement during our free time ... which we have a lot of because we are unemployed. ~ Trilby

Offline

#5 2017-07-30 23:31:57

saw_mj
Member
Registered: 2017-06-12
Posts: 49

Re: Problem installing pyrit

the clang package i have is up-to-date

and i also tried to downgrade to clang 35 and it didn't work too

Offline

#6 2017-07-31 01:39:25

Zeox101
Member
Registered: 2017-02-05
Posts: 93

Re: Problem installing pyrit

Try with cuda 7 then if possible.


The Hidden Secret of Arch Linux Forums:
No.  No one here really uses archlinux.  Arch Sucks.
We're just a bunch of neckbeards who tinker with arch linux in our mom's basement during our free time ... which we have a lot of because we are unemployed. ~ Trilby

Offline

#7 2022-02-03 20:11:09

N1mb3
Member
Registered: 2022-02-03
Posts: 1

Re: Problem installing pyrit

I solved like this: Some credits to "fuzzthepiguy"

sudo apt-get install python2.7 build-essential python-dev libpcap-dev libssl-dev

cd /opt
git clone https://github.com/JPaulMora/Pyrit --depth=1
cd ./Pyrit
sudo pip install psycopg2
sudo pip install scapy
python setup.py clean
python setup.py build
sudo python setup.py install

Offline

#8 2022-02-03 21:11:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,102

Re: Problem installing pyrit

That will eventually bite you. Don't run global sudo pip invocations if you have no good reason for it.

In any case this isn't  Ubuntu and the thread is 4 years old.

https://bbs.archlinux.org/misc.php?action=rules
https://wiki.archlinux.org/title/Genera … bumping%22

Closing.

Offline

Board footer

Powered by FluxBB