[Image-SIG] A right mess I've made!
John Hinsley
jhinsley@telinco.co.uk
Thu, 27 Jan 2000 13:38:58 +0000
Hi
Here's my tale of woe.
I downloaded Sketch 6.4 as an .rpm and the python imaging 1.0b1-1.rpm
and used
them with the python bits & pieces in the SuSE 6.1 distribution. I could
save
as .ps but I could'nt open any postscript files, even those I'd made in
Sketch! It looked as though Sketch was trying to open them, a sort of
white
ghost square appeared, but it failed.
I vaguely remembered that an earlier version did this because of a
problem
with the Python imaging library, and that there was a patch available.
Does
this mean that the rpm was built without the patches for the imaging
libraries? Is there a "correct" rpm out there somewhere?
But here's the BIG, BIG, problem.
Attempts to build sketch using a mixture of source and rpms failed
dismally.
In particular I made a right pigs ear of installing the python imaging
library. On step 8, the read me says:
"8. To build a dynamically loaded module, just type "make":
$ make
This will create a file called "_imaging.so".
Then type (assuming a standard shell):
$ PYTHONPATH=.:./PIL ; export PYTHONPATH
$ python
>>> import _imaging
>>> import Image
If both imports works, you've successfully added PIL to your Python
environment."
Well, for me one of the imports didn't work. At this point I got fed up
and
decided that I could live with a sketch which wouldn't import postscript
files
(after all, I could still open them in Gimp) and proceeded to remove all
traces of python from my system, along with sketch and to reinstall back
to
the point where sketch worked without postscript import. (After all, a
gtk
version will be along shortly!)
Now, when I call sketch I get:
Traceback (innermost last):
File "/usr/bin/sketch", line 35, in ?
import Sketch
File "/usr/lib/sketch-0.6.4/Sketch/__init__.py", line 108, in ?
from Graphics.document import EditDocument, SelectionMode, EditMode
File "/usr/lib/sketch-0.6.4/Sketch/Graphics/document.py", line 67, in
?
from text import CanCreatePathText, CreatePathText
File "/usr/lib/sketch-0.6.4/Sketch/Graphics/text.py", line 97, in ?
import graphics, font
File "/usr/lib/sketch-0.6.4/Sketch/Graphics/graphics.py", line 32, in
?
import Image
ImportError: No module named Image
As though bash is still trying to do all the import stuff.
How do I get rid of this?
Any help, counselling, etc. gratefully received.
--
##############################################################
Traduttore di madre lingua inglese disponibile per progetti
di ogni tipo. Prezzi unici! <jhinsley@telinco.co.uk>
##############################################################