[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: python "rpm" module package



On 10/20/05, Rakotomandimby Mihamina wrote:
> I looked at the packages.debian.org website and thought
> "python2.x-rpm" would be my solution but after install:
>
> root-debian# updatedb; locate rpm.py
> (snip)
>
> So that I see rpm.py does not exist.
> Would you know where and how could I install this one?

I guess you are not very experienced with Python? "import rpm" doesn't
necessarily load rpm.py. Behold:

$ python
Python 2.3.5 (#2, Aug 30 2005, 15:50:26)
[GCC 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import rpm
>>> rpm.__file__
'/usr/lib/python2.3/site-packages/rpm/__init__.pyc'
>>>

rpm is a Python package, not a Python module. "import rpm" loads
rpm/__init__.py.

Seo Sanghyeon



Reply to: