Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 760132 - www-client/qutebrowser-9999: Crash due to missing 'importlib_resources'
Summary: www-client/qutebrowser-9999: Crash due to missing 'importlib_resources'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Stefan Strogin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-16 08:55 UTC by Azat Bahawi
Modified: 2021-01-06 09:41 UTC (History)
4 users (show)

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


Attachments
emerge --info (emerge-info.txt,15.69 KB, text/plain)
2020-12-16 09:23 UTC, Azat Bahawi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Azat Bahawi 2020-12-16 08:55:30 UTC
Running qutebrowser-9999 yields a crash:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.7/qutebrowser", line 33, in <module>
    sys.exit(load_entry_point('qutebrowser==1.14.1', 'gui_scripts', 'qutebrowser')())
  File "/usr/lib/python3.7/site-packages/qutebrowser/qutebrowser.py", line 197, in main
    earlyinit.early_init(args)
  File "/usr/lib/python3.7/site-packages/qutebrowser/misc/earlyinit.py", line 297, in early_init
    check_libraries()
  File "/usr/lib/python3.7/site-packages/qutebrowser/misc/earlyinit.py", line 238, in check_libraries
    _check_modules(modules)
  File "/usr/lib/python3.7/site-packages/qutebrowser/misc/earlyinit.py", line 220, in _check_modules
    importlib.import_module(name)
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import                                                                                                                                                       [118/2747]
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3238, in <module>
    @_call_aside
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3222, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3251, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 567, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 884, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 770, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'importlib_resources>=1.1.0' distribution was not found and is required by qutebrowser



Reproducible: Always

Steps to Reproduce:
1. Emerge qutebrowser-9999
2. Make sure dev-python/importlib_resources is not installed on the system
3. Run the "qutebrowser" executable
Actual Results:  
Crash with the aforementioned backtrace.


Resolvable by installing the dev-python/importlib-resources package.

According to the backtrace, ">=dev-python/importlib-resources-1.1.0" should be added to RDEPENDS for the live ebuild. Although, as per upstream's `requirements.txt` file (https://github.com/qutebrowser/qutebrowser/blob/master/requirements.txt#L5) "importlib-resources==3.3.0" is what needs to be provided.
Comment 1 Azat Bahawi 2020-12-16 09:23:14 UTC
Created attachment 678433 [details]
emerge --info
Comment 2 Stefan Strogin gentoo-dev 2020-12-31 17:36:33 UTC
Do you really need -9999? I was thinking about removing it.
The upstream projects makes releases regularly and quite often.
Comment 3 Vasco Gervasi 2020-12-31 17:58:49 UTC
I think that a 9999 version should be available.
Especially now, as the Brave adblock has been merged.

Thanks
Comment 4 Larry the Git Cow gentoo-dev 2021-01-06 09:41:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dabe69bc128b5d8625736e4b9c679824ac893d3e

commit dabe69bc128b5d8625736e4b9c679824ac893d3e
Author:     Stefan Strogin <steils@gentoo.org>
AuthorDate: 2021-01-06 09:18:02 +0000
Commit:     Stefan Strogin <steils@gentoo.org>
CommitDate: 2021-01-06 09:38:56 +0000

    www-client/qutebrowser: update 9999
    
    - Add missing dependencies.
    - Add new userscripts.
    - Drop python3_6.
    - Fix html docs.
    
    Closes: https://bugs.gentoo.org/760132
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Stefan Strogin <steils@gentoo.org>

 www-client/qutebrowser/qutebrowser-9999.ebuild | 55 +++++++++++++++++---------
 1 file changed, 36 insertions(+), 19 deletions(-)