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 in install reuirements.txt because of BeautifulSoup3.2.1 - Kali linux #40

Open
kigyousensi opened this issue Jan 31, 2021 · 1 comment

Comments

@kigyousensi
Copy link

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
@LiMengYan22
Copy link

$ ./InSpy --domain abc.com --email username abc
$ ./InSpy**.py** --domain abc.com --email username abc

Still not working...:(

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