Bug 1624543 - Phatch gui is broken on install.
Summary: Phatch gui is broken on install.
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: phatch
Version: 28
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-01 05:26 UTC by Lucious
Modified: 2019-05-28 23:53 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-28 23:53:03 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lucious 2018-09-01 05:26:20 UTC
Description of problem: Phatch fails to launch the gui that makes the program software usable. Below is the error when launching from commandline:

/usr/lib/python2.7/site-packages/phatch/lib/notify.py:24: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
  import gi.repository.Notify as pynotify
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk3/wx/_core.py", line 16765, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "/usr/lib/python2.7/site-packages/phatch/pyWx/gui.py", line 1218, in show_frame
    frame = Frame(self.filename, None, -1, ct.TITLE)
  File "/usr/lib/python2.7/site-packages/phatch/pyWx/gui.py", line 327, in __init__
    frame.Frame.__init__(self, *args, **keyw)
  File "/usr/lib/python2.7/site-packages/phatch/pyWx/wxGlade/frame.py", line 141, in __init__
    self.tree = Tree(self, -1, style=wx.TR_HAS_BUTTONS|wx.TR_NO_LINES|wx.TR_FULL_ROW_HIGHLIGHT|wx.TR_HIDE_ROOT|wx.TR_DEFAULT_STYLE|wx.SUNKEN_BORDER)
  File "/usr/lib/python2.7/site-packages/phatch/pyWx/wxGlade/frame.py", line 26, in __init__
    set_dirty   = parent.set_dirty,
  File "/usr/lib/python2.7/site-packages/phatch/lib/pyWx/treeEdit.py", line 96, in __init__
    self.CreateImageList(icon_size)
  File "/usr/lib/python2.7/site-packages/phatch/lib/pyWx/treeEdit.py", line 111, in CreateImageList
    self._AddFormToImageList(form, icon_size, icon_disabled)
  File "/usr/lib/python2.7/site-packages/phatch/lib/pyWx/treeEdit.py", line 120, in _AddFormToImageList
    wx_image = pil_wxImage(wxImage_pil(wx_image).resize(icon_size,\
  File "/usr/lib/python2.7/site-packages/phatch/lib/pyWx/wxPil.py", line 45, in wxImage_pil
    image = Image.new('RGB', size)
  File "/usr/lib64/python2.7/site-packages/PIL/Image.py", line 2287, in new
    _check_size(size)
  File "/usr/lib64/python2.7/site-packages/PIL/Image.py", line 2262, in _check_size
    raise ValueError("Size must be a tuple")
ValueError: Size must be a tuple



Version-Release number of selected component (if applicable):0.2.7


How reproducible: Very reproducible


Steps to Reproduce:
1. Install phatch
2. Launch phatch
3. 

Actual results:  All you will see from the eye logo floating in  space. There will be no window or menus in which to interact with.



Workaround: Add 'Get()' to the end of line 44 in the file below

/usr/lib/python2.7/site-packages/phatch/lib/pyWx/wxPil.py

The edited line should look like:

size = wx_image.GetSize().Get()

Save, relaunch phatch and now it works.

Comment 1 Roland 2018-12-05 20:00:18 UTC
> Workaround: Add 'Get()' to the end of line 44 in the file below
> 
> /usr/lib/python2.7/site-packages/phatch/lib/pyWx/wxPil.py
> 
> The edited line should look like:
> 
> size = wx_image.GetSize().Get()
> 
> Save, relaunch phatch and now it works.


Thanks for that Lucious ! That worked very well.

RolandC.

Comment 2 Eric Wick 2019-03-01 13:49:48 UTC
This bug also exist on F29

Thanks to Lucious, your workaround did also well on F29.

Eric

Comment 3 gaxweb 2019-04-05 07:39:18 UTC
Code is here, but looks abandoned: https://code.launchpad.net/phatch

Any volunteers? I don't know Python.

Comment 4 Ben Cotton 2019-05-02 19:43:09 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Ben Cotton 2019-05-28 23:53:03 UTC
Fedora 28 changed to end-of-life (EOL) status on 2019-05-28. Fedora 28 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.