I attempted to update Python on my CentOS 5.6 VM and have encountered some issues afterward. Initially, yum
wouldn't work, but I have resolved that.
However, now I am unable to access the Network Configuration section under setup
.
When I do select this option, I see this at the command line:
[root@crmpicco ~]# setup
Traceback (most recent call last):
File "/usr/sbin/system-config-network-tui", line 9, in <module>
from snack import *
ImportError: No module named snack
Line 9 on that file is this:
from snack import *
I'm not familiar with Python (I'm a PHP developer), so I'm not sure where to go with this or how to fix it.
This is what I have installed relating to Python:
[root@crmpicco ~]# yum list installed | grep python
MySQL-python.x86_64 1.2.1-1 installed
audit-libs-python.x86_64 1.7.18-2.el5 installed
dbus-python.x86_64 0.70-9.el5_4 installed
gamin-python.x86_64 0.1.7-8.el5 installed
gnome-python2.x86_64 2.16.0-1.fc6 installed
gnome-python2-bonobo.x86_64 2.16.0-1.fc6 installed
gnome-python2-canvas.x86_64 2.16.0-1.fc6 installed
gnome-python2-gnomevfs.x86_64 2.16.0-1.fc6 installed
libselinux-python.x86_64 1.33.4-5.7.el5 installed
libxml2-python.x86_64 2.6.26-2.1.2.8.el5_5.1 installed
libxslt-python.x86_64 1.1.17-2.el5_2.2 installed
mod_python.x86_64 3.2.8-3.1 installed
python.x86_64 2.4.3-43.el5 installed
python-devel.i386 2.4.3-43.el5 installed
python-devel.x86_64 2.4.3-43.el5 installed
python-elementtree.x86_64 1.2.6-5 installed
python-iniparse.noarch 0.2.3-4.el5 installed
python-libs.x86_64 2.4.3-43.el5 installed
python-numeric.x86_64 23.7-2.2.2 installed
python-sqlite.x86_64 1.1.7-1.2.1 installed
python-urlgrabber.noarch 3.1.0-6.el5 installed
python26.x86_64 2.6.8-2.el5 installed
python26-libs.x86_64 2.6.8-2.el5 installed
rpm-python.x86_64 4.4.2.3-22.el5 installed
Also, it would seem I am now on Python 2.6.8.
python --version
gives me
Python 2.6.8
setup
. What gives you the command :yum list installed | grep python
? and how do you updated your python version ? – Kiwy yesterdayyum
it I had to point to/usr/bin/python
instead of/usr/bin/python2.4
(or whatever version it updated to). Any idea how to resolve this? Thanks. – crmpicco yesterdayrpm -ivh --force *python*
. That's probably a bit heavy-handed, but it's a faster path back to a working system than trying to get it working with an unsupported version of Python. – Warren Young yesterday