469,268 Members | 981 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,268 developers. It's quick & easy.

ImportError: No module named rpm

Hi all,

Has anyone got rpm.py? Is this a class/module for Python?

I am getting the following error:

File "./extra/scripts/update_release.py", line 42, in ?
import rpm
ImportError: No module named rpm

I am using Solaris 9 and the Python package from Sunfreeware.com.

The following test code produces a "FAIL" on my system.

#!/usr/local/bin/python2.2
from sys import exit

def main():
try:
import rpm
except ImportError:
print "FAIL"
exit(-1)
print "SUCCESS"
exit(0)

if __name__ == "__main__":
main()

Thanks for any help in advance.

Wicked

Jul 18 '05 #1
0 3591

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Carsten Gehling | last post: by
reply views Thread by M. Lavasani | last post: by
4 posts views Thread by prashant | last post: by
reply views Thread by Robert Dailey | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.