Glad to hear atleast the build works! Regarding the exe launch error,h
Hi florian,
This night, I’ve cleaned up all my directory, reapplied the patch and…
It works!
J
In fact there was a mess on my system install mixing python25 and python26….
Anyhow, your latest patch 13/12/2009 is perfect!
My program use a lot of libs, matplotlib/pyqt4/numpy/scipy and all manifest are OK J
Even the one file creation is working packing all .dll inside the .Exe!
Gooooood job!
You can include it in the main tree ;)
Ps:
Makespec.py ..\%name%.py --manifest msvc90dep.manifest is MANDATORY without it I got DLL import error.
Can this be done automagically for the user?
De : Laurent Dufrechou
[mailto:laurent....@gmail.com]
Envoyé : dimanche 13 décembre 2009 20:33
À : pyins...@googlegroups.com
Objet : Re: [PyInstaller] Re: Issue with python 2.6 + ticket 39
patch
Hi florian,
good to hear you got it sorted. I thought it should work, but one can
never be too sure until someone else on another system confirms stuff :)
Regarding adding a manifest to the pyinstaller generated exe
automagically, I'll consider it. There's one problem, which arises in
one-file exe mode: The MSVCRT90 assembly has also to be copied next to
the executable -or- the redistributable needs to be installed, so, no
'true' one-file exe's anymore - atleast when using matplotlib. The
interesting thing is, that a manifest in the exe is not needed when
including most other 3rd-party modules e.g. numpy or PyQt, and
python's standard library. So it'd be interesting to find out what's
different in matplotlib from the other modules. Maybe I could somehow
add that a manifest is needed by matplotlib to its import hook. I'll
think about it.
Regards,
Florian
PS: As I'm just the patch contributor, it's up to Giovanni Bajo
to decide when/if it's included, I think currently it is postponed to
pyinstaller 1.5 (which is fine by me, as obviously there are still some
things to iron out :))
Laurent Dufrechou schrieb:
> Hi florian,
>
> This night, I’ve cleaned up all my directory, reapplied the patch and…
>
> It works!
>
>
>
> J
>
> In fact there was a mess on my system install mixing python25 and python26….
>
>
>
> Anyhow, your latest patch 13/12/2009 is perfect!
>
>
>
> My program use a lot of libs, matplotlib/pyqt4/numpy/scipy and all
> manifest are OK J
>
> Even the one file creation is working packing all .dll inside the .Exe!
>
>
>
> Gooooood job!
>
>
>
> You can include it in the main tree ;)
>
>
>
> Ps:
>
> Makespec.py ..\%name%.py --manifest msvc90dep.manifest is MANDATORY
> without it I got DLL import error.
>
> Can this be done automagically for the user?
>
>
>
> *De :* Laurent Dufrechou [mailto:laurent....@gmail.com]
> *Envoyé :* dimanche 13 décembre 2009 20:33
> *À :* pyins...@googlegroups.com
> *Objet :* Re: [PyInstaller] Re: Issue with python 2.6 + ticket 39 patch
>
>
>
> Hi florian,
>
> Look this interesting thing:
>
> In [40]:
> imp.load_module('matplotlib._path',a,"C:\\...\\Manager\\",('.pyd','rb',3))
> ---------------------------------------------------------------------------
> ImportError Traceback (most recent call last)
>
> C:\..\Manager\<ipython console> in <module>()
>
> ImportError: DLL load failed: Le module spÚcifiÚ est introuvable.
>
> In [41]: a,b,c = imp.find_module('matplotlib._path')
>
> In [42]: imp.load_module('test',a,b,c)
> Out[42]: <module 'matplotlib._path' from 'matplotlib._path.pyd'>
>
> I think there is definitively something wrong with imp.laod_module.
> I'll try to patch iu.py to use find_module, and will keep you updated.
>
> Cheers,
> Laurent
>
-----Message d'origine-----
De : pyins...@googlegroups.com [mailto:pyins...@googlegroups.com] De
la part de Florian Höch
Envoyé : jeudi 17 décembre 2009 15:58
À : pyins...@googlegroups.com
Objet : Re: [PyInstaller] Re: Issue with python 2.6 + ticket 39 patch