Fedora 31 problems

Moderators: Site Moderators, PandeGroup

Fedora 31 problems

Postby Neill » Wed Oct 30, 2019 5:35 pm

Upgraded from fedora 30 to fedora 31 with the following problems:

1. FAHClient failed to start
2. FAHControl failed with

File "/usr/bin/FAHControl", line 58
if sock.recv(1024).strip() == 'OK': print 'Ok'
^
SyntaxError: invalid syntax

I was running version fah 7.4.4.1
Thanks - any help is appreciated.
Neill
 
Posts: 2
Joined: Wed Feb 11, 2015 6:34 pm

Re: Fedora 31 problems

Postby MeeLee » Thu Oct 31, 2019 5:47 am

Current versions is 7.5.1
Install that one and report back.
MeeLee
 
Posts: 396
Joined: Tue Feb 19, 2019 10:16 pm

Re: Fedora 31 problems

Postby Neill » Thu Oct 31, 2019 3:45 pm

Thanks, I installed 7.5.1 and got the same problem. Then I found out that Fedora 31 had switched to python 3 as the default. To fix the problem change the 1st line of /usr/lib/FAHControl from
#!/usr/bin/env python to #!/usr/bin/env python2
Thanks for your help, Neill.
Neill
 
Posts: 2
Joined: Wed Feb 11, 2015 6:34 pm

Re: Fedora 31 problems

Postby JimboPalmer » Thu Oct 31, 2019 4:18 pm

I thank you for reporting back what worked, our help improves if we know what works to fix issues!
Tsar of all the Rushers
I tried to remain childlike, all I achieved was childish.
A friend to those who want no friends
JimboPalmer
 
Posts: 959
Joined: Mon Feb 16, 2009 4:12 am
Location: Greenwood MS USA

Re: Fedora 31 problems

Postby MeeLee » Fri Nov 01, 2019 6:59 am

Please elaborate on what file you've changed?
FahControl does need Python 2 dependencies, which also are installed, but somehow not called upon in Ubuntu.
However, Python 3 has some different syntaxis, so there might be some issues with bugs.
If your solution works, let us know which files you've changed, and I'll see if the same is true for Ubuntu and it's variants.
PS, if it's true for Ubuntu, the same will be true for Debian.
Then those users who're still running Debian 8 (Jessie) or Stretch (9), can update to Buster (10) ; or those running Ubuntu variants based on Bionic Beaver (18.04), could update to Disco Dingo (19.04) or Eoan Ermine (19.10).
MeeLee
 
Posts: 396
Joined: Tue Feb 19, 2019 10:16 pm

Re: Fedora 31 problems

Postby MeeLee » Sat Nov 02, 2019 5:52 am

I have been playing around with Ubuntu 19, and the solution offered doesn't work.
The location of FAHControl here, is in /usr/bin instead of /usr/lib.

What I think is happening, is what happened to me, when I updated Lubunu 18.04 (or 18.10) to 19.04.
right after the update procedure, it was possible to run FahControl.
However, as soon as more system updates were done (I presume dpkg decided that a python package was no longer needed) it broke compatibility, and FAHControl no loner worked.

That being said, I can run FAHClient (CPU) very nicely on Ubuntu, so I would presume it would work the same for Fedora/Redhat/CentOs/Debian/Mint.
I haven't tried GPU, since I have no access to that yet.
I presume as soon as you do a full upgrade, your system will do the same as mine, and break compatibility.
MeeLee
 
Posts: 396
Joined: Tue Feb 19, 2019 10:16 pm

Re: Fedora 31 problems

Postby wdanwatts » Tue Dec 03, 2019 1:15 am

On my Fedora system, after upgrading to 31 from 30 the FAHControl icon wouldn't bring up the GUI.

I changed the first line of /usr/bin/FAHControl from:
#!/usr/bin/python

to

#!/usr/bin/python2

and then the icon worked again.
wdanwatts
 
Posts: 26
Joined: Wed Oct 22, 2008 4:46 pm


Return to Discussions of General-FAH topics

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron