Rare icon indicating copy to clipboard operation
Rare copied to clipboard

[BUG] The 'pypresence' distribution was not found

Open ZephaniahNoah opened this issue 2 years ago • 6 comments

The AppImage actually runs fine. If I try to run the version installed with Rare-1.8.9.deb I get this:

zephaniahnoah@zephaniahnoah-pc:~$ rare
Traceback (most recent call last):
  File "/usr/bin/rare", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3254, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3237, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3266, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 584, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 901, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 787, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pypresence' distribution was not found and is required by Rare

ZephaniahNoah avatar Jun 02 '22 20:06 ZephaniahNoah

I have no idea, what is the error, but I will try to find the error. It must be an error with the generation of the deb file. As a workaround you can run pip install pypresence or if it won't work, sudo pip install pypresence.

Dummerle avatar Jun 06 '22 19:06 Dummerle

Yea I already tried that. It still can't find it.

ZephaniahNoah avatar Jun 06 '22 21:06 ZephaniahNoah

You can try the latest deb file from Actions: https://github.com/Dummerle/Rare/actions/runs/2521938302

I will replace latest release file soon

Dummerle avatar Jun 18 '22 22:06 Dummerle

screenshot

zephaniahnoah@zephaniahnoah-pc:~/Downloads$ rare
QSocketNotifier: Can only be used with threads started with QThread
libpng warning: iCCP: known incorrect sRGB profile
Error
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/rare/components/tabs/settings/widgets/env_vars.py", line 61, in import_env_vars
    trash_icon.setIcon(qtawesome.icon("mdi.delete"))
  File "/usr/lib/python3/dist-packages/qtawesome/__init__.py", line 125, in icon
    return _instance().icon(*names, **kwargs)
  File "/usr/lib/python3/dist-packages/qtawesome/iconic_font.py", line 259, in icon
    parsed_options.append(self._parse_options(specific_options,
  File "/usr/lib/python3/dist-packages/qtawesome/iconic_font.py", line 308, in _parse_options
    prefix, chars = self._get_prefix_chars(names)
  File "/usr/lib/python3/dist-packages/qtawesome/iconic_font.py", line 342, in _get_prefix_chars
    raise Exception(error)
Exception: Invalid font prefix "mdi"

The above exception was the direct cause of the following exception:

SystemError: <class 'PyQt5.QtCore.Qt.Orientation'> returned a result with an error set

The above exception was the direct cause of the following exception:

SystemError: <class 'PyQt5.QtCore.Qt.Orientation'> returned a result with an error set

The above exception was the direct cause of the following exception:

SystemError: <class 'PyQt5.QtCore.Qt.Orientation'> returned a result with an error set

The above exception was the direct cause of the following exception:

SystemError: <class 'PyQt5.QtCore.Qt.Orientation'> returned a result with an error set

The above exception was the direct cause of the following exception:

SystemError: <class 'PyQt5.QtCore.Qt.Orientation'> returned a result with an error set

The above exception was the direct cause of the following exception:

SystemError: <class 'PyQt5.QtCore.Qt.Orientation'> returned a result with an error set

The above exception was the direct cause of the following exception:

SystemError: <class 'PyQt5.QtCore.Qt.Orientation'> returned a result with an error set

The above exception was the direct cause of the following exception:

SystemError: <class 'PyQt5.QtCore.Qt.Orientation'> returned a result with an error set

The above exception was the direct cause of the following exception:

SystemError: <class 'PyQt5.QtCore.QModelIndex'> returned a result with an error set

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/rare/components/tabs/settings/widgets/ubisoft_activation.py", line 147, in show_ubi_games
    logger.error(
SystemError: <class 'PyQt5.QtCore.QModelIndex'> returned a result with an error set

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/rare/app.py", line 52, in excepthook
    QMessageBox.warning(None, "Error", tb)
SystemError: <class 'PyQt5.QtWidgets.QMessageBox.StandardButton'> returned a result with an error set

Original exception was:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/rare/app.py", line 200, in start_app
    self.mainwindow = MainWindow()
  File "/usr/lib/python3/dist-packages/rare/components/main_window.py", line 26, in __init__
    self.tab_widget = TabWidget(self)
  File "/usr/lib/python3/dist-packages/rare/components/tabs/__init__.py", line 45, in __init__
    self.settings = SettingsTab(self)
  File "/usr/lib/python3/dist-packages/rare/components/tabs/settings/__init__.py", line 20, in __init__
    self.addTab(DefaultGameSettings(True, self), self.tr("Default Settings"))
  File "/usr/lib/python3/dist-packages/rare/components/tabs/settings/default_game_settings.py", line 74, in __init__
    self.load_settings("default")
  File "/usr/lib/python3/dist-packages/rare/components/tabs/settings/default_game_settings.py", line 112, in load_settings
    self.env_vars.update_game(app_name)
  File "/usr/lib/python3/dist-packages/rare/components/tabs/settings/widgets/env_vars.py", line 297, in update_game
    self.import_env_vars()
  File "/usr/lib/python3/dist-packages/rare/components/tabs/settings/widgets/env_vars.py", line 61, in import_env_vars
    trash_icon.setIcon(qtawesome.icon("mdi.delete"))
  File "/usr/lib/python3/dist-packages/qtawesome/__init__.py", line 125, in icon
    return _instance().icon(*names, **kwargs)
  File "/usr/lib/python3/dist-packages/qtawesome/iconic_font.py", line 259, in icon
    parsed_options.append(self._parse_options(specific_options,
  File "/usr/lib/python3/dist-packages/qtawesome/iconic_font.py", line 308, in _parse_options
    prefix, chars = self._get_prefix_chars(names)
  File "/usr/lib/python3/dist-packages/qtawesome/iconic_font.py", line 342, in _get_prefix_chars
    raise Exception(error)
Exception: Invalid font prefix "mdi"

ZephaniahNoah avatar Jun 19 '22 22:06 ZephaniahNoah

You can test the deb file from here. It fixes the error:

https://github.com/Dummerle/Rare/actions/runs/2564295715

Dummerle avatar Jun 26 '22 13:06 Dummerle

Is started loading. When it reached 100% this appeared. screenshot

zephaniahnoah@zephaniahnoah-pc:~$ rare
QSocketNotifier: Can only be used with threads started with QThread
Error

ZephaniahNoah avatar Jun 29 '22 06:06 ZephaniahNoah

Is this issue still relevant in the current version?

loathingKernel avatar Dec 02 '23 12:12 loathingKernel

Closing due to inactivity and old age.

loathingKernel avatar Dec 11 '23 14:12 loathingKernel