Python 3 upgrade FAHControl (Linux)
Posted: Wed Feb 19, 2020 5:53 pm
FAHControl throws syntax errors in Python3 unless the shebang line is changed to: #!/usr/bin/python2. The issue is 'try/except' on lines 57 and 80.
Also, this may need to be addressed:
Traceback:
File "/usr/lib64/python2.7/site-packages/fah/Client.py", line 352, in update
self.process_message(app, type, data)
File "/usr/lib64/python2.7/site-packages/fah/Client.py", line 336, in process_message
elif type == 'units': self.process_units(app, data)
File "/usr/lib64/python2.7/site-packages/fah/Client.py", line 287, in process_units
if self.selected: self.config.update_status_ui(app)
File "/usr/lib64/python2.7/site-packages/fah/ClientConfig.py", line 534, in update_status_ui
self.update_status_slots(app)
File "/usr/lib64/python2.7/site-packages/fah/ClientConfig.py", line 435, in update_status_slots
app.slot_status_tree.get_selection().select_iter(selected_row)
TypeError: iter should be a GtkTreeIter
Rumor has it there was an end-of-life party for Python 2 last month. https://docs.python.org/3/howto/pyporting.html
Also, this may need to be addressed:
Traceback:
File "/usr/lib64/python2.7/site-packages/fah/Client.py", line 352, in update
self.process_message(app, type, data)
File "/usr/lib64/python2.7/site-packages/fah/Client.py", line 336, in process_message
elif type == 'units': self.process_units(app, data)
File "/usr/lib64/python2.7/site-packages/fah/Client.py", line 287, in process_units
if self.selected: self.config.update_status_ui(app)
File "/usr/lib64/python2.7/site-packages/fah/ClientConfig.py", line 534, in update_status_ui
self.update_status_slots(app)
File "/usr/lib64/python2.7/site-packages/fah/ClientConfig.py", line 435, in update_status_slots
app.slot_status_tree.get_selection().select_iter(selected_row)
TypeError: iter should be a GtkTreeIter
Rumor has it there was an end-of-life party for Python 2 last month. https://docs.python.org/3/howto/pyporting.html