You are not logged in.

#1 2019-11-30 18:43:32

Pena
Member
Registered: 2019-10-04
Posts: 107

[Solved]Optimus manager doesnt work again

My problem started when optimus manager 1.2.2 launched and since pacman decided to upgrade it, everything broke
showing me the following when i try to run optimus-manager command(any):

Traceback (most recent call last):
  File "/usr/bin/optimus-manager", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3252, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'optimus-manager==1.2.1' distribution was not found and is required by the application

(it always shown this error altought i have manually deleted optimus and git cloned it twice)

Last edited by Pena (2019-11-30 18:58:59)

Offline

#2 2019-11-30 19:00:19

Pena
Member
Registered: 2019-10-04
Posts: 107

Re: [Solved]Optimus manager doesnt work again

Pena wrote:

My problem started when optimus manager 1.2.2 launched and since pacman decided to upgrade it, everything broke
showing me the following when i try to run optimus-manager command(any):

Traceback (most recent call last):
  File "/usr/bin/optimus-manager", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3252, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'optimus-manager==1.2.1' distribution was not found and is required by the application

(it always shown this error although i have manually deleted optimus and git cloned it twice)

I found the solution i was already finding it weird that there was no makepkg but then i noticed i was copying the upstream url not the git clone one, guess the solution is being more attentive
As someone said as a comment(in the AUR page) just rebuild it and it works

Last edited by Pena (2019-11-30 19:01:31)

Offline

Board footer

Powered by FluxBB