Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 804291

Summary: dev-python/pygobject-3.40.1-r1: ValueError: Namespace Poppler not available
Product: Gentoo Linux Reporter: Lin Jian <me>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: runtime error for pympress

Description Lin Jian 2021-07-25 23:59:40 UTC
Created attachment 727020 [details]
runtime error for pympress

The minimal code to reproduce this bug is:

>>> import gi
>>> gi.require_version('Poppler', '0.18')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.9/site-packages/gi/__init__.py", line 126, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Poppler not available

Background: I wrote an ebuild for pympress[1]. When I run pympress, the attached error appears.

The author of pympress says[2], "Introspection bindings for poppler may be shipped separately, ensure you have those as well (typelib-1_0-Poppler-0_18 on OpenSUSE, gir1.2-poppler-0.18 on Ubuntu)".

[1]: https://github.com/Cimbali/pympress
[2]: https://github.com/Cimbali/pympress#dependencies
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-07-26 05:16:27 UTC
Do you have poppler[introspection]?
Comment 2 Lin Jian 2021-07-26 05:42:22 UTC
Enabling introspection do solve this problem. Thanks.