Quisk on Fedora 23

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Quisk on Fedora 23

s51da
This post was updated on .
Hi,

I've used Quisk for quite some time, and it worked great.
After upgrading to Fedora 23, I have some problems. It compiles OK, but when I want to run it this is what I get:

Traceback (most recent call last):
  File "quisk.py", line 4714, in <module>
    main()
  File "quisk.py", line 4704, in main
    App()
  File "quisk.py", line 2537, in __init__
    wx.App.__init__(self, redirect=False)
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk3/wx/_core.py", line 8628, in __init__
    self._BootstrapApp()
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk3/wx/_core.py", line 8196, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "quisk.py", line 2588, in OnInit
    MakeWidgetGlobals()
  File "./quisk_widgets.py", line 18, in MakeWidgetGlobals
    button_text_width, button_text_height = dc.GetTextExtent('0')
  File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk3/wx/_gdi.py", line 4127, in GetTextExtent
    return _gdi_.DC_GetTextExtent(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "m_graphicContext" failed at ./src/common/dcgraph.cpp(1147) in DoGetTextExtent(): wxGCDC(cg)::DoGetTextExtent - invalid DC

Any ideas what to do?

Thanks,

73 de s51da
Reply | Threaded
Open this post in threaded view
|

Re: Quisk on Fedora 23

kbellairs
I have exactly the same problem. Quisk runs on Ubuntu (14.04 LTS with python 2.7.6) but fails to load on fedora f23 box with python 2.7.11.Tried recompiling. Was there any solution to this?

wx._core.PyAssertionError: C++ assertion "m_graphicContext" failed at ./src/common/dcgraph.cpp(1145) in DoGetTextExtent(): wxGCDC(cg)::DoGetTextExtent - invalid DC
Reply | Threaded
Open this post in threaded view
|

Re: Quisk on Fedora 23

kc7noa
I dont run Fodora ... so sorry, this is what i usally do for Ubuntu ... but should be similar ...

I always first run
sudo apt-get build-dep quisk ... to get most all dependencies ...

Though this looks more like a wxPython error .... check that python and wxpython match ? -- not sure that really matters unless its python2.7(2.8) trying to use wxPython3 ...

I know its a pain ... but try older versions of Fedora to see where the build fails and try to find the differences ...
Reply | Threaded
Open this post in threaded view
|

Re: Quisk on Fedora 23

kc7noa
so remove wxpython3 ....

File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk3/wx/_core.py", line 8196, in _BootstrapApp
Reply | Threaded
Open this post in threaded view
|

Re: Quisk on Fedora 23

kbellairs
Thanks for the reply. Sorry I got sidetracked. Not sure how to follow your idea. Not a python guy so I am probably missing something simple. In fedora 23 the only wxpython available seems to be wxpython3. And line 8196 in my _core.py is

        return _core_.PyApp__BootstrapApp(*args, **kwargs)

So I am kind of lost.
Reply | Threaded
Open this post in threaded view
|

Re: Quisk on Fedora 23

kc7noa
find a git repo for 2.8 or PPA ?
Reply | Threaded
Open this post in threaded view
|

Re: Quisk on Fedora 23

kbellairs
In reply to this post by kbellairs
Looks like wx2.8 has not been built for fedora since f21. I have a ubuntu VM running so I think I'll just run quisk there and not fight with fedora.

Keith

Reply | Threaded
Open this post in threaded view
|

Re: Quisk on Fedora 23

kc7noa
Soundds good .. ask anything if you have problems ...
or for features ... i do ask ....

Im still looking for harmonic operation -- 3rd harmonic would be neat -- just need to reverse I/Q but the phase and amplitude stay the same ...
Reply | Threaded
Open this post in threaded view
|

Re: Quisk on Fedora 23

ns4y
In reply to this post by kbellairs
The "problem" seems to be that wxPython 3 has a lot more error checking than version 2 and it is turning up issues in quisk. I was able to get my peaberry v2 working (with rx; haven't tried tx yet) with the following two hacks:

diff --git a/quisk.py b/quisk.py
index fd4cbe3..6fa4af4 100755
--- a/quisk.py
+++ b/quisk.py
@@ -1353,7 +1353,8 @@ class GraphDisplay(wx.Window):
       xa = min(xa, x)
       xb = max(xb, x + sz)
     dc.SetPen(wx.Pen(conf.color_graphticks,1))
-    dc.DrawLines(self.line[xa:xb])
+    if len(self.line[xa:xb]) > 1:
+      dc.DrawLines(self.line[xa:xb])
     dc.SetPen(self.horizPen)
     for y in self.parent.y_ticks:
       dc.DrawLine(xa, y, xb, y)        # y line
diff --git a/quisk_widgets.py b/quisk_widgets.py
index 1cd6b6f..c3a36ba 100755
--- a/quisk_widgets.py
+++ b/quisk_widgets.py
@@ -15,6 +15,8 @@ def MakeWidgetGlobals():
            wx.FONTWEIGHT_NORMAL, face=conf.quisk_typeface)
   dc = wx.MemoryDC()
   dc.SetFont(button_font)
+  tmp_bm = wx.EmptyBitmap(1, 1)
+  dc.SelectObject(tmp_bm)
   button_text_width, button_text_height = dc.GetTextExtent('0')
   button_width = button_text_width + 2 + 2 * button_bezel # + 4 * int(self.useFocusInd)
   button_height = button_text_height + 2 + 2 * button_bezel # + 4 * int(self.useFocusInd)

There are still some warnings and stability issues which need tracking down but it is working well enough to copy SSB using my Fedora 24 laptop.
Reply | Threaded
Open this post in threaded view
|

Re: Quisk on Fedora 23

ahlstromjc
Administrator
Thanks.  I will put these changes into Quisk.

Jim
N2ADR