Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAHControl will not open (Python3 .deb build) #28

Open
Zachinquarantine opened this issue Jul 30, 2023 · 1 comment
Open

FAHControl will not open (Python3 .deb build) #28

Zachinquarantine opened this issue Jul 30, 2023 · 1 comment

Comments

@Zachinquarantine
Copy link

Whenever I attempt to open FAHControl by typing FAHControl in the terminal, I get the following error (Ubuntu 22.04):

Traceback (most recent call last):
  File "/usr/bin/FAHControl", line 25, in <module>
    from fah import FAHControl, load_fahcontrol_db
  File "/usr/lib/python3/dist-packages/fah/__init__.py", line 25, in <module>
    from . import util
  File "/usr/lib/python3/dist-packages/fah/util/__init__.py", line 24, in <module>
    from .OrderedDict import *
  File "/usr/lib/python3/dist-packages/fah/util/OrderedDict.py", line 23, in <module>
    from collections import MutableMapping as DictMixin
ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
@burianvlastimil
Copy link

It appears, there was a change in the latest Python version. The solution is actually very simple.

Just edit the following file as root with your favorite text editor:

/usr/lib/python3/dist-packages/fah/util/OrderedDict.py

Change the line 23:

from this

from collections import MutableMapping as DictMixin

to this

from collections.abc import MutableMapping as DictMixin

Save and try again.

FAHControl now launches on my side. I don't say it actually works as advertised. Maybe so, maybe not... Testing, still a work in progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants