- While following your suggestion, I tryed rebuild sketch but that was impossible:

./setup.py configure --prefix=/sw --tk-flags="-L/sw/lib -ltk -ltcl -L/usr/X11R6/lib -lX11.6" --pax-no-xshm
looking for include dir for Imaging.h under /sw/include/python2.3
Imaging.h not found under /sw/include/python2.3 !
### execution of ./setup.py failed, exit code 1
Failed: compiling sketch-0.6.15-1 failed


- I thus tryed rebuild Pil which should contain (maybe i'm wrong) the
required file but I could not either:

gcc -Wno-long-double -no-cpp-precomp -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/sw/include -IlibImaging -I/sw/include/freetype2 -I/sw/include/python2.3 -c _imagingft.c -o build/temp.darwin-6.4-PowerMacintosh-2.3/_imagingft.o
_imagingft.c:28: parse error before "library"
_imagingft.c:28: warning: type defaults to `int' in declaration of `library'
_imagingft.c:28: warning: data definition has no type or storage class
_imagingft.c:32: parse error before "FT_Face"
_imagingft.c:32: warning: no semicolon at end of struct or union
_imagingft.c:33: warning: type defaults to `int' in declaration of `FontObject'
_imagingft.c:33: warning: data definition has no type or storage class
_imagingft.c: In function `getfont':
_imagingft.c:45: `self' undeclared (first use in this function)
_imagingft.c:45: (Each undeclared identifier is reported only once
_imagingft.c:45: for each function it appears in.)
_imagingft.c:57: warning: implicit declaration of function `FT_Init_FreeType'
_imagingft.c:67: parse error before ')' token
_imagingft.c:71: warning: implicit declaration of function `FT_New_Face'
_imagingft.c:74: warning: implicit declaration of function `FT_Set_Pixel_Sizes'
_imagingft.c: At top level:
_imagingft.c:86: parse error before '*' token
_imagingft.c:87: warning: function declaration isn't a prototype
_imagingft.c: In function `font_getsize':
_imagingft.c:93: `args' undeclared (first use in this function)
_imagingft.c:102: warning: implicit declaration of function `FT_Get_Char_Index'
_imagingft.c:102: `self' undeclared (first use in this function)
_imagingft.c:102: `FT_ULong' undeclared (first use in this function)
_imagingft.c:102: parse error before "text"
_imagingft.c:103: warning: implicit declaration of function `FT_Load_Glyph'
_imagingft.c:103: `FT_LOAD_DEFAULT' undeclared (first use in this function)
_imagingft.c: At top level:
_imagingft.c:120: parse error before '*' token
_imagingft.c:121: warning: function declaration isn't a prototype
_imagingft.c: In function `font_render':
_imagingft.c:126: `FT_GlyphSlot' undeclared (first use in this function)
_imagingft.c:126: parse error before "glyph"
_imagingft.c:133: `args' undeclared (first use in this function)
_imagingft.c:143: `self' undeclared (first use in this function)
_imagingft.c:143: `FT_ULong' undeclared (first use in this function)
_imagingft.c:143: parse error before "text"
_imagingft.c:144: `FT_LOAD_RENDER' undeclared (first use in this function)
_imagingft.c:147: `glyph' undeclared (first use in this function)
_imagingft.c: At top level:
_imagingft.c:175: parse e### execution of failed, exit code 1
Failed: compiling pil-1.1.4-2 failed
error before '*' token
_imagingft.c:176: warning: function declaration isn't a prototype
_imagingft.c: In function `font_dealloc':
_imagingft.c:177: warning: implicit declaration of function `FT_Done_Face'
_imagingft.c:177: `self' undeclared (first use in this function)
_imagingft.c: At top level:
_imagingft.c:188: parse error before '*' token
_imagingft.c:189: warning: function declaration isn't a prototype
_imagingft.c: In function `font_getattr':
_imagingft.c:192: `self' undeclared (first use in this function)
_imagingft.c:192: `name' undeclared (first use in this function)
error: command 'gcc' failed with exit status 1


-here are the installed python's packages:

i   gnome-python     1.4.2-3      Python bindings for GNOME
i   python           2.3a2-1      Interpreted, object-oriented language.
i   python23         2.3a2-1      Interpreted, object-oriented language.
i   python23-shlibs  2.3a2-1      Interpreted, object-oriented language.
i   pil              1.1.4-2      Python Imaging Library

perhaps the solution is it there, sketch is looking for include to dir
for Imaging.h under /sw/include/python2.3 and not found it because it
is on my hard drive in /sw/include/python2.2/pil/Imaging.h. In fact there is two directories in /sw/include the first one named python2.2 with Pil and the other named python2.3 with other python's libraries.
Can I make a symlink from Pil to python2.3 or is there a better way to test this possibility?


Le samedi, 1 mars 2003, � 03:50 Europe/Paris, Alexander Hansen a �crit :

Did sketch get built before python?  Maybe you need to rebuild sketch
again for the new python.

On Sat, 1 Mar 2003, Jean-maurice Le Clech wrote:

I updated sketch and python, now I cannot open sketch any more because
there is a difference of version of API  between sketch and python.

Here is the output of the console.

/sw/lib/sketch-0.6.15/Sketch/__init__.py:53: RuntimeWarning: Python C
API version mismatch for module _sketch: This Python has API version
1012, module _sketch has version 1011.
   import _sketch
/sw/lib/sketch-0.6.15/Sketch/__init__.py:53: RuntimeWarning: Python C
API version mismatch for module pax: This Python has API version 1012,
module pax has version 1011.
   import _sketch
Can't import the Python Imaging Library
/sw/lib/sketch-0.6.15/Sketch/__init__.py:53: RuntimeWarning: Python C
API version mismatch for module _sketch: This Python has API version
1012, module _sketch has version 1011.
   import _sketch
/sw/lib/sketch-0.6.15/Sketch/__init__.py:53: RuntimeWarning: Python C
API version mismatch for module pax: This Python has API version 1012,
module pax has version 1011.
   import _sketch
Can't import the Python Imaging Library


My questions are: Do I have to return to a preceding version of python and in this case which version?

Thank you for your assistance.


J-M

-- Alexander K. Hansen Associate Research Scientist, Columbia University visiting MIT Plasma Science and Fusion Center Levitated Dipole Experiment 175 Albany Street, NW17-219 Cambridge, MA 02139-4213


J-M



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to