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 Thu, Apr 16, 2020 at 8:04 AM Brad Hubbard <bhubbard@xxxxxxxxxx> wrote:
>
> couldHi Rishabh,
>
> I tried to reproduce this on SHA
> d65516a020720726d6e6afef6fdfde699890f719 but did not see the issue you
> report.
>
> I ran the following.
>
> $ ./do_cmake.sh -DWITH_PYTHON2=OFF -DWITH_CEPHFS_SHELL=ON
> -DWITH_BABELTRACE=OFF -DWITH_MANPAGE=OFF -DWITH_RBD=OFF
> -DWITH_RADOSGW=OFF -DWITH_KRBD=OFF
> $ cd build
> $ make -j8 vstart-base
> $ MON=1 MDS=0 MGR=1 OSD=3 ../src/vstart.sh -n -x -l -d --without-dashboard
>
> Everything worked as expected. I then stopped and started vstart three
> times as your OP implied that vstart seems to work at least once when
> you build from scratch? Perhaps you could describe the events between
> it working and not working or suggest other ways I might be able to
> reproduce the issue?
>
> On Thu, Apr 9, 2020 at 7:08 PM Rishabh Dave <ridave@xxxxxxxxxx> wrote:
> >
> > Hi,
> >
> > Since almost a week, I have encountered this vstart.sh issue for 5-6
> > times. After rebuilding a branch few times I come against this issue
> > on running vstart.sh -
> >
> > Populating config ...
> > Traceback (most recent call last):
> >   File "/home/rishabh/repos/ceph/multifs-auth/build/bin/ceph", line
> > 151, in <module>
> >     from ceph_daemon import admin_socket, DaemonWatcher, Termsize
> >   File "/home/rishabh/repos/ceph/multifs-auth/src/pybind/ceph_daemon.py",
> > line 24, in <module>
> >     from prettytable import PrettyTable, HEADER
> > ModuleNotFoundError: No module named 'prettytable'
> >
> > It's odd to get this error because, first, vstart.sh was running fine
> > until last time I ran make command and, second, prettytable seems to
> > be present on the system -
> >
> > $ pip 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
> > $ 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
> > $

Looking at the output, it looks like both of these ran with python2
since you got the python deprecation warning in both runs. Are you
sure you have prettytable installed for python3, i.e. pip3?

Another weird part about this is that I am also running f31 and I get
python 3 as default. Did you by any chance change your default python
version? If so, can you try switching back to python 3? It looks like
you can set your default python version with the alternatives command:

https://medium.com/coderlist/how-to-change-default-python-version-on-linux-fedora-28-c22da18bdd6

Regards,
Boris

> >
> > Simply running make or install-deps.sh again doesn't fix this issue. I
> > have to delete the build directory and build from scratch again. I am
> > using Fedora 31. Following are my arguments to do_cmake.sh script -
> >
> > -DWITH_PYTHON2=OFF -DWITH_CEPHFS_SHELL=ON -DWITH_BABELTRACE=OFF
> > -DWITH_MANPAGE=OFF -DWITH_RBD=OFF -DWITH_RADOSGW=OFF -DWITH_KRBD=OFF
> >
> > I rebased my branch on my latest master last time (day before
> > yesterday, IIRC) to check if this has already been fixed but that's
> > not the case. Is this a known issue? How do I avoid building from
> > scratch repeatedly?
> >
> > Thanks,
> > - Rishabh
> > _______________________________________________
> > Dev mailing list -- dev@xxxxxxx
> > To unsubscribe send an email to dev-leave@xxxxxxx
> >
>
>
> --
> Cheers,
> Brad
> _______________________________________________
> Dev mailing list -- dev@xxxxxxx
> To unsubscribe send an email to dev-leave@xxxxxxx
>
_______________________________________________
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