Subject: Bug#1286 closed by Mike Gabriel <[email-masked]> (Re: [X2Go-Dev] Bug#1286: python3 support for pyhoca-gui)

From: [email-masked] (X2Go Bug Tracking System)
Date: Mon, 15 Jan 2024 21:30:03 +0000

This is an automatic notification regarding your Bug report
which was filed against the pyhoca-gui package:

#1286: python3 support for pyhoca-gui

It has been closed by Mike Gabriel <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Mike Gabriel <[email-masked]> by
replying to this email.

-- 
1286: https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1286
X2Go Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [X2Go-Dev] Bug#1286: python3 support for pyhoca-gui
From: Mike Gabriel <[email-masked]>
To: Orion Poplawski <[email-masked]>
Cc: [email-masked]
Date: Mon, 15 Jan 2024 21:27:48 +0000

Control: close -1

On  Sa 14 Apr 2018 22:50:05 CEST, Orion Poplawski wrote:

> On 04/14/2018 01:02 PM, Mike Gabriel wrote:
>> Hi Orion,
>>
>> On  Sa 14 Apr 2018 19:25:15 CEST, Orion Poplawski wrote:
>>
>>> Package: pyhoca-gui
>>> Version: 0.5.0.7
>>>
>>> 2to3 is not sufficient to add python3 support of pyhoca-gui.  The  
>>> attached patches are needed as well.
>>>
>>> file() is no longer present in python3.  The mro patch fixes:
>>>
>>> /usr/bin/python3.4 setup.py build '--executable=/usr/bin/python3.4 -s'
>>> Traceback (most recent call last):
>>>   File "setup.py", line 212, in <module>
>>>     class build_installer_bbfreeze(build_installer, Freezer, Command):
>>> TypeError: Cannot create a consistent method resolution
>>> order (MRO) for bases object, Command
>>
>> Thanks for giving Pyhoca-GUI and Python3 a shot. Has a python3'ish  
>> wxpython already landed in Fedora? Obviously.
>>
>> In Debian, this is still all on Python2.
>>
>> I'll take a look the coming week.
>>
>> Mike
>
> In Fedora there is python3-wxpython4.  Will probably need some porting.
>
> https://wxpython.org/Phoenix/docs/html/MigrationGuide.html

We have Python3 support in pyhoca-gui around for a while now. However,  
the UI is currently +/- broken with latest wxGTK. Also, the taskbar  
icon should be rendered via appindicator API. This should all be  
coming "soon"...

Mike
-- 

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: [email-masked], http://das-netzwerkteam.de

Subject: python3 support for pyhoca-gui
From: Orion Poplawski <[email-masked]>
To: [email-masked]
Date: Sat, 14 Apr 2018 11:25:15 -0600

Package: pyhoca-gui
Version: 0.5.0.7

2to3 is not sufficient to add python3 support of pyhoca-gui.  The 
attached patches are needed as well.

file() is no longer present in python3.  The mro patch fixes:

/usr/bin/python3.4 setup.py build '--executable=/usr/bin/python3.4 -s'
Traceback (most recent call last):
   File "setup.py", line 212, in <module>
     class build_installer_bbfreeze(build_installer, Freezer, Command):
TypeError: Cannot create a consistent method resolution
order (MRO) for bases object, Command

-- 
Orion Poplawski
Manager of NWRA Technical Systems          720-772-5637
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       [email-masked]
Boulder, CO 80301                 https://www.nwra.com/
diff -up pyhoca-gui-0.5.0.7/setup.py.file pyhoca-gui-0.5.0.7/setup.py
--- pyhoca-gui-0.5.0.7/setup.py.file	2017-09-24 03:02:41.000000000 -0600
+++ pyhoca-gui-0.5.0.7/setup.py	2018-04-14 10:51:22.120132138 -0600
@@ -33,7 +33,7 @@ PROGRAM_DESC_SHORT = '%s is a graphical
 
 # silence pyflakes with assigning a dummy version here... the real __VERSION__ assignment happens below
 __VERSION__ = '0.0.0.0'
-for line in file(os.path.join('pyhoca', 'wxgui', '__init__.py')).readlines():
+for line in open(os.path.join('pyhoca', 'wxgui', '__init__.py'),'r').readlines():
     if (line.startswith('__VERSION__')):
         exec(line.strip())
 if platform.system() == 'Windows':
diff -up pyhoca-gui-0.5.0.7/setup.py.mro pyhoca-gui-0.5.0.7/setup.py
--- pyhoca-gui-0.5.0.7/setup.py.mro	2018-04-14 10:52:19.582773079 -0600
+++ pyhoca-gui-0.5.0.7/setup.py	2018-04-14 11:05:40.829314467 -0600
@@ -209,7 +209,7 @@ class build_installer_py2exe(build_insta
         # First, let py2exe do it's work.
         py2exe.run(self)
 
-class build_installer_bbfreeze(build_installer, Freezer, Command):
+class build_installer_bbfreeze(build_installer, Command, Freezer):
 
     user_options = [
         ('dist-dir=', 'd',