I've just tried a yum update on one of my C7 boxes and got the following output. I'm guessing to fix this I need to re-install the RPM, but I can't remove it because of dependancies, so how can I fix the problem? I've managed to download a later version of the RPM, but haven't managed to find the same version as the one installed. Gary [root at zeppo ~]# yum install There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: /usr/lib64/python2.7/lib-dynload/itertoolsmodule.so: cannot read file data: Input/output error Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is: 2.7.5 (default, Sep 15 2016, 22:37:39) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq [root at zeppo ~]# rpm -qf /usr/lib64/python2.7/lib-dynload/itertoolsmodule.so python-libs-2.7.5-39.el7_2.x86_64 [root at zeppo ~]# [root at zeppo ~]# rpm -e python-libs-2.7.5-39.el7_2.x86_64 error: Failed dependencies: libpython2.7.so.1.0()(64bit) is needed by (installed) python-lxml-3.2.1-4.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) yum-metadata-parser-1.1.4-10.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) pyliblzma-0.5.3-11.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) pyxattr-0.5.1-5.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) cmpi-bindings-pywbem-0.9.5-6.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) python-kmod-0.9-4.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) newt-python-0.52.15-4.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) python-setproctitle-1.1.6-5.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) python-ethtool-0.8-5.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) python-urwid-1.1.1-3.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) python-pycurl-7.19.0-17.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) PyYAML-3.10-11.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) pygpgme-0.3-9.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) python-cups-1.9.63-6.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) python-2.7.5-39.el7_2.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) libxml2-python-2.9.1-6.el7_2.3.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) gdb-7.6.1-80.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) python-dmidecode-3.10.13-11.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) python-perf-3.10.0-327.36.3.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) cryptsetup-python-1.6.7-1.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) pyparted-1:3.9-13.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) rpm-python-4.11.3-17.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) iscsi-initiator-utils-6.2.0.873-33.el7_2.2.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) python-pcp-3.10.6-2.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) lvm2-python-libs-7:2.02.130-5.el7_2.5.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) perf-3.10.0-327.36.3.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) m2crypto-0.21.1-17.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) bacula-libs-5.2.13-23.1.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) bacula-storage-5.2.13-23.1.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) bacula-client-5.2.13-23.1.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) gnome-python2-canvas-2.28.1-14.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) gnome-python2-bonobo-2.28.1-14.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) gnome-python2-gnomevfs-2.28.1-14.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) gnome-python2-gnome-2.28.1-14.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) pytalloc-2.1.6-1.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) samba-libs-0:4.4.4-9.el7.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) policycoreutils-python-2.5-11.el7_3.x86_64 libpython2.7.so.1.0()(64bit) is needed by (installed) systemd-python-219-30.el7_3.8.x86_64 python-libs(x86-64) = 2.7.5-39.el7_2 is needed by (installed) python-2.7.5-39.el7_2.x86_64 [root at zeppo ~]#
Hi Gary, That "Input/output error" suggests a disk problem to me. Does that file /usr/lib64/python2.7/lib-dynload/itertoolsmodule.so actually exist and is it readable? Also look the the output of 'rpm -V python-libs' to see if rpm considers the installed files to be corrupt. If it's not that, then you could try 'yum reinstall python-libs'. Paddy On Thu, Nov 07, 2019 at 04:18:18PM +0000, Gary Stainburn wrote:> I've just tried a yum update on one of my C7 boxes and got the following output. > > I'm guessing to fix this I need to re-install the RPM, but I can't remove it because of dependancies, so how can I fix the problem? > I've managed to download a later version of the RPM, but haven't managed to find the same version as the one installed. > > Gary > > [root at zeppo ~]# yum install > There was a problem importing one of the Python modules > required to run yum. The error leading to this problem was: > > /usr/lib64/python2.7/lib-dynload/itertoolsmodule.so: cannot read file data: Input/output error > > Please install a package which provides this module, or > verify that the module is installed correctly. > > It's possible that the above module doesn't match the > current version of Python, which is: > 2.7.5 (default, Sep 15 2016, 22:37:39) > [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] > > If you cannot solve this problem yourself, please go to > the yum faq at: > http://yum.baseurl.org/wiki/Faq > > > [root at zeppo ~]# rpm -qf /usr/lib64/python2.7/lib-dynload/itertoolsmodule.so > python-libs-2.7.5-39.el7_2.x86_64 > [root at zeppo ~]# > [root at zeppo ~]# rpm -e python-libs-2.7.5-39.el7_2.x86_64 > error: Failed dependencies: > libpython2.7.so.1.0()(64bit) is needed by (installed) python-lxml-3.2.1-4.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) yum-metadata-parser-1.1.4-10.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) pyliblzma-0.5.3-11.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) pyxattr-0.5.1-5.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) cmpi-bindings-pywbem-0.9.5-6.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) python-kmod-0.9-4.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) newt-python-0.52.15-4.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) python-setproctitle-1.1.6-5.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) python-ethtool-0.8-5.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) python-urwid-1.1.1-3.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) python-pycurl-7.19.0-17.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) PyYAML-3.10-11.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) pygpgme-0.3-9.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) python-cups-1.9.63-6.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) python-2.7.5-39.el7_2.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) libxml2-python-2.9.1-6.el7_2.3.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) gdb-7.6.1-80.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) python-dmidecode-3.10.13-11.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) python-perf-3.10.0-327.36.3.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) cryptsetup-python-1.6.7-1.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) pyparted-1:3.9-13.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) rpm-python-4.11.3-17.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) iscsi-initiator-utils-6.2.0.873-33.el7_2.2.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) python-pcp-3.10.6-2.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) lvm2-python-libs-7:2.02.130-5.el7_2.5.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) perf-3.10.0-327.36.3.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) m2crypto-0.21.1-17.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) bacula-libs-5.2.13-23.1.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) bacula-storage-5.2.13-23.1.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) bacula-client-5.2.13-23.1.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) gnome-python2-canvas-2.28.1-14.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) gnome-python2-bonobo-2.28.1-14.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) gnome-python2-gnomevfs-2.28.1-14.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) gnome-python2-gnome-2.28.1-14.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) pytalloc-2.1.6-1.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) samba-libs-0:4.4.4-9.el7.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) policycoreutils-python-2.5-11.el7_3.x86_64 > libpython2.7.so.1.0()(64bit) is needed by (installed) systemd-python-219-30.el7_3.8.x86_64 > python-libs(x86-64) = 2.7.5-39.el7_2 is needed by (installed) python-2.7.5-39.el7_2.x86_64 > [root at zeppo ~]# > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >-- Paddy Doyle Research IT / Trinity Centre for High Performance Computing, Lloyd Building, Trinity College Dublin, Dublin 2, Ireland. Phone: +353-1-896-3725 https://www.tchpc.tcd.ie/
Hi Paddy, I was suspecting the same, and from the output below I think you're right. However, I was hoping I could just repair this problem for now, and worry about replacing the HDD later. I need to resume some services that also seem to generate this same error. Gary [root at zeppo services]# ll /usr/lib64/python2.7/lib-dynload/itertoolsmodule.so -rwxr-xr-x. 1 root root 61976 Sep 15 2016 /usr/lib64/python2.7/lib-dynload/itertoolsmodule.so [root at zeppo services]# cat /usr/lib64/python2.7/lib-dynload/itertoolsmodule.so cat: /usr/lib64/python2.7/lib-dynload/itertoolsmodule.so: Input/output error [root at zeppo services]# On Thursday 07 November 2019 16:25:54 Paddy Doyle wrote:> Hi Gary, > > That "Input/output error" suggests a disk problem to me. Does that file > /usr/lib64/python2.7/lib-dynload/itertoolsmodule.so actually exist and is > it readable? > > Also look the the output of 'rpm -V python-libs' to see if rpm considers > the installed files to be corrupt. > > If it's not that, then you could try 'yum reinstall python-libs'. > > Paddy > > On Thu, Nov 07, 2019 at 04:18:18PM +0000, Gary Stainburn wrote: > > > I've just tried a yum update on one of my C7 boxes and got the following output. > > > > I'm guessing to fix this I need to re-install the RPM, but I can't remove it because of dependancies, so how can I fix the problem? > > I've managed to download a later version of the RPM, but haven't managed to find the same version as the one installed. > > > > Gary > > > > [root at zeppo ~]# yum install > > There was a problem importing one of the Python modules > > required to run yum. The error leading to this problem was: > > > > /usr/lib64/python2.7/lib-dynload/itertoolsmodule.so: cannot read file data: Input/output error > > > > Please install a package which provides this module, or > > verify that the module is installed correctly. > > > > It's possible that the above module doesn't match the > > current version of Python, which is: > > 2.7.5 (default, Sep 15 2016, 22:37:39) > > [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] > > > > If you cannot solve this problem yourself, please go to > > the yum faq at: > > http://yum.baseurl.org/wiki/Faq > > > > > > [root at zeppo ~]# rpm -qf /usr/lib64/python2.7/lib-dynload/itertoolsmodule.so > > python-libs-2.7.5-39.el7_2.x86_64 > > [root at zeppo ~]# > > [root at zeppo ~]# rpm -e python-libs-2.7.5-39.el7_2.x86_64 > > error: Failed dependencies: > > libpython2.7.so.1.0()(64bit) is needed by (installed) python-lxml-3.2.1-4.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) yum-metadata-parser-1.1.4-10.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) pyliblzma-0.5.3-11.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) pyxattr-0.5.1-5.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) cmpi-bindings-pywbem-0.9.5-6.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) python-kmod-0.9-4.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) newt-python-0.52.15-4.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) python-setproctitle-1.1.6-5.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) python-ethtool-0.8-5.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) python-urwid-1.1.1-3.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) python-pycurl-7.19.0-17.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) PyYAML-3.10-11.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) pygpgme-0.3-9.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) python-cups-1.9.63-6.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) python-2.7.5-39.el7_2.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) libxml2-python-2.9.1-6.el7_2.3.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) gdb-7.6.1-80.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) python-dmidecode-3.10.13-11.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) python-perf-3.10.0-327.36.3.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) cryptsetup-python-1.6.7-1.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) pyparted-1:3.9-13.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) rpm-python-4.11.3-17.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) iscsi-initiator-utils-6.2.0.873-33.el7_2.2.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) python-pcp-3.10.6-2.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) lvm2-python-libs-7:2.02.130-5.el7_2.5.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) perf-3.10.0-327.36.3.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) m2crypto-0.21.1-17.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) bacula-libs-5.2.13-23.1.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) bacula-storage-5.2.13-23.1.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) bacula-client-5.2.13-23.1.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) gnome-python2-canvas-2.28.1-14.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) gnome-python2-bonobo-2.28.1-14.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) gnome-python2-gnomevfs-2.28.1-14.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) gnome-python2-gnome-2.28.1-14.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) pytalloc-2.1.6-1.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) samba-libs-0:4.4.4-9.el7.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) policycoreutils-python-2.5-11.el7_3.x86_64 > > libpython2.7.so.1.0()(64bit) is needed by (installed) systemd-python-219-30.el7_3.8.x86_64 > > python-libs(x86-64) = 2.7.5-39.el7_2 is needed by (installed) python-2.7.5-39.el7_2.x86_64 > > [root at zeppo ~]# > > _______________________________________________ > > CentOS mailing list > > CentOS at centos.org > > https://lists.centos.org/mailman/listinfo/centos > > >-- Gary Stainburn Group I.T. Manager Ringways Garages http://www.ringways.co.uk https://fundraise.cancerresearchuk.org/page/gary-walks-all-over-cancer-31
Possibly Parallel Threads
- yum install fails - itertoolsmodule.so
- yum install fails - itertoolsmodule.so
- Problem compiling Samba4, Python installed in nonstandard location
- Re: Memory corruption when testing nbdkit python plugin with nbd-tester-client?
- upgrade-ing samba on debian jessie. ( 4.1.17 to 4.2.3 sernet ) fails and solutions.