On 12/03/2007 4.56, [EMAIL PROTECTED] wrote:

> I made some good progress on this, and even have things working,
> though with a bit of duct tape.
> 
> First off, I had to manually import numpy in the application I was
> compiling, or else I'd crash horribly with an error related to
> multiarray.pyd.

Did you verify if manually importing Numeric's multiarray.pyd lead to a crash? 
To do so, manually change to the directory containing Numeric's multiarray.pyd 
(the one which is only 20K), and try to "import multiarray" at the prompt. If 
it crashes, then there's something really weird to me.

If it was to me, I'd simply remove Numeric altogether as it's superseded by 
Numpy. YMMV of course :)

> With that solved I wasn't crashing, but my bitmapcanvas wasn't being
> drawn, it simply remained a white box. It looks like this is due to a
> problem with the bitmapcanvas module of PythonCard and the PIL. If you
> look at bitmapcanvas.py you'll see it tests for the existance of the
> PIL by running "from Image import fromstring", which works fine
> uncompiled, but compiled it returns the error "ImportError, cannot
> import name fromstring". 

I can't reproduce this. I tried packaging this file:

====================
from Image import fromstring
print fromstring
====================

and it seems to work.

(Actually, there was a different bug I found, related to tkinter and the fact 
that PIL was being imported without naming the top-level package "PIL". I 
fixed it in r308 on trunk. You might want to try updating to the latest 
version to verify this is not related to the ImportError you are seeing).

> Does anyone have any theories on this?

Try again with latest version of PyInstaller SVN trunk. We can't do progress 
towards the goal until we understand all the problems we meet along the road...

I also changed the topic since I can't see how all of this is connected to the 
MSVCR71.DLL extract problem. We went from a segfault related to the 
Numeric/Numpy mess, to some weird PIL/wxPython import problem. I don't see 
MSVCR71.DLL coming out...
-- 
Giovanni Bajo


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

Reply via email to