2059 doesn't start up with qt GUI

9 views
Skip to first unread message

znafets

unread,
Jun 18, 2009, 5:59:16 AM6/18/09
to leo-editor
Hi,

since I am working on Ubuntu Karmic leo can't load the qt gui anymore.
Did I mess up something or is it because of other pyqt4 stuff ?
Btw. when I delete the leoRecentfiles.txt the start of leo ends with
"segmentation fault"


./launchLeo.py --gui=qt
reading settings in /usr/local/src/PYTHON/leo-bzr/trunk/leo/config/
leoSettings.leo
Using menus from leoSettings.leo
reading settings in /usr/local/home/.leo/myLeoSettings.leo
Using menus from myLeoSettings.leo
reading /usr/local/home/.leo/.leoRecentFiles.txt
unexpected exception in g.importFromPath(qtGui)
Traceback (most recent call last):

File "/usr/local/src/PYTHON/leo-bzr/trunk/leo/core/leoGlobals.py",
line 6638, in importFromPath
module = imp.load_module(moduleName,theFile,pathname,description)

File "/usr/local/src/PYTHON/leo-bzr/trunk/leo/plugins/qtGui.py",
line 54, in <module>
from PyQt4 import Qsci

unexpected Exception in g.pr
make sure your sitecustomize.py contains::
sys.setdefaultencoding("utf-8")
Traceback (most recent call last):

File "/usr/local/src/PYTHON/leo-bzr/trunk/leo/core/leoGlobals.py",
line 3848, in pr
sys.stdout.write(s+'\n')

UnicodeEncodeError: 'ascii' codec can't encode characters in position
57-65: ordinal not in range(128)

pr:
<module>,run,doPrePluginsInit,createSpecialGui,createQtGui,loadOnePlugin,importFromPath,es_exception
Can not import qtGui from plugin qtGui
can not load enabled plugin: qtGui
loaded plugin: tkGui
image.py: can not import ImageTk
opening default_leo_file: /Users/sz93814/.leo/workbook.leo
@enabled-plugins found in myLeoSettings.leo
can not load enabled plugin: image

best
Stefan

Ville M. Vainio

unread,
Jun 18, 2009, 6:55:29 AM6/18/09
to leo-e...@googlegroups.com
On Thu, Jun 18, 2009 at 12:59 PM, znafets<zna...@googlemail.com> wrote:

> since I am working on Ubuntu Karmic leo can't load the qt gui anymore.
> Did I mess up something or is it because of other pyqt4 stuff ?

Have you installed scintilla? On Jaunty, it's package 'python-qscintilla2'

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

Ville M. Vainio

unread,
Jun 18, 2009, 6:56:43 AM6/18/09
to leo-e...@googlegroups.com
On Thu, Jun 18, 2009 at 1:55 PM, Ville M. Vainio<viva...@gmail.com> wrote:

> Have you installed scintilla? On Jaunty, it's package 'python-qscintilla2'

Note to self - it's probably best to make that dependency optional (by
cathing the exception in import), because scintilla is not currently
enabled and it's a "non-obvious" dependency.

znafets

unread,
Jun 18, 2009, 8:43:23 AM6/18/09
to leo-editor
Hi Ville,

actually yes it is the same on Karmic, I have it installed (vers.
2.3.2-1.1ubuntu)

Any other ideas ?

best
Stefan

On 18 Jun., 10:55, "Ville M. Vainio" <vivai...@gmail.com> wrote:

Ville M. Vainio

unread,
Jun 18, 2009, 8:51:47 AM6/18/09
to leo-e...@googlegroups.com
On Thu, Jun 18, 2009 at 3:43 PM, znafets<zna...@googlemail.com> wrote:

> actually yes it is the same on Karmic, I have it installed (vers.
> 2.3.2-1.1ubuntu)
>
> Any other ideas ?

Try this on plain python prompt:

from PyQt4 import Qsci

Does it fail, and how?

Can you try installing eric4 and seeing if it works.

znafets

unread,
Jun 18, 2009, 2:53:00 PM6/18/09
to leo-editor
From PyQt4 import Qsci fails with segmentation fault
Eric start yields this:
eric
Traceback (most recent call last):
File "/usr/share/eric/modules/eric4.py", line 43, in <module>
from KdeQt.KQApplication import KQApplication
File "/usr/share/eric/modules/KdeQt/__init__.py", line 20, in
<module>
import Preferences
File "/usr/share/eric/modules/Preferences/__init__.py", line 26, in
<module>
from PyQt4 import Qsci
RuntimeError: the sip module implements API v4.0 but the �� module
requires API v3.8

So obviously there was some change of the Python sip API, what does
that mean for leo ?

best
Stefan

On 18 Jun., 12:51, "Ville M. Vainio" <vivai...@gmail.com> wrote:

Ville M. Vainio

unread,
Jun 18, 2009, 3:00:28 PM6/18/09
to leo-e...@googlegroups.com
On Thu, Jun 18, 2009 at 9:53 PM, znafets<zna...@googlemail.com> wrote:

> From PyQt4 import Qsci fails with segmentation fault

Obviously not leo bug then. As you saw, I forwarded this to scintilla
mailing list, let's see if it evokes some kind of reaction...

znafets

unread,
Jun 18, 2009, 3:13:17 PM6/18/09
to leo-editor
ok, thanks then ... let's wait

-S

On 18 Jun., 19:00, "Ville M. Vainio" <vivai...@gmail.com> wrote:

Ville M. Vainio

unread,
Jun 20, 2009, 5:18:15 AM6/20/09
to leo-e...@googlegroups.com
On Thu, Jun 18, 2009 at 9:53 PM, znafets<zna...@googlemail.com> wrote:

> From PyQt4 import Qsci fails with segmentation fault

I removed the (redundant) QSci impurt from trunk. Can you pull & try again?

znafets

unread,
Jun 21, 2009, 3:56:52 AM6/21/09
to leo-editor
Hi Ville,

whatever you did it worked out ! leo starts seamlessly in qt mode and
everything seems allright.
Great job, thanks. Btw. Eric still gets a segmentation fault on
startup, so seems you've done an even better job than it appears in
the first instance.

best
Stefan

On 20 Jun., 09:18, "Ville M. Vainio" <vivai...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages