Python 3 upgrade FAHControl (Linux)

Moderators: Site Moderators, FAHC Science Team

Post Reply
Psnarf
Posts: 10
Joined: Sun Sep 01, 2019 4:37 pm

Python 3 upgrade FAHControl (Linux)

Post by Psnarf »

:e?: 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
castlebomb44
Posts: 24
Joined: Mon Dec 03, 2007 2:44 am

Re: Python 3 upgrade FAHControl (Linux)

Post by castlebomb44 »

Yeah Python 2 is getting put out to pasture.
I have not see any news on FAHControl being upgraded to use Python 3.
jonault
Posts: 216
Joined: Fri Dec 14, 2007 9:53 pm

Re: Python 3 upgrade FAHControl (Linux)

Post by jonault »

Bruce posted at the end of this recent thread discussing the python2 problems on Linux that an updated client is in work that will fix this, but there's no release date yet.
Image
bruce
Posts: 20824
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: Python 3 upgrade FAHControl (Linux)

Post by bruce »

castlebomb44 wrote:Yeah Python 2 is getting put out to pasture.
I have not see any news on FAHControl being upgraded to use Python 3.
FAH generally does not preannounce changes. :( Sometimes the information slips out in a discussion and I simply repeat what I've heard.

It's certainly known that Python is a problem but nobody has promised when a fix will be available.
Post Reply