Re: [Planner Dev] silly: can get python demo to work
- From: Jon Wilkins <jon wilkins winskil co uk>
- To: Planner Project Manager - Development List <planner-dev lists imendio com>
- Subject: Re: [Planner Dev] silly: can get python demo to work
- Date: Wed, 08 Dec 2004 20:14:56 +0000
Richard,
Thanks for the pointers, the default CVS build had put the planner
library in /usr/local/lib/python.... whereas my python looks
by default in /usr/lib/python.... . Of course when I pointed the
PYTHONPATH to the /usr/local/lib directory it failed to find the earlier
dependancy of GTK!
I've now moved the planner library to where "everything else python" is
on my machine and re-run ldconfig -- and now it's happy.
Thanks for the tip.
Ever one for wanting to avoid re-inventing wheels, is there a doc
somehwere that I can contribute this to?
jw
On Wed, 2004-12-08 at 20:19 +0100, Richard Hult wrote:
> Jon Wilkins wrote:
> > Hi,
> >
> > I'm almost certainly doing something daft or forgetting something
> > obvious....
> >
> > I've been building planner from CVS (last sync'd about a week ago)
> > including a 'make install' and wanted to try the python demo... as per
> > the instructions in planner/python/python-demo.py I've copied python-
> > demo.py and restarted, however, I get the following error message:
> > "ImportError: No module named planner"
> >
> > Similarly, running python and attempting to 'import planner' fails --
> > whilst I figure that the problem is with python knowing about the
> > planner module, my knowledge of external libraries for python is too
> > little to be able to solve this.....
> >
> > Any pointers would be gratefully received....
>
> Hi,
>
> If planner is not installed into the same prefix as python, you need to
> set PYTHONPATH, e.g:
>
> export PYTHONPATH=/opt/gnome/lib/python2.3/site-packages
>
> with slight changes depending on the prefix and python version.
>
> If this doesn't help, I'm not sure what's wrong.
>
> Regards,
> Richard
>
--
Electronic Mail : jon wilkins winskil co uk
Instant Messaging : jpdwilkins hotmail com
Voice/Fax : (t) 0844 986 9274 (f) 0870 068 6268
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]