Hi,

I tried your code on my Linux box at home and ran into problems. It
claimed to play the file but really didn't. So I tried this example
instead:

http://techbase.kde.org/Development/Tutorials/Phonon/Introduction/Python

That one works fine. I then froze it and it worked just fine, too,
without the need for any hooks. Can you try that sample yourself and
confirm whether or not it works for you? It looks like you are using
Windows so perhaps I'll have to give it a try on that platform as well
but it would be good to know whether the sample does/does not work for
you first. One way or the other we'll get it to work for you. :-)

Anthony

On Wed, Jul 14, 2010 at 12:50 PM, F.A.Pinkse <fapin...@gmail.com> wrote:
> Hi Anthony,
>
> I am still having difficulties in getting the hook working
>
> I havet his script
>
> #test include_files
>
> from PyQt4.phonon import Phonon
>
> print('ok')
>
> and this setupscript
>
>
> import sys
>
> from cx_Freeze import setup, Executable
>
> base = None
> if sys.platform == "win32":
>     base = "Win32GUI"
>
> #buildOptions = dict(
> #        include_files = [("Freeze", "Freeze")]
> #        )
> #
> #        options = dict(build_exe = buildOptions),
>
> setup(
>         name = "Beacon keyer",
>         version = "0.1",
>         description = "ww2r beacon keyer",
>         executables = [Executable("test_include_files.py", base = base)])
>
> and added this hook to hooks.py
>
> def load_PyQt4_phonon(finder, module):
>     """phonon requires the plugins\phonon_backend\phono_ds94.dll into
> <target>\phonon_backend"""
>     print('phonon hook')
>     if module.path==None: module.path=['']
>     dir = os.path.join(module.path[0], "Freeze")
>     finder.IncludeFiles(dir, "Freeze")
>
>
> I see the print from the hook being printed as phonon hook.
>
> but just after the long list of m ......
>
> I get:
>
> Missing modules:
> ? PyQt4.phonon.Phonon imported from test_include_files__main__
>
>
> When I change to import PyQt4 and the hook to def load_PyQt4
> I get the 'phonon hook' printed.
> no missing modules this time, but no files included either
>
> The setup buildoptions method does work.
>
> Any suggestions to explore this problem further?
>
>
> With best regards,
>
>
> Frans.
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> cx-freeze-users mailing list
> cx-freeze-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to