|[PyInstaller] pygst,gobject windows problem||drakkan||4/24/10 4:49 AM|
I'm trying to setup a gstreamer based application, the main imports
are the followings:
after packaging I have this error:
ImportError: No module named gst
I'm using python 2.6.5 on windows, pygst (http://forja.rediris.es/frs/
download.php/1414/Pygst-0.10.15.1-Python26.exe), pygobject (http://
pyinstaller-py26 rev. 825,
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To post to this group, send email to pyins...@googlegroups.com.
To unsubscribe from this group, send email to pyinstaller...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
|Re: [PyInstaller] pygst,gobject windows problem||Florian Höch||4/24/10 1:19 PM|
Also happens using trunk, I guess the reason is that the actual
directory containing gst is added to sys.path by pygst.require, and
pyinstaller only sees the pygst import. I could be mistaken though.
Am 24.04.2010 13:49, schrieb drakkan:
> I'm trying to setup a gstreamer based application, the main importsFlorian Höch
|Re: [PyInstaller] pygst,gobject windows problem||Florian Höch||4/24/10 1:34 PM|
Correction: pyinstaller sees all imports, but it fails to add gst
because the actual directory containing it is only added to sys.path
when pygst.require is executed. You can check the warnfile, you should
see a warning that gst could not be imported.
Am 24.04.2010 22:19, schrieb Florian Höch:
|[PyInstaller] Re: pygst,gobject windows problem||drakkan||4/24/10 1:56 PM|
do you have a fix too?
I tryed to manually add gst to sys.path but in the warnfile I see the
warning about gst import
|Re: [PyInstaller] Re: pygst,gobject windows problem||Florian Höch||4/24/10 2:08 PM|
Sorry, no. I think it could be handled by an import hook.
Am 24.04.2010 22:56, schrieb drakkan:
|[PyInstaller] Re: pygst,gobject windows problem||drakkan||4/24/10 2:10 PM|
Ok solved, I added the gst path to pathex,
|Re: [PyInstaller] pygst,gobject windows problem||Giovanni Bajo||4/26/10 12:36 AM|
On Sat, 24 Apr 2010 22:34:42 +0200, Florian Höch <floria...@gmx.de>
> Correction: pyinstaller sees all imports, but it fails to add gstSo, how does the "import pygst" line ever usually work?
Giovanni Bajo :: ra...@develer.com
Develer S.r.l. :: http://www.develer.com
My Blog: http://giovanni.bajo.it
|Re: [PyInstaller] pygst,gobject windows problem||Florian Höch||4/26/10 5:10 AM|
pygst lies directly in site-packages and basically just contains the
require() function. So in a script you always do `import pygst`,
`pygst.require(version)` and it will add the correct gst-<version>
directory (there can be several concurrent different versions) to
sys.path. Then, you do `import gst`.
Am 26.04.2010 09:36, schrieb Giovanni Bajo:
> On Sat, 24 Apr 2010 22:34:42 +0200, Florian Höch<floria...@gmx.de>Florian Höch
|Re: [PyInstaller] pygst,gobject windows problem||Giovanni Bajo||4/26/10 10:30 AM|
On Mon, 2010-04-26 at 14:10 +0200, Florian Höch wrote:Ah, the joy of pkg_resources and its runtime magic :)
I think another workaround is to add import pygst; pygst.require("...")
within the spec file itself. Not beautiful, but still better than
hardcoding its full path in pathex.
I think the best solution for PyInstaller would be to:
1) Detect calls to pkgname.require() (not easy)
2) Create and invoke a wrapper script that does something like:
3) Dynamically add the new paths to the pathex
Last post: Grey on black: combining greylisting with blacklists