Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 808775 - net-p2p/deluge: AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
Summary: net-p2p/deluge: AttributeError: module 'importlib._bootstrap' has no attribut...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Paolo Pedroni
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-17 17:20 UTC by Ivo Šmerek
Modified: 2021-08-19 10:03 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info.txt,7.72 KB, text/plain)
2021-08-17 17:20 UTC, Ivo Šmerek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivo Šmerek 2021-08-17 17:20:08 UTC
Created attachment 733605 [details]
emerge --info

I'm not sure if it is an upstream bug or not. Every time I try to run `deluge` or `deluge-gtk` I get this error:

Traceback (most recent call last):
  File "/usr/bin/deluge", line 33, in <module>
    sys.exit(load_entry_point('deluge==2.0.3', 'gui_scripts', 'deluge')())
  File "/usr/bin/deluge", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3.9/site-packages/deluge/ui/ui_entry.py", line 22, in <module>
    import pkg_resources
  File "/home/ivo/.local/lib/python3.9/site-packages/pkg_resources.py", line 1479, in <module>
    register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
Comment 1 Paolo Pedroni 2021-08-19 09:51:58 UTC
(In reply to Ivo Šmerek from comment #0)
> Created attachment 733605 [details]
> emerge --info
> 
> I'm not sure if it is an upstream bug or not. Every time I try to run
> `deluge` or `deluge-gtk` I get this error:
> 
> Traceback (most recent call last):
>   File "/usr/bin/deluge", line 33, in <module>
>     sys.exit(load_entry_point('deluge==2.0.3', 'gui_scripts', 'deluge')())
>   File "/usr/bin/deluge", line 25, in importlib_load_entry_point
>     return next(matches).load()
>   File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
>     module = import_module(match.group('module'))
>   File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
>   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
>   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
>   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
>   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
>   File "<frozen importlib._bootstrap>", line 228, in
> _call_with_frames_removed
>   File "/usr/lib/python3.9/site-packages/deluge/ui/ui_entry.py", line 22, in
> <module>
>     import pkg_resources
>   File "/home/ivo/.local/lib/python3.9/site-packages/pkg_resources.py", line
          ^^^^^^^^^^^^^^^^
I "think" it's a conflict with some module in your home directory.

Can you try with a "clean" user?

> 1479, in <module>
>     register_loader_type(importlib_bootstrap.SourceFileLoader,
> DefaultProvider)
> AttributeError: module 'importlib._bootstrap' has no attribute
> 'SourceFileLoader'
Comment 2 Ivo Šmerek 2021-08-19 10:03:46 UTC
You are right, I didn't notice that. It works fine. Thank you.