Skip to content

Commit

Permalink
check in Hans-Peter Jansen's patch to help make the error output when a
Browse files Browse the repository at this point in the history
needed module is missing a bit easier.
  • Loading branch information
Seth Vidal committed Aug 5, 2005
1 parent 835701d commit cebc54b
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions bin/yum.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,22 @@
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, """\
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
%s
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:
%s
If you cannot solve this problem yourself, please send this
message to <[email protected]>.
""" % (sys.exc_value, sys.version)
sys.exit(1)

sys.path.insert(0, '/usr/share/yum-cli')
Expand Down

0 comments on commit cebc54b

Please sign in to comment.