Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Judging by the error message, it looks like you have a custom build of Python 2.6 in your $PATH. The system copy of yum (/usr/bin/yum) assumes it will be run with the system copy of python /usr/bin/python), and since Fedora 14, the system copy of Python has been Python 2.7

You can run:

which python

to see which version of Python is in the $PATH

As a workaround, you can explicitly invoke yum with the system python like this:

/usr/bin/python yum

followed by any yum commands.

click to hide/show revision 2
fixed workaround invocation

Judging by the error message, it looks like you have a custom build of Python 2.6 in your $PATH. The system copy of yum (/usr/bin/yum) assumes it will be run with the system copy of python /usr/bin/python), and since Fedora 14, the system copy of Python has been Python 2.7

You can run:

which python

to see which version of Python is in the $PATH

As a workaround, you can explicitly invoke yum with the system python like this:

/usr/bin/python yum
/usr/bin/yum

followed by any yum commands.

Judging by the error message, it looks like you have a custom build of Python 2.6 in your $PATH. The system copy of yum (/usr/bin/yum) assumes it will be run with the system copy of python /usr/bin/python), and since Fedora 14, the system copy of Python has been Python 2.7

You can run:

which python

to see which version of Python is in the $PATH

As a workaround, you can explicitly invoke yum with the system python like this:

/usr/bin/python /usr/bin/yum

followed by any yum commands.commands, all on one line