Thanks Luke for pointing this out.

I've changed the code skip the movies if either the movie module is missing or there's a problem loading a movie.

On 18/12/2014 4:09 a.m., Luke Paireepinart wrote:
Looks like Pygame has a movie lib no matter what, but in some cases it raises a NotImplementedError based on your platform. So checking if it imports isn't enough, you'd have to catch the NotImplementedError when creating the movie and skip the movie during that function.

On Wed, Dec 17, 2014 at 6:49 AM, diliup gabadamudalige <dili...@gmail.com <mailto:dili...@gmail.com>> wrote:

    i used..
    try:
        from pygame import movie
        print "ok"
    except:
        print"error"

    and it printed ok so that means i have the movies module. But then
    why all those errors?
    are you using absolute paths for the movies?

    On Wed, Dec 17, 2014 at 6:04 PM, diliup gabadamudalige
    <dili...@gmail.com <mailto:dili...@gmail.com>> wrote:

        Warning (from warnings module):
          File "C:\Users\diliupg\Desktop\TimeTrek\TimeTrek.py", line 2948
            movie = pygame.movie.Movie("movies/PreIntro.mpg")
        RuntimeWarning: use movie: No module named movie
        (ImportError: No module named movie)

        Traceback (most recent call last):
          File "C:\Users\diliupg\Desktop\TimeTrek\TimeTrek.py", line
        2969, in <module>
            main()
          File "C:\Users\diliupg\Desktop\TimeTrek\TimeTrek.py", line
        87, in main
            preintro()
          File "C:\Users\diliupg\Desktop\TimeTrek\TimeTrek.py", line
        2948, in preintro
            movie = pygame.movie.Movie("movies/PreIntro.mpg")
          File "C:\Python27\lib\site-packages\pygame\__init__.py",
        line 102, in __getattr__
            raise NotImplementedError(MissingPygameModule)
        NotImplementedError: movie module not available
        (ImportError: No module named movie)

        above are the errors i got.

        I have Pygame 1.9.2 pre release.
        from where did you download ver.1.9.2?
        please send the link so that i can install that and play your
        game!
        :)

        On Wed, Dec 17, 2014 at 5:46 PM, diliup gabadamudalige
        <dili...@gmail.com <mailto:dili...@gmail.com>> wrote:

            hi ted!

            I am now downloading your game.
            You can try some of mine here.

            http://soft.diliupg.com/

            at the above link you will fine 3 games
            1.Space Gladiator
            2.Space Gladiator II
            3.Earthwar

            they are not very large to download. Play them and let me
            know whaqt you think.
            I will play your game and give you feed back.
            :)


            On Wed, Dec 17, 2014 at 9:22 AM, Ted Hunt
            <ted.h...@clear.net.nz <mailto:ted.h...@clear.net.nz>> wrote:

                Thanks Michael for your comments.

                Does anyone know what the future is for the movie
                module ? Will be eventually be included in all builds
                ? It would be great if it also supported a more modern
                video format (mpeg1 is not great for HD movies).

                Or should I be looking for an alternative ? I did see
                a post somewhere about piping data to/from ffmpeg ?

                Cheers,

                Ted.


                On 16/12/2014 12:46 a.m., Michael Lutynski wrote:

                    Hello Ted,

                    That’s quite the effort, and I’d love to give it a
                    go on my Kubunutu Linux setup, but the pygame
                    movie module isn’t implemented here, so my pygame
                    cannot play the .mpg videos :(

                        python TimeTrek.py

                    TimeTrek.py:2948: RuntimeWarning: use movie: No
                    module named movie
                    (ImportError: No module named movie)
                       movie = pygame.movie.Movie("movies/PreIntro.mpg")
                    Traceback (most recent call last):
                       File "TimeTrek.py", line 2969, in <module>
                         main()
                       File "TimeTrek.py", line 87, in main
                         preintro()
                       File "TimeTrek.py", line 2948, in preintro
                         movie = pygame.movie.Movie("movies/PreIntro.mpg")
                       File
                    "/usr/lib/python2.7/dist-packages/pygame/__init__.py",
                    line 102, in __getattr__
                         raise NotImplementedError(MissingPygameModule)
                    NotImplementedError: movie module not available
                    (ImportError: No module named movie)

                    It would be great if you could get an account on
                    pygame.org <http://pygame.org> so you could post
                    your game there for discovery and feedback.

                    Can anyone here help Ted showcase his game on
                    pygame.org <http://pygame.org>?

                    Michael

                    On Mon : Dec 15, 2014 4:12:10 PM you wrote:

                        Hi guys,

                        I've been unsuccessful at getting registered
                        on pygame.org <http://pygame.org>, so I thought
                        I'd post a link to my game here. Sorry if
                        that's the wrong thing to do.

                        My game (Time Trek) is based on a game I
                        played on the TRS-80 (micro
                        computer from the late 70s). I've updated...
                        everything a bit :-)

                        Here's a link to download it :-

                        
https://mega.co.nz/#!QZMTgR6S!4DJQ8KvQ5VdXwnCKIR63ouU2ng0z7Q93c4kzE3A1foo
                        
<https://mega.co.nz/#%21QZMTgR6S%214DJQ8KvQ5VdXwnCKIR63ouU2ng0z7Q93c4kzE3A1foo>

                        It requires python 2.7 and a pygame 1.9.2 that
                        contains the movie module
                        (http://pygame.org/ftp/pygame-1.9.2a0.win32-py2.7.msi).
                        Also at least a core 2 duo or better processor.

                        I hope you enjoy it and any feedback is welcome.

                        Cheers,

                        Ted.

                        ---
                        This email is free from viruses and malware
                        because avast! Antivirus protection is active.
                        http://www.avast.com



                ---
                This email is free from viruses and malware because
                avast! Antivirus protection is active.
                http://www.avast.com



-- Diliup Gabadamudalige

            http://www.diliupg.com
            http://soft.diliupg.com/

            
**********************************************************************************************
            This e-mail is confidential. It may also be legally
            privileged. If you are not the intended recipient or have
            received it in error, please delete it and all copies from
            your system and notify the sender immediately by return
            e-mail. Any unauthorized reading, reproducing, printing or
            further dissemination of this e-mail or its contents is
            strictly prohibited and may be unlawful. Internet
            communications cannot be guaranteed to be timely, secure,
            error or virus-free. The sender does not accept liability
            for any errors or omissions.
            
**********************************************************************************************



-- Diliup Gabadamudalige

        http://www.diliupg.com
        http://soft.diliupg.com/

        
**********************************************************************************************
        This e-mail is confidential. It may also be legally
        privileged. If you are not the intended recipient or have
        received it in error, please delete it and all copies from
        your system and notify the sender immediately by return
        e-mail. Any unauthorized reading, reproducing, printing or
        further dissemination of this e-mail or its contents is
        strictly prohibited and may be unlawful. Internet
        communications cannot be guaranteed to be timely, secure,
        error or virus-free. The sender does not accept liability for
        any errors or omissions.
        
**********************************************************************************************



-- Diliup Gabadamudalige

    http://www.diliupg.com
    http://soft.diliupg.com/

    
**********************************************************************************************
    This e-mail is confidential. It may also be legally privileged. If
    you are not the intended recipient or have received it in error,
    please delete it and all copies from your system and notify the
    sender immediately by return e-mail. Any unauthorized reading,
    reproducing, printing or further dissemination of this e-mail or
    its contents is strictly prohibited and may be unlawful. Internet
    communications cannot be guaranteed to be timely, secure, error or
    virus-free. The sender does not accept liability for any errors or
    omissions.
    
**********************************************************************************************




---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com

Reply via email to