David Roberts d...@vidr.cc added the comment:
I think I've narrowed it down to the ImageQt class provided by PIL -
commenting out the reference to this (in the constructor of the Tile
class referenced by TileProvider.run) stops the errors.
So how do I go about determining where the problem with
Antoine Pitrou pit...@free.fr added the comment:
I don't know, but you should probably contact the author, Fredrik Lundh,
and/or post on the PIL list. Since it is probably not a bug in Python
itself, I'm closing the issue.
(please reopen if you discover a problem in Python itself)
--
Fredrik Lundh fred...@effbot.org added the comment:
PIL is completely thread-agnostic, so I not sure there's anything PIL can
do to fix this.
(and ImageQt is of course an interface to PyQt, which is an interface to
Qt, which consists of a *lot* more than 50 lines...)
--
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
This error is certainly due to a C function that sets an exception but
does not return an error value.
When running with a debug build of python, you will see XXX undetected
error printed to stderr.
--
David Roberts d...@vidr.cc added the comment:
Ok, so if it's a bug in (Py)Qt then I'm not going to worry about it.
I've managed to fix the issue in my case anyway, by (essentially) replacing:
image = Image.open(fname)
image.load()
tile = ImageQt(image)
with (the much more obvious
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:
--
nosy: +gagenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6562
___
___
David Roberts d...@vidr.cc added the comment:
thread.get_ident() returns 1192 and 1560 in the cases where there is no
error, and 1316 in the case where the error is thrown. Doesn't seem
particularly unusual, and shows get_ident() isn't throwing the error itself.
I also noticed that there is a
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Could you provide a complete example for us to reproduce the issue?
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6562
David Roberts d...@vidr.cc added the comment:
I haven't been able to isolate the issue. Could someone provide some
insight into what the error could possibly mean so that I have a better
idea of what I'm trying to isolate?
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
I also noticed that there is a warning right before the exception is raised:
C:\Python26\lib\threading.py:803: RuntimeWarning: tp_compare didn't
return -1 or -2 for exception
return _active[_get_ident()]
Right, it probably means the
David Roberts d...@vidr.cc added the comment:
If I comment out all occurrences of with self.__lock: I then get the
same error in another part of the code:
C:\Python26\lib\threading.py:803: RuntimeWarning: tp_compare didn't
return -1 or -2 for exception
return _active[_get_ident()]
Exception
Antoine Pitrou pit...@free.fr added the comment:
Le samedi 25 juillet 2009 à 12:35 +, David Roberts a écrit :
File C:\Python26\lib\ntpath.py, line 97, in join
if path[-1] in /\\:
IndexError: cannot fit 'int' into an index-sized integer
This is definitely fishy and shouldn't happen
David Roberts d...@vidr.cc added the comment:
Yes, it is the PIL library. Removing calls to Image.open() still results
in the same error - the exception is thrown before it even reaches that
bit of the code anyway.
Another odd thing is that the exception is only thrown on some of the
calls to
Changes by David Roberts d...@vidr.cc:
Added file: http://bugs.python.org/file14568/tilestore.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6562
___
New submission from David Roberts d...@vidr.cc:
I'm getting the following error on Windows in an application I've
written (the error does not occur on Linux):
Exception in thread Thread-4:
Traceback (most recent call last):
File C:\Python26\lib\threading.py, line 525, in __bootstrap_inner
Antoine Pitrou pit...@free.fr added the comment:
This is strange, thread.get_ident() isn't supposed to raise this kind of
error.
Could you call it individually from the same thread to see what it returns?
Also, could you post the code for your derived class for us to see?
--
nosy:
16 matches
Mail list logo