Bluto icon indicating copy to clipboard operation
Bluto copied to clipboard

ERROR: Command errored out with exit status 1: command: /usr/bin/python2.7

Open omnislash79 opened this issue 5 years ago • 2 comments

python2 -m pip install bluto 1 ⨯ DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable Collecting bluto Using cached Bluto-2.4.17.tar.gz (874 kB) ERROR: Command errored out with exit status 1: command: /usr/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-JOQRtg/bluto/setup.py'"'"'; file='"'"'/tmp/pip-install-JOQRtg/bluto/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-M5RMQF
cwd: /tmp/pip-install-JOQRtg/bluto/
Complete output (10 lines):
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'include_package_data'
warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: invalid command 'egg_info'                                                                                                                                                                                                      
----------------------------------------                                                                                                                                                                                               

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

$python -V
Python 2.7.18

omnislash79 avatar Nov 21 '20 09:11 omnislash79

sorted it out somewhat, it was throwing a module error it was the dns one.

sudo apt update sudo apt install python2

Use curl to download the get-pip.py script:

curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py

Once the repository is enabled, run the script as sudo user with python2 to install pip for Python 2:

sudo python2 get-pip.py

sudo pip2 install bluto

(2) You should now be able to execute 'bluto' from any working directory in any terminal.

bluto

Upgrade Instructions

(1) The upgrade process is as simple as;

sudo pip2 install bluto --upgrade

for some reason if i reboot the vm , i would have to redo all of this. hope this helps others.

omnislash79 avatar Nov 21 '20 13:11 omnislash79

sorted it out somewhat, it was throwing a module error it was the dns one.

How did you sort this out?

ndsecc avatar Jan 23 '21 09:01 ndsecc