Originally Posted by
vu4rac0d3
I've found this on the github issues site of "OWTF" but it is related to the same problem, someone reported that it wasn't fixed after upgrading pyOpenSSL to 16.2
so give it a try
Code:
pip install virtualenv virtualenvwrapper
source '/usr/local/bin/virtualenvwrapper.sh'
echo 'source /usr/local/bin/virtualenvwrapper.sh' >> ~/.zshrc (or ~/.bashrc if use bash)
mkvirtualenv owtf -p /usr/bin/python2.7
apt-get update;apt-get upgrade;apt autoremove;apt-get update;apt-get dist-upgrade;
pip install -U --trusted-host pypi.douban.com -i http://pypi.douban.com/simple beautifulsoup4 lxml Markdown pexpect psycopg2 pyOpenSSL PyVirtualDisplay rdflib selenium six SQLAlchemy tornado
I know that this is not a clean solution, but I don't know which package fixed it.
Thanks for the replies.
When attempting to do what you have suggested, I immediately run into an error while running
Code:
pip install virtualenv virtualenvwrapper
Code:
pip install virtualenv virtualenvwrapper
Requirement already satisfied: virtualenv in /usr/lib/python3/dist-packages
Collecting virtualenvwrapper
Using cached virtualenvwrapper-4.7.2.tar.gz
Could not import setuptools which is required to install from a source distribution.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 387, in setup_py
import setuptools # noqa
File "/usr/share/python-wheels/setuptools-32.3.1-py2.py3-none-any.whl/setuptools/__init__.py", line 10, in <module>
from setuptools.extern.six.moves import filter, filterfalse, map
File "/usr/share/python-wheels/setuptools-32.3.1-py2.py3-none-any.whl/setuptools/extern/__init__.py", line 1, in <module>
from pkg_resources.extern import VendorImporter
ImportError: No module named 'pkg_resources.extern'
I then did some research the error aboveCould not import setuptools . Which many posts suggest to reinstall / upgrade setuptools, Where I also ran into another issue
Code:
pip install -U setuptools
Requirement already up-to-date: setuptools in ./dist-packages
Requirement already up-to-date: six>=1.6.0 in /usr/lib/python3/dist-packages (from setuptools)
Requirement already up-to-date: appdirs>=1.4.0 in ./dist-packages (from setuptools)
Requirement already up-to-date: packaging>=16.8 in ./dist-packages (from setuptools)
Requirement already up-to-date: pyparsing in /usr/lib/python3/dist-packages (from packaging>=16.8->setuptools)
All seems well and up to date.... I've never had so many issues with python, and running into problem after problem. Looks like I need to do some more reading involving setuptools
I have recently switched to Oh My Zsh , Could this of been the causing these issues?
Once again, appreciate all the feedback.