Hi Laurent, 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:[email protected]] > *Envoyé :* dimanche 13 décembre 2009 20:33 > *À :* [email protected] > *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 > > -- > > 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. -- 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.
