Re: Cleo icons won't work on linux

2008-05-27 Thread Edward K. Ream
On Wed, May 21, 2008 at 9:34 AM, hairui [EMAIL PROTECTED] wrote:


 I have fixed the problem by removing the ImageTk module from official
 PIL website and re-installig it by apt-get.

 Now LEO can load icon files properly.

 It seems all the problems were caused by the version of ImageTk
 moudle.

 I think the steps can solve marko's problem too.


Thanks for this report.  It should help many others.

Edward

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Cleo icons won't work on linux

2008-05-21 Thread hairui

It seems nobody care about the problem of can not load *.png.

Need us  fix the bug by ourselves or just use leo without icon?


On 5月21日, 下午1时25分, hairui [EMAIL PROTECTED] wrote:
 Under python 2.5,
 using import ImageTk can not find the ImageTk, try from PIL import
 ImageTk instead.

 A previous post has mentioned similar problem, it seems a new image.py
 file in the cvs res can solve the problem of module importing. But to
 load the png file still be a problem on my machine.

 On 4月13日, 下午6时21分, marko [EMAIL PROTECTED] wrote:

  Running leo under python 2.4 solves the problem.

  On Apr 13, 7:16 pm, marko [EMAIL PROTECTED] wrote:

   Hello,

   I've got Leo running on debian linux, but the cleo icons won't load.

   Leo Log Window...
   Leo 4.4.8 final, build  1.244 , April 6, 2008
   python 2.5.0, Tk 8.4.12, Pmw 1.3
   linux2

   reading: /home/marko/marko.leo
   can not import Image module from PIL
   can not import ImageTk module
   can not load image: /usr/local/lib/leo/leo/Icons/cleo/pri5.png

   PIL and ImageTk have been installed and the icon files are in the
   correct location.

   Any ideas how to make it work?

   TIA,

   Marko
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Cleo icons won't work on linux

2008-05-21 Thread hairui

Can you tell me where to locate the codes of loading icon png files ?

Maybe I can do something to help checking the problem and finding a
way to solve it .

One important reason is that I doubt the problem just occurs on Ubuntu
8.04 or some other similar platform.


On 5月21日, 下午8时46分, Edward K. Ream [EMAIL PROTECTED] wrote:
 On Wed, May 21, 2008 at 7:45 AM, hairui [EMAIL PROTECTED] wrote:

  It seems nobody care about the problem of can not load *.png.

  Need us  fix the bug by ourselves or just use leo without icon?

 Please be patient. I must get my Linux box working again before I can fix
 Linux problems.  I hope to do this today.

 Edward
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Cleo icons won't work on linux

2008-05-21 Thread Mark Berndt

I had a problem like this in a debian based distro. The bottom line was
that the image library used for the cleo icons was installed for python
2.4 and not python 2.5. Reverting to python 2.4 solved the problem, bit
broke aspell.

Note that python 2.5 is coming for debian testing very soon, and I
assume that all the libraries including the image library (whose name
escapes me for the moment) will be built for 2.5.

Hope that helps,

Marko



hairui wrote:
 Can you tell me where to locate the codes of loading icon png files ?

 Maybe I can do something to help checking the problem and finding a
 way to solve it .

 One important reason is that I doubt the problem just occurs on Ubuntu
 8.04 or some other similar platform.


 On 5月21日, 下午8时46分, Edward K. Ream [EMAIL PROTECTED] wrote:
   
 On Wed, May 21, 2008 at 7:45 AM, hairui [EMAIL PROTECTED] wrote:

 
 It seems nobody care about the problem of can not load *.png.
   
 Need us  fix the bug by ourselves or just use leo without icon?
   
 Please be patient. I must get my Linux box working again before I can fix
 Linux problems.  I hope to do this today.

 Edward
 
 
   


-- 
High performance computer, software and automation systems for demanding 
applications
 
Mechtron Systems
ABN: 52 149 788 293
329 Old Canobolas Road NASHDALE NSW 2800
mob 04-2860-1801 ph 02-6365-3568 fx 02-6365-3578 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Cleo icons won't work on linux

2008-05-21 Thread Terry Brown

On Wed, 21 May 2008 05:54:22 -0700 (PDT)
hairui [EMAIL PROTECTED] wrote:

 One important reason is that I doubt the problem just occurs on Ubuntu
 8.04 or some other similar platform.

ImageTk is a separate package in Ubuntu, I think Leo requires both PIL
(package python-imaging) and the package python-imaging-tk.

The problem hasn't been reported for other OSs that I'm aware of, other
than people have run in to the PIL not installed problem before.  I'd
guess the Windows PIL installer puts ImageTk in the same place the
package python-imaging-tk puts it.

Cheers -Terry

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Cleo icons won't work on linux

2008-05-21 Thread Terry Brown

On Wed, 21 May 2008 23:21:44 +1000
Mark Berndt [EMAIL PROTECTED] wrote:

 I had a problem like this in a debian based distro. The bottom line
 was that the image library used for the cleo icons was installed for
 python 2.4 and not python 2.5. Reverting to python 2.4 solved the
 problem, bit broke aspell.

I think 2.5 is the default for Ubuntu 8.04.

But 8.04 is still using Tk 8.4, so if you want antialiased fonts you
have to compile python and PIL from source - you can use Ubuntu's Tk
8.5 packages though.

Cheers -Terry

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Cleo icons won't work on linux

2008-05-21 Thread Kayvan A. Sylvan

On Wed, May 21, 2008 at 09:13:35AM -0500, Terry Brown wrote:
 ImageTk is a separate package in Ubuntu, I think Leo requires both PIL
 (package python-imaging) and the package python-imaging-tk.

Yes. I have Leo working perfectly for me on Ubuntu 8.04 and needed
to install python-imaging-tk

Best regards,

---Kayvan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Cleo icons won't work on linux

2008-05-21 Thread hairui

Thanks for your reply.

I have find out the reason. I installed the PIL module before
installing Tk, so
the PIL's installer did not install the ImageTk module for me. So
smart a installer,
but puzzled me for a few days.

After re-installing PIL, I can from PIl import ImageTk now.

But there is still something wrong with loading the pre1.png like
files.



On 5月21日, 下午10时13分, Terry Brown [EMAIL PROTECTED] wrote:
 On Wed, 21 May 2008 05:54:22 -0700 (PDT)

 hairui [EMAIL PROTECTED] wrote:
  One important reason is that I doubt the problem just occurs on Ubuntu
  8.04 or some other similar platform.

 ImageTk is a separate package in Ubuntu, I think Leo requires both PIL
 (package python-imaging) and the package python-imaging-tk.

 The problem hasn't been reported for other OSs that I'm aware of, other
 than people have run in to the PIL not installed problem before.  I'd
 guess the Windows PIL installer puts ImageTk in the same place the
 package python-imaging-tk puts it.

 Cheers -Terry
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Cleo icons won't work on linux

2008-05-21 Thread hairui

I have fixed the problem by removing the ImageTk module from official
PIL website and re-installig it by apt-get.

Now LEO can load icon files properly.

It seems all the problems were caused by the version of ImageTk
moudle.

I think the steps can solve marko's problem too.


On 5月21日, 下午10时17分, Kayvan A. Sylvan [EMAIL PROTECTED] wrote:
 On Wed, May 21, 2008 at 09:13:35AM -0500, Terry Brown wrote:
  ImageTk is a separate package in Ubuntu, I think Leo requires both PIL
  (package python-imaging) and the package python-imaging-tk.

 Yes. I have Leo working perfectly for me on Ubuntu 8.04 and needed
 to install python-imaging-tk

 Best regards,

 ---Kayvan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Cleo icons won't work on linux

2008-05-20 Thread hairui

I downloaded the PIL module from its offical site, but I can not
import ImageTk from PIL.

who knows why?

On 4月13日, 下午5时16分, marko [EMAIL PROTECTED] wrote:
 Hello,

 I've got Leo running on debian linux, but the cleo icons won't load.

 Leo Log Window...
 Leo 4.4.8 final, build  1.244 , April 6, 2008
 python 2.5.0, Tk 8.4.12, Pmw 1.3
 linux2

 reading: /home/marko/marko.leo
 can not import Image module from PIL
 can not importImageTkmodule
 can not load image: /usr/local/lib/leo/leo/Icons/cleo/pri5.png

 PIL andImageTkhave been installed and the icon files are in the
 correct location.

 Any ideas how to make it work?

 TIA,

 Marko
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Cleo icons won't work on linux

2008-05-20 Thread hairui

Under python 2.5,
using import ImageTk can not find the ImageTk, try from PIL import
ImageTk instead.

A previous post has mentioned similar problem, it seems a new image.py
file in the cvs res can solve the problem of module importing. But to
load the png file still be a problem on my machine.

On 4月13日, 下午6时21分, marko [EMAIL PROTECTED] wrote:
 Running leo under python 2.4 solves the problem.

 On Apr 13, 7:16 pm, marko [EMAIL PROTECTED] wrote:

  Hello,

  I've got Leo running on debian linux, but the cleo icons won't load.

  Leo Log Window...
  Leo 4.4.8 final, build  1.244 , April 6, 2008
  python 2.5.0, Tk 8.4.12, Pmw 1.3
  linux2

  reading: /home/marko/marko.leo
  can not import Image module from PIL
  can not import ImageTk module
  can not load image: /usr/local/lib/leo/leo/Icons/cleo/pri5.png

  PIL and ImageTk have been installed and the icon files are in the
  correct location.

  Any ideas how to make it work?

  TIA,

  Marko
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Cleo icons won't work on linux

2008-04-13 Thread marko

Running leo under python 2.4 solves the problem.

On Apr 13, 7:16 pm, marko [EMAIL PROTECTED] wrote:
 Hello,

 I've got Leo running on debian linux, but the cleo icons won't load.

 Leo Log Window...
 Leo 4.4.8 final, build  1.244 , April 6, 2008
 python 2.5.0, Tk 8.4.12, Pmw 1.3
 linux2

 reading: /home/marko/marko.leo
 can not import Image module from PIL
 can not import ImageTk module
 can not load image: /usr/local/lib/leo/leo/Icons/cleo/pri5.png

 PIL and ImageTk have been installed and the icon files are in the
 correct location.

 Any ideas how to make it work?

 TIA,

 Marko
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Cleo icons won't work on linux

2008-04-13 Thread Terry Brown

On Sun, 13 Apr 2008 03:21:12 -0700 (PDT)
marko [EMAIL PROTECTED] wrote:

 
 Running leo under python 2.4 solves the problem.

Probably Python Imaging Library (PIL) and the ImageTk module aren't
installed from 2.5's point of view, but are available to 2.4.

Cheers -Terry

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---