Re: vstart.sh complains module prettytable not found even when present on the system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Apr 18, 2020 at 1:19 AM Rishabh Dave <ridave@xxxxxxxxxx> wrote:
>
> On Thu, 16 Apr 2020 at 14:55, Brad Hubbard <bhubbard@xxxxxxxxxx> 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?

> 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?

$ python -c "from prettytable import PrettyTable, HEADER"

> 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#file-make-output
>
>
> Thanks,
> - Rishabh
>


-- 
Cheers,
Brad
_______________________________________________
Dev mailing list -- dev@xxxxxxx
To unsubscribe send an email to dev-leave@xxxxxxx



[Index of Archives]     [CEPH Users]     [Ceph Devel]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux