[PYTHON IMAGE-SIG] Strange Bug

Fredrik Lundh fredrik_lundh@ivab.se
Mon, 18 Nov 1996 09:58:20 +0100


> >>> import _imaging
> python: can't resolve symbol 'fgetc'
> python: can't resolve symbol 'fgetc'
> python: can't resolve symbol 'fgetc'
> python: can't resolve symbol 'fgetc'
> python: can't resolve symbol 'fgetc'
> python: can't resolve symbol 'fgetc'
> python: can't resolve symbol 'fgetc'
> python: can't resolve symbol 'fgetc'
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
> ImportError: Unable to resolve symbol

Well, PIL actually contains exactly 8 calls to "fgetc", but why that
function appears to be missing in your C library is more than I can
tell.

Here's some things you could try:

1. Check the fgetc man page to see if there's some special library
   you need to link with.

2. Boldly change fgetc to getc in libImaging/File.c, and see if that
   helps.

(it could be a good idea to update to gcc 2.7.2[.1] as well)

Regards	/F

=================
IMAGE-SIG - SIG on Image Processing with Python

send messages to: image-sig@python.org
administrivia to: image-sig-request@python.org
=================