Re: ModuleNotFoundError: No module named 'prettytable'

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

 



Hey Patrick,

I tried to reproduce this but couldn't but my process may give you
something to compare to so you can work out what is different in your
environment?

Following is the specifics of what I did.

I used this image.

$ podman images --digests registry.access.redhat.com/ubi8
REPOSITORY                       TAG     DIGEST
                                           IMAGE ID      CREATED
SIZE
registry.access.redhat.com/ubi8  latest
sha256:aec01a874399c3a3c31033b35761b28aef605504ade888f98f637442cc56b5c0
 4199acc83c6a  7 weeks ago  213 MB

Needed this patch to enable a repo in container mode (I'll create a PR
once I do some more testing).

diff --git a/install-deps.sh b/install-deps.sh
index a5e19998f1..368fea017d 100755
--- a/install-deps.sh
+++ b/install-deps.sh
@@ -363,7 +363,7 @@ else
                    $SUDO dnf config-manager --add-repo
http://apt-mirror.front.sepia.ceph.com/lab-extras/8/
                    $SUDO dnf config-manager
--setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0
--save
                elif test $ID = rhel -a $MAJOR_VERSION = 8 ; then
-                    $SUDO subscription-manager repos --enable
"codeready-builder-for-rhel-8-${ARCH}-rpms"
+                    $SUDO dnf config-manager --set-enabled
"codeready-builder-for-rhel-8-${ARCH}-rpms"
                   $SUDO dnf config-manager --add-repo
http://apt-mirror.front.sepia.ceph.com/lab-extras/8/
                   $SUDO dnf config-manager
--setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0
--save
                fi

# dnf -y install git

Clone the ceph repo and patch and run install-deps.sh and do_cmake.sh.

# ninja -j8 vstart-base
# MON=1 MDS=0 MGR=1 OSD=3 ../src/vstart.sh --memstore -n -x -l -d
--without-dashboard
# bin/ceph -s
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2021-04-02T23:14:05.232+0000 7f3571593700 -1 WARNING: all dangerous
and experimental features are enabled.
2021-04-02T23:14:05.244+0000 7f3571593700 -1 WARNING: all dangerous
and experimental features are enabled.
 cluster:
   id:     cd13c7aa-ef6f-4416-a624-d3c082ebaec9
   health: HEALTH_WARN
           3 mgr modules have failed dependencies
...

HTH you to track it down mate and let me know if I can help.

On Sat, Apr 3, 2021 at 3:39 AM Patrick Donnelly <pdonnell@xxxxxxxxxx> wrote:
>
> I had a clean install done on my dev machine (RHEL 8.3) which required
> me to reinstall dependencies for Ceph. I'm getting this error when
> setting up a vstart cluster:
>
> pdonnell@vossi04 ~/ceph/build$ bin/ceph status
> *** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
> Traceback (most recent call last):
>   File "bin/ceph", line 153, in <module>
>     from ceph_daemon import admin_socket, DaemonWatcher, Termsize
>   File "/home/pdonnell/ceph/src/pybind/ceph_daemon.py", line 24, in <module>
>     from prettytable import PrettyTable, HEADER
> ModuleNotFoundError: No module named 'prettytable'
> pdonnell@vossi04 ~/ceph/build$ python3
> Python 3.6.8 (default, Aug 18 2020, 08:33:21)
> [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import prettytable
> >>>
> pdonnell@vossi04 ~/ceph/build$ python2
> bash: python2: command not found
>
> The module is available but bin/ceph is claiming not to find it.
> Anyone know what's going on? (I did do install-deps.sh without issue
> before running vstart.sh)
>
> --
> Patrick Donnelly, Ph.D.
> He / Him / His
> Principal Software Engineer
> Red Hat Sunnyvale, CA
> GPG: 19F28A586F808C2402351B93C3301A3E258DD79D
> _______________________________________________
> 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



[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