Jump to content

F@H advanced control fails to install due to missing dependencies on Pop OS

Go to solution Solved by Sant_HH,

Update: Got the Python3 Fork working. Here's what I did:

1. Download python3-fahcontrol_7.7.0-1_all.deb from https://github.com/cdberkstresser/fah-control/releases/tag/Python3_Testing-Linux

2. Install it with sudo apt install ./python3-fahcontrol_7.7.0-1_all.deb in the directory you downloaded in

Step 3 is specific for 22.04 if you run 20.04 you shouldn't have to do this

3. In the file /usr/lib/python3/dist-packages/fah/util/OrderedDict.py

replace from collections import MutableMapping as DictMixin

with

import sys
if sys.version_info[:2] >= (3, 8):
    from collections.abc import MutableMapping as DictMixin
else:
    from collections import MutableMapping as DictMixin

save then exit

4. Run FAHControl in the terminal and it will launch

 

The program can only be started from the terminal and will not appear in the launcher

 

Resources I used

https://foldingforum.org/viewtopic.php?t=36830

https://github.com/cdberkstresser/fah-control/issues/25

Long story short, I fresh installed pop os, tried to install f@h advanced control and it fails due to unmet dependencies (python2). I had this problem on my previous install but can't remember what I did to get it working nor find the forum post I used.

 

I did find a fork on GitHub that uses python3 but have no idea how to install it https://github.com/cdberkstresser/fah-control

 

Help would be appreciated.1388784076_IMG_20230330_2101390122.thumb.jpg.47c1028a001c970b3f5dac52eb0e5723.jpg

Failure is part of success. I may make mistakes, that's how we all learn.

Folding at Home

Link to comment
Share on other sites

Link to post
Share on other sites

As the message says, it is missing the packages "python" and either "python-gtk2" or "python-gnome2". So you need to install these. Try to install the packages manually, I assume that won't work because of a missing repo, otherwise it would've likely resolved the dependency automatically.

 

Afaik Python 2 is considered deprecated and was removed. This could be a potential workaround:

https://askubuntu.com/a/1235347

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
Share on other sites

Link to post
Share on other sites

13 minutes ago, Eigenvektor said:

As the message says, it is missing the packages "python" and either "python-gtk2" or "python-gnome2". So you need to install these. Try to install the packages manually, I assume that won't work because of a missing repo, otherwise it would've likely resolved the dependency automatically.

 

Afaik Python 2 is considered deprecated and was removed. This could be a potential workaround:

https://askubuntu.com/a/1235347

Now I get this error

The following packages have unmet dependencies:
 python-gtk2 : Depends: python (< 2.8) but it is not installable
               Depends: python (>= 2.7) but it is not installable
               Depends: python:any (>= 2.6.6-7~) but it is not installable
               Depends: libgdk-pixbuf2.0-0 (>= 2.22.0) but it is not installed
               Depends: python-cairo (>= 1.0.2-1.1) but it is not installable
               Depends: python-gobject-2 (>= 2.21.3) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

 

Failure is part of success. I may make mistakes, that's how we all learn.

Folding at Home

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Sant_HH said:

Now I get this error

The following packages have unmet dependencies:
 python-gtk2 : Depends: python (< 2.8) but it is not installable
               Depends: python (>= 2.7) but it is not installable
               Depends: python:any (>= 2.6.6-7~) but it is not installable
               Depends: libgdk-pixbuf2.0-0 (>= 2.22.0) but it is not installed
               Depends: python-cairo (>= 1.0.2-1.1) but it is not installable
               Depends: python-gobject-2 (>= 2.21.3) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

 

More or less as expected. Python 2 is no longer available in the official repositories, it's been deprecated in favor of Python 3. So you'll need to install it some other way. The link I added to my answer above might help.

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
Share on other sites

Link to post
Share on other sites

Update: Got the Python3 Fork working. Here's what I did:

1. Download python3-fahcontrol_7.7.0-1_all.deb from https://github.com/cdberkstresser/fah-control/releases/tag/Python3_Testing-Linux

2. Install it with sudo apt install ./python3-fahcontrol_7.7.0-1_all.deb in the directory you downloaded in

Step 3 is specific for 22.04 if you run 20.04 you shouldn't have to do this

3. In the file /usr/lib/python3/dist-packages/fah/util/OrderedDict.py

replace from collections import MutableMapping as DictMixin

with

import sys
if sys.version_info[:2] >= (3, 8):
    from collections.abc import MutableMapping as DictMixin
else:
    from collections import MutableMapping as DictMixin

save then exit

4. Run FAHControl in the terminal and it will launch

 

The program can only be started from the terminal and will not appear in the launcher

 

Resources I used

https://foldingforum.org/viewtopic.php?t=36830

https://github.com/cdberkstresser/fah-control/issues/25

Failure is part of success. I may make mistakes, that's how we all learn.

Folding at Home

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×