Am Mittwoch, 13. Juli 2005 18:00 schrieb Matthew Miller: > On Wed, Jul 13, 2005 at 05:03:37PM +0200, Hans-Peter Jansen wrote: > > The yum libraries do not seem to be available on your system > > for this version of python: 2.4 (#1, Mar 22 2005, 21:42:42) > > [GCC 3.3.5 20050117 (prerelease) (SUSE Linux)] > > How useful is it really to have this version information here? Questionable, sure, but doesn't do any harm either.. > Since this is only triggered by an import error, how about a more > specific message? Well, and since not necessarily an error with the > yum module itself, a message which is also more general: > > There was a problem importing one of the Python modules > required to run yum. The error leading to this problem was: > > No module named libxml2mod > > Please install a package which provides this module, or > verify that the module is installed correctly. > > > Optionally, if the version information is really helpful, add: > > It's possible that the above module doesn't match the > current version of Python, which is: 2.3.4 (#1, Feb 2 2005, > 12:11:53) [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] Here's the revised version, with this output: There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named libxml2mod 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.4 (#1, Mar 22 2005, 21:42:42) [GCC 3.3.5 20050117 (prerelease) (SUSE Linux)] If you cannot solve this problem yourself, please send this message to <yum@xxxxxxxxxxxxxxxxxxxx>. For comparison, this is the current one: The yum libraries do not seem to be available on your system for this version of python 2.4 (#1, Mar 22 2005, 21:42:42) [GCC 3.3.5 20050117 (prerelease) (SUSE Linux)] Please make sure the package you used to install yum was built for your install of python. Sorry for the way to long lines, but I just preserved the original line breaks! Patch attached. ChangeLog entry: 2005-07-13 19:10 frispete <hpj@xxxxxxxxx> * bin/yum.py: rework module import exception message Matthew, thanks for your comments, Pete -------------- next part -------------- A non-text attachment was scrubbed... Name: yum-import-exception.diff Type: text/x-diff Size: 982 bytes Desc: not available Url : http://lists.dulug.duke.edu/pipermail/yum/attachments/20050713/a023cf38/yum-import-exception.bin