Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > ImportError: No module named rpm

Reply
Thread Tools

ImportError: No module named rpm

 
 
Wicked
Guest
Posts: n/a
 
      08-14-2003
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need an example program that implements rpm -pql via import rpm Steven W. Orr Python 1 03-04-2011 04:21 PM
Using JYTHON inside ANT : access os module -> "ImportError: no module named javaos" eric_bellard Python 1 10-07-2004 05:41 AM
pystone: pydotorg's RPM scores better than Fedora 2's RPM Zhi Min Python 0 06-11-2004 08:40 AM
Re: Python 2.3.2 RPM's for Redhat 8.0 or Python source RPM andupgrade procedure? Cliff Wells Python 1 10-13-2003 01:03 PM
Python 2.3.2 RPM's for Redhat 8.0 or Python source RPM and upgrade procedure? Scott Chapman Python 0 10-03-2003 05:43 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57