On Mon, 20 Apr 2020 at 21:30, Rishabh Dave <ridave@redhat.com> wrote:
Traceback (most recent call last): File "/home/rishabh/repos/ceph/fs-shell-colors/build/bin/ceph", line 151, in <module> from ceph_daemon import admin_socket, DaemonWatcher, Termsize File "/home/rishabh/repos/ceph/fs-shell-colors/src/pybind/ceph_daemon.py", line 27, in <module> from prettytable import PrettyTable, HEADER ModuleNotFoundError: No module named 'prettytable'
Although this time my branch isn't up to date. It's at https://github.com/ceph/ceph/commit/a6e72c98ef3ef39f0236d6faf083256c88973bfc. And, yes, this time (too) I had the teuthology virtual environment activated. I think this has definitely something to do with the error
OK, so if you activate this same virtual environment and run the following do you see the error?
Nothing, the command completes successfully for me -
$ python -c "from prettytable import PrettyTable, HEADER" && echo SUCCESS SUCCESS
Apologies, I made a mistake last time. Here's the output - (venv-teuth) [rishabh@f31 ~]$ python -c "from prettytable import PrettyTable, HEADER" Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'prettytable' (venv-teuth) [rishabh@f31 ~]$ pip2 list | grep 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 prettytable 0.7.2 (venv-teuth) [rishabh@f31 ~]$ pip3 list | grep prettytable WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. prettytable 0.7.2 (venv-teuth) [rishabh@f31 ~]$ python2 -c "from prettytable import PrettyTable, HEADER" (venv-teuth) [rishabh@f31 ~]$ (venv-teuth) [rishabh@f31 ~]$ python2 -c "from prettytable import PrettyTable, HEADER" && echo SUCCESS SUCCESS