Closed lazyscorpion closed 4 years ago
getting an error while installing through pip
root@kali:~# python -m pip install bluto Collecting bluto Using cached Bluto-2.4.17.tar.gz (874 kB) Requirement already satisfied: BeautifulSoup4 in /usr/lib/python3/dist-packages (from bluto) (4.8.2) Requirement already satisfied: dnspython in /usr/lib/python3/dist-packages (from bluto) (1.16.0) Collecting docopt Using cached docopt-0.6.2.tar.gz (25 kB) Requirement already satisfied: lxml in /usr/lib/python3/dist-packages (from bluto) (4.5.0) Collecting oletools Using cached oletools-0.55.1.zip (3.1 MB) Collecting pdfminer==20140328 Using cached pdfminer-20140328.tar.gz (4.1 MB) ERROR: Command errored out with exit status 1: command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-f5naygvt/pdfminer/setup.py'"'"'; file='"'"'/tmp/pip-install-f5naygvt/pdfminer/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-nb7w0np1 cwd: /tmp/pip-install-f5naygvt/pdfminer/ Complete output (8 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-f5naygvt/pdfminer/setup.py", line 3, in from pdfminer import version File "/tmp/pip-install-f5naygvt/pdfminer/pdfminer/init.py", line 5 print version ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(version)?
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Your using python 3, you need to use python 2
getting an error while installing through pip
root@kali:~# python -m pip install bluto Collecting bluto Using cached Bluto-2.4.17.tar.gz (874 kB) Requirement already satisfied: BeautifulSoup4 in /usr/lib/python3/dist-packages (from bluto) (4.8.2) Requirement already satisfied: dnspython in /usr/lib/python3/dist-packages (from bluto) (1.16.0) Collecting docopt Using cached docopt-0.6.2.tar.gz (25 kB) Requirement already satisfied: lxml in /usr/lib/python3/dist-packages (from bluto) (4.5.0) Collecting oletools Using cached oletools-0.55.1.zip (3.1 MB) Collecting pdfminer==20140328 Using cached pdfminer-20140328.tar.gz (4.1 MB) ERROR: Command errored out with exit status 1: command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-f5naygvt/pdfminer/setup.py'"'"'; file='"'"'/tmp/pip-install-f5naygvt/pdfminer/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-nb7w0np1", line 1, in
cwd: /tmp/pip-install-f5naygvt/pdfminer/
Complete output (8 lines):
Traceback (most recent call last):
File "
File "/tmp/pip-install-f5naygvt/pdfminer/setup.py", line 3, in
from pdfminer import version
File "/tmp/pip-install-f5naygvt/pdfminer/pdfminer/init.py", line 5 print version
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(version)?
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.