launchLeo.py under qt does not work

Bug #394989 reported by wgw

This bug report was converted into a question: question #75970: Qt UI does not work in Ubuntu Hardy..

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
leo-editor
Invalid
Undecided
Unassigned

Bug Description

I was trying to use 4.6 without installing it, as per the instructions for Linux. (I want to keep my 4.4 installed for the moment.) I got this error:

======================
  File "/home/bill/Soft/Leo-4-6-b2/leo/plugins/qtGui.py", line 2062, in createTreeWidget
    w.setHeaderHidden(False)
AttributeError: setHeaderHidden
=====================

I added the path to the unzipped files and ran launchLeo.py. These are the instructions I followed:

==========================
You now have two choices:

1. You can run Leo from your home directory.
   Just add ~/leo-4-5 to your path.

....

Another way to run Leo is as follows::

    cd <path-to-launchLeo.py>
    python launchLeo.py %1

=========================

I'm under Ubuntu (8.04), python 2.5, qt 4. Here is the full error message.

bill@bill-laptop:~/Soft/Leo-4-6-b2$ PATH=/home/bill/Soft/Leo-4-6-b2:$PATH
bill@bill-laptop:~/Soft/Leo-4-6-b2$ python launchLeo.py
reading settings in /home/bill/Soft/Leo-4-6-b2/leo/config/leoSettings.leo
Using menus from leoSettings.leo
reading /home/bill/.leo/.leoRecentFiles.txt
loaded plugin: qtGui doPlugins,loadHandlers,loadOnePlugin,init,createDefaultGui,createQtGui
Traceback (most recent call last):
  File "launchLeo.py", line 8, in <module>
    leo.core.runLeo.run()
  File "/home/bill/Soft/Leo-4-6-b2/leo/core/runLeo.py", line 95, in run
    ok = doPostPluginsInit(args,fn,relFn,script)
  File "/home/bill/Soft/Leo-4-6-b2/leo/core/runLeo.py", line 326, in doPostPluginsInit
    c,frame = createFrame(fileName,relativeFileName,script)
  File "/home/bill/Soft/Leo-4-6-b2/leo/core/runLeo.py", line 363, in createFrame
    initEditCommanders=True)
  File "/home/bill/Soft/Leo-4-6-b2/leo/core/leoApp.py", line 507, in newLeoCommanderAndFrame
    frame.finishCreate(c)
  File "/home/bill/Soft/Leo-4-6-b2/leo/plugins/qtGui.py", line 3472, in finishCreate
    f.top = DynamicWindow(c)
  File "/home/bill/Soft/Leo-4-6-b2/leo/plugins/qtGui.py", line 1679, in __init__
    self.createMainWindow()
  File "/home/bill/Soft/Leo-4-6-b2/leo/plugins/qtGui.py", line 1722, in createMainWindow
    self.createOutlinePane(self.splitter)
  File "/home/bill/Soft/Leo-4-6-b2/leo/plugins/qtGui.py", line 1883, in createOutlinePane
    treeWidget = self.createTreeWidget(innerFrame,'treeWidget')
  File "/home/bill/Soft/Leo-4-6-b2/leo/plugins/qtGui.py", line 2062, in createTreeWidget
    w.setHeaderHidden(False)
AttributeError: setHeaderHidden
bill@bill-laptop:~/Soft/Leo-4-6-b2$

Revision history for this message
wgw (wgwinder) wrote :

I just discovered this discussion at http://groups.google.com/group/leo-editor/browse_thread/thread/707cc66feee35705
============
I'm also using 8.04 at work and got thes same problem.

I have now pushed alternative qt_main_hardyheron.ui to trunk. Copy it over qt_main.ui if you get this error.

==================

will see if I can resolve this through the source file.

Revision history for this message
wgw (wgwinder) wrote :

oops! I see this is an old bug under Hardy. I thought I had QT 4.4; I don't it is 4.3.

Will see if I can get the backport....

Revision history for this message
Ville M. Vainio (villemvainio) wrote :

Converting this to "question".

Changed in leo-editor:
status: New → Invalid
Revision history for this message
Edward K. Ream (edreamleo) wrote : Re: [Bug 394989] [NEW] launchLeo.py under qt does not work

On Thu, Jul 2, 2009 at 9:57 PM, wgw <email address hidden> wrote:

> Public bug reported:
>
> I was trying to use 4.6 without installing it, as per the instructions
> for Linux. (I want to keep my 4.4 installed for the moment.) I got this
> error:
>
> ======================
> File "/home/bill/Soft/Leo-4-6-b2/leo/plugins/qtGui.py", line 2062, in
> createTreeWidget
> w.setHeaderHidden(False)
> AttributeError: setHeaderHidden
> =====================

Thanks for this report. I have a vague recollection of something related to
setHeaderHidden recently, but it's only that.

Anyway, I 'll fix this today.

Edward

Revision history for this message
Ville M. Vainio (villemvainio) wrote :

On Fri, Jul 3, 2009 at 1:38 PM, Edward K. Ream<email address hidden> wrote:

> Thanks for this report.  I have a vague recollection of something related to
> setHeaderHidden recently, but it's only that.
>
> Anyway, I 'll fix this today.

Don't try that, there are other Qt 4.4. dependencies as well. That's
why I converted this to Question (which marked this bug as invalid),

--
Ville M. Vainio
http://tinyurl.com/vainio

Revision history for this message
Edward K. Ream (edreamleo) wrote :

On Fri, Jul 3, 2009 at 5:51 AM, Ville M. Vainio <email address hidden> wrote:

> On Fri, Jul 3, 2009 at 1:38 PM, Edward K. Ream<email address hidden>
> wrote:
>
> > Thanks for this report. I have a vague recollection of something related
> to
> > setHeaderHidden recently, but it's only that.
> >
> > Anyway, I 'll fix this today.
>
> Don't try that, there are other Qt 4.4. dependencies as well. That's
> why I converted this to Question (which marked this bug as invalid),

Thanks for this update.

Edward

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.