On Thu, 16 Apr 2020 at 14:55, Brad Hubbard <bhubbard(a)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']
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
and I feel this especially on seeing the following lines in the
output[1] of make command when executed without deleting the build
directory -
Could not find cython:
/home/rishabh/repos/teuthology/venv-teuth/bin/python3.7: No module named
cython
I don't know why it's latching on to python3 in teuthology virtual
environment when I don't even have it in my path -
$ echo $PATH
/usr/share/Modules/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/rishabh/.local/bin:/home/rishabh/bin
$ echo $PYTHONPATH
/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:
[1]
https://gist.github.com/rishabh-d-dave/5443794bea0682d763bf7c5491e8ef96#fil…
Thanks,
- Rishabh