On Thu, 2005-06-30 at 10:17 +0200, Hans-Peter Jansen wrote: > Am Donnerstag, 30. Juni 2005 09:52 schrieb seth vidal: > > > > > > Seth, what do you think? > > > > I think that the whole reason for catching the import exception was > > to avoid printing the traceback. So putting it back in seems a bit > > backward to me. > > > > Now if you were to modify that to point out the specific import > > modules that failed to import and print that information nicely, then > > that might be merged. > > Understood, how about this: > > --- bin/yum.py.orig 2005-06-30 09:26:32.296304798 +0200 > +++ bin/yum.py 2005-06-30 10:08:45.730858194 +0200 > @@ -3,10 +3,15 @@ > try: > import yum > except ImportError: > - print >> sys.stderr, "The yum libraries do not seem to be available \ > -on your system for this version of python ", sys.version > - print >> sys.stderr, "Please make sure the package you used to install \ > -yum was built for your install of python." > + print >> sys.stderr, """\ > +The yum libraries do not seem to be available on your system > +for this version of python: %s > + > +Please make sure the package you used to install yum was built > +for your install of python. > + > +The error leading to this problem was: %s > +""" % (sys.version, sys.exc_value) > sys.exit(1) > > sys.path.insert(0, '/usr/share/yum-cli') > 1. Can you show me the output a user would see if this were to happen? 2. can you attach this patch to email rather than pasting it in? Thanks and sorry about the long delay - I've been occupied with a bunch of non-yum things. -sv