On Tue, Apr 21, 2020 at 12:23 PM Rishabh Dave <ridave@xxxxxxxxxx> wrote: > > On Tue, 21 Apr 2020 at 07:42, Rishabh Dave <ridave@xxxxxxxxxx> wrote: > > > > On Tue, 21 Apr 2020 at 04:56, Brad Hubbard <bhubbard@xxxxxxxxxx> wrote: > > > > > > This too. > > > > > > $ python -m pip --version > > > > (venv-teuth) [rishabh@f31 multifs-auth]$ python -m pip show prettytable > > /home/rishabh/repos/teuthology/venv-teuth/bin/python: No module named pip > > (venv-teuth) [rishabh@f31 multifs-auth]$ python -m pip --version > > /home/rishabh/repos/teuthology/venv-teuth/bin/python: No module named pip > > (venv-teuth) [rishabh@f31 multifs-auth]$ > > (venv-teuth) [rishabh@f31 multifs-auth]$ pip --version > > pip 20.0.2 from > > /home/rishabh/repos/teuthology/venv-teuth/lib/python2.7/site-packages/pip > > (python 2.7) > > Perhaps, the virtual environment was not set up properly or was too > old. I got an error while using teuthology-suite command - > > $ teuthology-suite --help > Traceback (most recent call last): > File "/home/rishabh/repos/teuthology/venv-teuth/bin/teuthology-suite", > line 6, in <module> > from pkg_resources import load_entry_point > ModuleNotFoundError: No module named 'pkg_resources' > > After removing the virtual environment and creating a new one, I get > the following - > > (venv-teuth) [rishabh@f31 multifs-auth]$ python -m pip --version > pip 20.0.2 from > /home/rishabh/repos/teuthology/venv-teuth/lib/python2.7/site-packages/pip > (python 2.7) > (venv-teuth) [rishabh@f31 multifs-auth]$ python -m pip show prettytable > 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. A future version of pip will drop support for Python 2.7. > More details about Python 2 support in pip, can be found at > https://pip.pypa.io/en/latest/development/release-process/#python-2-support > Name: prettytable > Version: 0.7.2 > Summary: A simple Python library for easily displaying tabular data in > a visually appealing ASCII table format > Home-page: http://code.google.com/p/prettytable > Author: Luke Maurits > Author-email: luke@xxxxxxxxxxxxx > License: BSD (3 clause) > Location: /home/rishabh/repos/teuthology/venv-teuth/lib/python2.7/site-packages > Requires: > Required-by: python-novaclient, python-glanceclient, > python-cinderclient, cliff, teuthology > (venv-teuth) [rishabh@f31 multifs-auth]$ > So now 'python -c "from prettytable import PrettyTable, HEADER"' should work and vstart.sh should work right? -- Cheers, Brad _______________________________________________ Dev mailing list -- dev@xxxxxxx To unsubscribe send an email to dev-leave@xxxxxxx