I have previously used FAH with python 2.7 (flatpak) then took a break and wanted to get back to it using the python 3 version.
I have no problem running the client from the cli.
However, I get this error when attempting to start FAHControl
Code: Select all
$ FAHControl
Traceback (most recent call last):
File "/usr/bin/FAHControl", line 39, in <module>
if sys.platform.startswith('linux'): set_proc_name('FAHControl')
File "/usr/bin/FAHControl", line 35, in set_proc_name
buff.value = name
TypeError: bytes expected instead of str instance
Code: Select all
import os
import sys
import inspect
import socket
from optparse import OptionParser
from fah import FAHControl, load_fahcontrol_db
from fah.util import *
from fah.db import *
def set_proc_name(name):
from ctypes import cdll, byref, create_string_buffer
libc = cdll.LoadLibrary('libc.so.6')
buff = create_string_buffer(len(name)+1)
buff.value = name
libc.prctl(15, byref(buff), 0, 0, 0)
if sys.platform.startswith('linux'): set_proc_name('FAHControl')
Is this a known issue?
Is there a workaround that will allow fahcontrol to properly launch?
What suggestions can you make to assist me to launch FAH and properly control it?