LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2018, 08:48 PM   #1
senators24
LQ Newbie
 
Registered: Feb 2018
Posts: 8

Rep: Reputation: Disabled
Yum broken.. importing python module


I've tried to figure out a solution to this on my own, I even reinstalled nghttp2. I can't seem to figure this out. I can't update anything using yum, also EasyApache 4 is failing to load in WHM, giving this error:

Quote:
YUM encountered errors outside of EasyApache 4. Log into the system via SSH to resolve them, or you can click the ‘Refresh’ button to rebuild the system‘s YUM cache.
This is what shows when I try and use yum to do anything:


Quote:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

/lib64/libcurl.so.4: undefined symbol: nghttp2_session_callbacks_set_error_callback

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, Nov 6 2016, 00:28:07)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
I'm using CentOS 7.3
Also, yes I have checked their faq.

Last edited by senators24; 02-25-2018 at 03:30 PM.
 
Old 02-24-2018, 09:14 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
This is a shot in the dark, but what happens when you try

Code:
yum clean all
 
Old 02-24-2018, 09:18 PM   #3
senators24
LQ Newbie
 
Registered: Feb 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
This is a shot in the dark, but what happens when you try

Code:
yum clean all
Same outcome as above. I've even tried rebuilding the cache using

Code:
yum makecache
 
Old 02-24-2018, 09:37 PM   #4
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Another shot in the dark...

Code:
rm -rf /var/cache/yum
What happens then?
 
Old 02-24-2018, 09:50 PM   #5
senators24
LQ Newbie
 
Registered: Feb 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JockVSJock View Post
Another shot in the dark...

Code:
rm -rf /var/cache/yum
What happens then?
I assume it worked, no output was given when I gave that command. However, I'm still receiving the original error. Didn't seem to help.

It's something to do with nghttp2, can't figure out what for the life of me

Quote:
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

/lib64/libcurl.so.4: undefined symbol: nghttp2_session_callbacks_set_error_callback

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, Nov 6 2016, 00:28:07)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
 
Old 02-25-2018, 02:48 PM   #6
senators24
LQ Newbie
 
Registered: Feb 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Can anyone assist?
 
Old 02-25-2018, 03:14 PM   #7
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Question

What version of Linux is this?
 
Old 02-25-2018, 03:29 PM   #8
senators24
LQ Newbie
 
Registered: Feb 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JockVSJock View Post
What version of Linux is this?
My bad. I'm using CentOS 7.3
 
Old 02-27-2018, 08:24 PM   #9
senators24
LQ Newbie
 
Registered: Feb 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Bump up.. still haven't fixed this
 
Old 02-28-2018, 07:09 AM   #10
sgrlscz
Member
 
Registered: Aug 2008
Posts: 123

Rep: Reputation: 84
The message is saying that there is a problem with /lib64/libcurl.so.4. What is the result of:

Code:
rpm -q libcurl
 
Old 02-28-2018, 10:27 AM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
did you by chance CHANGE the default python version ?

the version in the cent base and update repos MUST!!! be used !!!!

now a second/third/ and so on versions can be installed in a side by side set up
-- this is the default on redhat systems

also 7.3 is NOT supported any longer
upgrade to 7.4 -- see the wiki on the centos web site
 
Old 02-28-2018, 04:11 PM   #12
senators24
LQ Newbie
 
Registered: Feb 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sgrlscz View Post
The message is saying that there is a problem with /lib64/libcurl.so.4. What is the result of:

Code:
rpm -q libcurl
This is the outcome:

Code:
libcurl-7.54.0-3.0.cf.rhel7.x86_64


Quote:
Originally Posted by John VV View Post
did you by chance CHANGE the default python version ?

the version in the cent base and update repos MUST!!! be used !!!!

now a second/third/ and so on versions can be installed in a side by side set up
-- this is the default on redhat systems

also 7.3 is NOT supported any longer
upgrade to 7.4 -- see the wiki on the centos web site
I never upgraded anything.. as far as I remember anyway. I just went to install some packages required by Magento and couldn't.
 
Old 03-01-2018, 07:36 AM   #13
sgrlscz
Member
 
Registered: Aug 2008
Posts: 123

Rep: Reputation: 84
That libcurl package looks wrong. The libcurl provided by CentOS is libcurl-7.29.0-42.el7.x86_64.rpm (since you're running 7.3, there might be some other revision, but it'd definitely be 7.29.0-<n>, not 7.54).

You could try downloading the package from a CentOS mirror, then replace the one installed with the one from Cent0S.
 
Old 03-01-2018, 06:42 PM   #14
senators24
LQ Newbie
 
Registered: Feb 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by sgrlscz View Post
That libcurl package looks wrong. The libcurl provided by CentOS is libcurl-7.29.0-42.el7.x86_64.rpm (since you're running 7.3, there might be some other revision, but it'd definitely be 7.29.0-<n>, not 7.54).

You could try downloading the package from a CentOS mirror, then replace the one installed with the one from Cent0S.
You, sir, are a hero!! Removing 7.54 and installing 7.29 did the trick. Thank you!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No module named yum - yum broken keif Linux - Software 3 08-02-2017 05:44 PM
Updated PYTHON and YUM is now broken artsunixclones Linux - Newbie 4 01-16-2017 06:16 PM
Broken Yum - No module named yum scratchyrat Linux - Software 1 03-22-2013 09:58 PM
Yum corrupted on CentOS 6.2, Problem importing one the python modules. WassimZ Linux - Newbie 13 01-14-2013 01:36 PM
Problem importing python module...cant install anything!!! bpedman Linux - Software 0 02-07-2007 08:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration