On Sat, 18 Apr 2020 at 05:21, Brad Hubbard <bhubbard@redhat.com> wrote:
On Sat, Apr 18, 2020 at 1:19 AM Rishabh Dave <ridave@redhat.com> wrote:
On Thu, 16 Apr 2020 at 14:55, Brad Hubbard <bhubbard@redhat.com> wrote:
Next time this happens you could also try inserting the following code above the line causing the issue ( File "/home/rishabh/repos/ceph/multifs-auth/src/pybind/ceph_daemon.py", line 24).
import sys print(sys.version) print(sys.path)
Here's the sys.version and sys,path -
3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] ['/home/rishabh/repos/ceph/fs-shell-colors/build/lib/cython_modules/lib.3', '/home/rishabh/repos/ceph/fs-shell-colors/src/pybind', '/home/rishabh/repos/ceph/fs-shell-colors/build/bin', '/home/rishabh/repos/ceph/fs-shell-colors/src/pybind', '/home/rishabh/repos/ceph/fs-shell-colors/build/lib/cython_modules/lib.3', '/home/rishabh/repos/ceph/fs-shell-colors/src/python-common', '/home/rishabh/repos/ceph/fs-shell-colors/build', '/home/rishabh/repos/teuthology/venv-teuth/lib64/python37.zip', '/home/rishabh/repos/teuthology/venv-teuth/lib64/python3.7', '/home/rishabh/repos/teuthology/venv-teuth/lib64/python3.7/lib-dynload', '/usr/lib64/python3.7', '/usr/lib/python3.7', '/home/rishabh/repos/teuthology/venv-teuth/lib/python3.7/site-packages']
So in any of the above directories is there a prettytable.py?
Just in here - /usr/lib/python3.7. Copying output for find command ran on my system - $ sudo find / -name prettytable.py? /app/lib/python2.7/site-packages/prettytable.py /app/lib/python3.7/site-packages/prettytable.py find: ‘/run/user/1000/gvfs’: Permission denied /usr/lib/python3.7/site-packages/prettytable.py /home/rishabh/repos/teuthology/venv-teuth-py3/lib/python3.7/site-packages/prettytable.py /home/rishabh/repos/teuthology/venv-teuth/lib/python2.7/site-packages/prettytable.py
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