[pacman-dev] pyalpm/pycman -- how to check if a package is installed?

Rémy Oudompheng remyoudompheng at gmail.com
Sat Jul 30 15:27:49 EDT 2011


On 2011/7/30 Kwpolska <kwpolska at gmail.com> wrote:
> Hi,
> I'd like to use pyalpm and pycman in my project.  I need to get the
> database.  Unfortunately, when I run the code, I get an exception
> saying "data is not initialized".  How to fix that?

Hello,

libalpm must be initialized and configured before working properly.
pyalpm provides several helper functions in pycman.config to do the
initialization through the /etc/pacman.conf file.

Rémy.


More information about the pacman-dev mailing list