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

owtf install on Kali2 fails - cryptography #509

Closed
macubergeek opened this issue Aug 22, 2015 · 12 comments
Closed

owtf install on Kali2 fails - cryptography #509

macubergeek opened this issue Aug 22, 2015 · 12 comments

Comments

@macubergeek
Copy link

Ran the installer script on kale and install failed:

Found existing installation: cryptography 0.9.3
Not uninstalling cryptography at /usr/lib/python2.7/dist-packages, owned by OS
Running setup.py install for cryptography

Installed /tmp/pip-build-UP8H5r/cryptography/cffi-1.2.1-py2.7-linux-x86_64.egg
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-UP8H5r/cryptography/setup.py", line 307, in <module>
    **keywords_with_side_effects(sys.argv)
  File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 266, in __init__
    _Distribution.__init__(self,attrs)
  File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
    self.finalize_options()
  File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 301, in finalize_options
    ep.load()(self, ep.name, value)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
ImportError: No module named setuptools_ext
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-UP8H5r/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-VjSJ28-record/install-record.txt --single-version-externally-managed --compile:

Installed /tmp/pip-build-UP8H5r/cryptography/cffi-1.2.1-py2.7-linux-x86_64.egg

Traceback (most recent call last):

File "", line 1, in

File "/tmp/pip-build-UP8H5r/cryptography/setup.py", line 307, in

**keywords_with_side_effects(sys.argv)

File "/usr/lib/python2.7/distutils/core.py", line 111, in setup

_setup_distribution = dist = klass(attrs)

File "/usr/lib/python2.7/dist-packages/setuptools/dist.py", line 266, in init

_Distribution.__init__(self,attrs)
@viyatb
Copy link
Member

viyatb commented Aug 22, 2015

Are you using a pre-built VMware image for Kali 2.0? There have been some setuptools problems reported for it.

@macubergeek
Copy link
Author

No I built the VMware image myself from iso

@viyatb
Copy link
Member

viyatb commented Aug 22, 2015

Can you give the setuptools version from your VM? pip show setuptools
Or does this help https://github.com/byt3bl33d3r/MITMf/issues/159?

@macubergeek
Copy link
Author

ok here it is:

root@kali2:~/Desktop# pip show setuptools

Name: setuptools
Version: 18.2
Location: /usr/local/lib/python2.7/dist-packages
Requires:
root@kali2:~/Desktop#

@viyatb
Copy link
Member

viyatb commented Aug 22, 2015

Can you check this fix https://github.com/byt3bl33d3r/MITMf/issues/159?

@macubergeek
Copy link
Author

Didn't work
I tried that last night. There is no requirements.txt file in the version of owtf I pulled down with git.

@macubergeek
Copy link
Author

there is an install/owtf.pip file which lists the dependencies but cryptography isn't in there. btw python-cryptography is already installed in Kali2

@viyatb
Copy link
Member

viyatb commented Aug 22, 2015

Yes, there is no requirements.txt file. I meant the actual fix:
pip uninstall cryptography
apt-get install python-cryptography

@macubergeek
Copy link
Author

pip uninstall cryptography doesn't work on Kali2
root@kali2:~# pip uninstall cryptography
Not uninstalling cryptography at /usr/lib/python2.7/dist-packages, owned by OS

@macubergeek
Copy link
Author

don't know if this helps but:
root@kali2:/opt/gitlist# pip freeze | grep crypto
cryptography==0.9.3
pycrypto==2.6.1
pycryptopp==0.6.0.1206569328141510525648634803928199668821045408958

So the python cryptography module is already installed so when I go to install owtf it craps out because it's already there. So why can't owtf just use whats there already?
Looks like owtf installer script in Kali2 now broken.

@viyatb
Copy link
Member

viyatb commented Aug 23, 2015

Looks like Kali issue/feature - they have chown the packages directory so that it doesn't break the other tools.
Let me see and come up with a new installation method, preferably using virtualenv :)

@viyatb
Copy link
Member

viyatb commented Oct 21, 2015

Duplicate #516

@viyatb viyatb closed this as completed Oct 21, 2015
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

2 participants