persepolisdm / persepolis

Persepolis Download Manager is a GUI for aria2.

Home Page:https://persepolisdm.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Persepolis does not start on Mabox (Manjaro spin); ModuleNotFoundError

erikjms opened this issue · comments

System Details:

  • Operating System: Linux
  • Distro(For GNU/Linux and BSD users): Mabox (based on Manjaro)
  • Desktop Environment(For GNU/Linux and BSD users): Openbox WM
  • Persepolis Version: 3.2.0
  • How do you install Persepolis? from Manjaro community repo, using pacman

Error message:

  File "/usr/bin/persepolis", line 33, in <module>
    sys.exit(load_entry_point('persepolis==3.2.0', 'console_scripts', 'persepolis')())
  File "/usr/bin/persepolis", 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/persepolis/__main__.py", line 20, in <module>
    from persepolis.scripts import persepolis
  File "/usr/lib/python3.9/site-packages/persepolis/scripts/persepolis.py", line 93, in <module>
    from persepolis.scripts.mainwindow import MainWindow
  File "/usr/lib/python3.9/site-packages/persepolis/scripts/mainwindow.py", line 26, in <module>
    from persepolis.scripts.setting import PreferencesWindow
  File "/usr/lib/python3.9/site-packages/persepolis/scripts/setting.py", line 18, in <module>
    from persepolis.gui.setting_ui import Setting_Ui, KeyCapturingWindow_Ui
  File "/usr/lib/python3.9/site-packages/persepolis/gui/setting_ui.py", line 22, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Steps to reproduce

After install, clicked on menu item. Nothing happened.
Opened terminal and ran:

$: persepolis

Received above error message.

Rebooted, just because.

Same results.

Comments

'pkg_resources' seems on odd python(3) library name, so although I can see that I do not have it installed, I checked the Arch and Manjaro repos for anything close, and nothing exists at present.

Whether this is related or not: the current version of python-pyqt5 on Manjaro is 5.15.6-2.
Installation of persepolis and its dependencies produced no interesting log output.

Solved after seeing pull request:

#858 Explicitly require setuptools, gui/setting_ui.py imports pkg_resources

Installed python-setuptools; persepolis launches now.

Leaving this open to call attention to the pull request itself.