Skip to content

Error in install reuirements.txt because of BeautifulSoup3.2.1 - Kali linux  #40

Description

@kigyousensi

I tried to install InSpy into Kali linux following command.

$ git clone https://github.com/leapsecurity/InSpy.git
$ cd InSpy
$ pip install -r requirements.txt

however, I got following error.

Collecting BeautifulSoup==3.2.1
Using cached BeautifulSoup-3.2.1.tar.gz (31 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mpgemcbm/BeautifulSoup/setup.py'"'"'; file='"'"'/tmp/pip-install-mpgemcbm/BeautifulSoup/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-gsz35pi1
cwd: /tmp/pip-install-mpgemcbm/BeautifulSoup/
Complete output (6 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-mpgemcbm/BeautifulSoup/setup.py", line 22
print "Unit tests have failed!"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Unit tests have failed!")?
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Meybe python3 can't use BeautifulSoup 3.x.

Solution (tempolary)

Rewrite lib/soup.py instead of "pip install -r requirement.txt".

  1. install beautifulsoup4
    $ pip install beautifulsoup4

  2. rewrite lib/soup.py
    before lib/soup.py line 1

import BeautifulSoup,json

after lib/soup.py line 1

import bs4 ,json

  1. run inspy.py
    $ ./InSpy --domain abc.com --email username abc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions