FAHControl won't install on CentOS 8

Moderators: Site Moderators, FAHC Science Team

Post Reply
oilyfishhead
Posts: 11
Joined: Fri Apr 10, 2020 3:05 pm

FAHControl won't install on CentOS 8

Post by oilyfishhead »

Computer specs:
2 * Xeon E5-2695v4, 18/36 cores/threads each
256G RAM
Nvidia GTX 1060
2 * Nvidia Tesla M60
2 * Nvidia Tesla T4

Network Connection: 8M DSL, No firewall or proxy
Operating System: CentOS 8, Latest updates applied
Overclocked?: No
Stable?: Yes
Software: 7.5.1-1
WU details: I have no idea what this means.

When I run

Code: Select all

rpm -i fahcontrol-7.5.1-1.noarch.rpm
it returns ;

Code: Select all

/usr/bin/python is needed by fahcontrol-7.5.1-1.noarch
python is needed by fahcontrol-7.5.1-1.noarch
python2 and python36 are installed.

fahclient and fahviewer are running fine.

I tried;

Code: Select all

cd /usr/lib
sudo ln -s /usr/lib/python2.7 /usr/lib/python2.6
sudo cp -R /usr/lib/python2.6/site-packages/fah /usr/lib/python2.7/site-packages/fah
cp returns;

Code: Select all

cp: cannot stat '/usr/lib/python2.6/site-packages/fah' : No such file or directory
Any ideas?
foldy
Posts: 2040
Joined: Sat Dec 01, 2012 3:43 pm
Hardware configuration: Folding@Home Client 7.6.13 (1 GPU slots)
Windows 7 64bit
Intel Core i5 2500k@4Ghz
Nvidia gtx 1080ti driver 441

Re: FAHControl won't install on CentOS 8

Post by foldy »

Something like that?
sudo ln -s /usr/bin/python /usr/bin/python2
oilyfishhead
Posts: 11
Joined: Fri Apr 10, 2020 3:05 pm

Re: FAHControl won't install on CentOS 8

Post by oilyfishhead »

Thanks for the response.

/usr/bin/python and /usr/bin/python2 already exist so the symbolic link cannot be created.
pr0ti3n
Posts: 16
Joined: Wed Apr 01, 2020 2:31 am
Location: @homefolding

Re: FAHControl won't install on CentOS 8

Post by pr0ti3n »

On Linux I had a better time using the Github repo for fah-control. Just follow the README.md
https://github.com/FoldingAtHome/fah-control
Image
oilyfishhead
Posts: 11
Joined: Fri Apr 10, 2020 3:05 pm

Re: FAHControl won't install on CentOS 8

Post by oilyfishhead »

The README.md says run

Code: Select all

python FAHControl 
It returns;

Code: Select all

[root@localhost fah-control-master]# python FAHControl
Gtk-Message: 17:13:42.106: Failed to load module "canberra-gtk-module"
Traceback (most recent call last):
  File "FAHControl", line 25, in <module>
    from fah import FAHControl, load_fahcontrol_db
  File "/home/thehawk/Downloads/fah-contol/fah-control-master/fah/__init__.py", line 27, in <module>
    from Version import *
ImportError: No module named Version 
A search on canberra shows 2 files, libcanberra-gtk2-module.so and canbera-gtk2-module.desktop.
mat2
Posts: 9
Joined: Tue Mar 17, 2015 7:23 pm

Re: FAHControl won't install on CentOS 8

Post by mat2 »

The canberra warning is probably harmless.

Quick search for "ImportError: No module named Version" suggested that it has something to do with the Python version. I would try running

Code: Select all

python2 FAHControl
.

I know that it is substandard, but FAHClient can be controlled from the command line, by typing:

Code: Select all

telnet localhost 36330
- write "help" to get a list of commands.
Logs can be found in /var/lib/fahclient.
pr0ti3n
Posts: 16
Joined: Wed Apr 01, 2020 2:31 am
Location: @homefolding

Re: FAHControl won't install on CentOS 8

Post by pr0ti3n »

Yeah like mat2 says its a python problem. I tested the python3 port this morning on Fedora31 and it works fine.
https://github.com/FoldingAtHome/fah-control/pull/56
Image
oilyfishhead
Posts: 11
Joined: Fri Apr 10, 2020 3:05 pm

Re: FAHControl won't install on CentOS 8

Post by oilyfishhead »

Thanks for the link.

I ran

Code: Select all

python2 setup.py build
and that fixed it.
gw666
Posts: 14
Joined: Thu Apr 09, 2020 8:53 am

Re: FAHControl won't install on CentOS 8

Post by gw666 »

There is no longer a /usr/bin/python on EL8, only /usr/bin/python2 and /usr/bin/python3, so the package deps cannot be resolved. The package must be adapted for EL8 or installed with --nodeps.
Post Reply