[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: Pate
From:       Christoph Cullmann <cullmann () absint ! com>
Date:       2012-06-27 5:54:49
Message-ID: 592647718.597509.1340776489301.JavaMail.root () absint ! com
[Download RAW message or body]

> On 6/26/12, Shaheed Haque <srhaque@theiet.org> wrote:
> > Ah, that helps. See below...
> >
> > On 26 June 2012 22:25, Dominik Haumann <dhaumann@kde.org> wrote:
> >> On Tuesday, 26. June 2012 20:26:30 Shaheed Haque wrote:
> >>> Hi Christoph,
> >>> I've just re-run a bunch of tests starting without any .rc files,
> >>> missing plugin directories etc., enabling/disabling plugin, and
> >>> cannot
> >>> make this happen. So I'm a bit stuck as to what could be going
> >>> on...
> >>
> >>  File
> >>  "/home/dh/kde/usr/share/apps/kate/plugins/pate/kate/__init__.py",
> >> line 38, in <module> from PyKDE4.kate import Kate
> >> No module named kate
> >> Could not import kate"
> >> kate(12802)/Kate (Plugins) Pate::Engine::~Engine: Destroy the
> >> Python
> >> engine
> >> kate(12802)/Kate (Plugins): Could not initialise Pate. Ouch!
> >> kate(12802)/Kate (Plugins) Pate::PluginView::PluginView: create
> >> PluginView
> >> kate(12802)/Kate (Plugins) Pate::Engine::init: Construct the
> >> Python engine
> >> kate(12802)/Kate (Plugins) Pate::Python::libraryLoad: Creating
> >> s_pythonLibrary
> >> kate(12802)/Kate (Plugins): "Traceback (most recent call last):
> >>  File
> >>  "/home/dh/kde/usr/share/apps/kate/plugins/pate/kate/__init__.py",
> >> line 38, in <module>
> >>    from PyKDE4.kate import Kate
> >> No module named kate
> >> Could not import kate"
> >> kate(12802)/Kate (Plugins) Pate::Engine::~Engine: Destroy the
> >> Python
> >> engine
> >
> > The pate build should install this file, something like this:
> >
> > Install the project...
> > -- Install configuration: "RelWithDebInfo"
> > -- Up-to-date:
> > /usr/local/lib/python2.7/dist-packages/PyKDE4/kate.so
> > ...
> >
> > But, this path might not be in Python's sys.path:
> >
> > srhaque> python
> > Python 2.7.3 (default, Apr 20 2012, 22:39:59)
> > [GCC 4.6.3] on linux2
> > Type "help", "copyright", "credits" or "license" for more
> > information.
> >>>> import sys
> >>>> print sys.path
> > ['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2',
> > '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',
> > '/usr/lib/python2.7/lib-dynload',
> > '/usr/local/lib/python2.7/dist-packages',
> > '/usr/lib/python2.7/dist-packages',
> > '/usr/lib/python2.7/dist-packages/PIL',
> > '/usr/lib/python2.7/dist-packages/gst-0.10',
> > '/usr/lib/python2.7/dist-packages/gtk-2.0',
> > '/usr/lib/pymodules/python2.7']
> >
> > If it isn't, add a link to this from somewhere that is:
> >
> > srhaque> ls -l /usr/lib/python2.7/dist-packages/PyKDE4/kate.so
> > lrwxrwxrwx 1 root root 53 May 20 09:51
> > /usr/lib/python2.7/dist-packages/PyKDE4/kate.so ->
> > /usr/local/lib/python2.7/dist-packages/PyKDE4/kate.so
> >
> > There are several alternatives, ranging from setting PYTHONPATH to
> > include this, to adding the link, to adding so-called .pth files.
> > This
> > thread is a good reference on the options:
> 
> IMHO we should just add a PYTHONPATH line to the run.sh script on
> Kate-editor.org/get-it and explain it on the blog. My developer trees
> should *never* touch system wide stuff, which .pth files would do.
Yep, could you tell me the right PYTHONPATH stuff for the settings we use otherwise Shaheed?

Guess that's my problem, too, I install it in the own prefix, too, without any variables set ;)

Greetings
Christoph

-- 
-------------------------------------- Christoph Cullmann ---------
AbsInt Angewandte Informatik GmbH      Email: cullmann@AbsInt.com
Science Park 1                         Tel:   +49-681-38360-22
66123 Saarbrücken                      Fax:   +49-681-38360-20
GERMANY                                WWW:   http://www.AbsInt.com
--------------------------------------------------------------------
Geschäftsführung: Dr.-Ing. Christian Ferdinand
Eingetragen im Handelsregister des Amtsgerichts Saarbrücken, HRB 11234
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic