Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 804291 - dev-python/pygobject-3.40.1-r1: ValueError: Namespace Poppler not available
Summary: dev-python/pygobject-3.40.1-r1: ValueError: Namespace Poppler not available
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-25 23:59 UTC by Lin Jian
Modified: 2021-07-26 05:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
runtime error for pympress (file_804291.txt,1.56 KB, text/plain)
2021-07-25 23:59 UTC, Lin Jian
Details

Note You need to log in before you can comment on or make changes to this bug.
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.