benjaoming / rhythmbox-fullscreen

Display and control rhythmbox via full-screen
Other
8 stars 5 forks source link

ImportError: cannot import name 'escape' from 'cgi' #9

Closed Prn-Ice closed 3 years ago

Prn-Ice commented 4 years ago

When I enable the plugin I get:

Traceback (most recent call last):
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/havoc/.local/share/rhythmbox/plugins/RhythmboxFullscreen/RhythmboxFullscreen.py", line 28, in <module>
    import FullscreenWindow
  File "/home/havoc/.local/share/rhythmbox/plugins/RhythmboxFullscreen/FullscreenWindow.py", line 25, in <module>
    from CairoWidgets import FullscreenEntryButton
  File "/home/havoc/.local/share/rhythmbox/plugins/RhythmboxFullscreen/CairoWidgets.py", line 20, in <module>
    from cgi import escape
ImportError: cannot import name 'escape' from 'cgi' (/usr/lib/python3.8/cgi.py)

(rhythmbox:20680): libpeas-WARNING **: 17:39:40.669: Error loading plugin 'RhythmboxFullscreen'
benjaoming commented 3 years ago

Thanks for reporting this! It's fixed now. I'm not sure if there are any packagers around who can release a .deb, but as you can see, it's reasonably easy to install yourself.