Subject: Re: [bug#37839] [PATCH] gnu: Add pdfarranger.

From: Ludovic Courtès <[email-masked]>
Date: Mon, 21 Oct 2019 23:25:55 +0200

Hi Ben,

Ben Sturmfels <[email-masked]> skribis:

> * gnu/packages/pdf.scm (pdfarranger): New public variable.

Applied!

I’ve followed up with a patch that sets ‘GI_TYPELIB_PATH’ to address
this error:

--8<---------------cut here---------------start------------->8---
$ /gnu/store/9r9yzb15rpxl1nzzrm9a96assrffqyij-pdfarranger-1.3.1/bin/pdfarranger --help
Traceback (most recent call last):
  File "/gnu/store/9r9yzb15rpxl1nzzrm9a96assrffqyij-pdfarranger-1.3.1/bin/.pdfarranger-real", line 11, in <module>
    load_entry_point('pdfarranger==1.3.1', 'console_scripts', 'pdfarranger')()
  File "/gnu/store/608bvypsh90c58apvd2cgg3m9l2pwjqn-python-3.7.4/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/gnu/store/608bvypsh90c58apvd2cgg3m9l2pwjqn-python-3.7.4/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
    return ep.load()
  File "/gnu/store/608bvypsh90c58apvd2cgg3m9l2pwjqn-python-3.7.4/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2411, in load
    return self.resolve()
  File "/gnu/store/608bvypsh90c58apvd2cgg3m9l2pwjqn-python-3.7.4/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2417, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/gnu/store/9r9yzb15rpxl1nzzrm9a96assrffqyij-pdfarranger-1.3.1/lib/python3.7/site-packages/pdfarranger/pdfarranger.py", line 74, in <module>
    gi.require_version('Gtk', '3.0')
  File "/gnu/store/z5fdc5aa9hs4c3p79ajzgxhazv7702y8-python-pygobject-3.28.3/lib/python3.7/site-packages/gi/__init__.py", line 130, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available
--8<---------------cut here---------------end--------------->8---

Thanks,
Ludo’.