1. pygame
  2. pygame
  3. pygame

Issues

Issue #107 open

Pygame 1.9.2 release

Lenard Lindstrom
created an issue

Pygame 1.9.2 release TODO

This issue is for coordinating the release of Pygame 1.9.2.

Windows

  • Prebuilt libraries: ready for Win32, need Win64 builds.
  • Testing: Passes unit tests for Python 2.7 and Python 3.3/3.4

Issue #75 - freetype module

Comments (75)

  1. René Dudfield

    hey,

    For the new freetype stuff, we can run them through a few games that are normally used for testing to see if they work. Perhaps asking on the mailing list for testing or a code review.

    We can use the release plan docs, which are in docs/howto_release_pygame.txt if they are still ok. Basically about two weeks of RCs and testing and announcing on the mailing list to give anyone time.

    OSX builds with new SDL. The apple pythons, and the python.org pythons.

    I'll ask Brian if we can get the build bots updating from hg or not... http://thorbrian.com/pygame/builds.php

    Doc comments... clean up included doc comments included in offline docs, so spam isn't included. Or just don't include them. Or consider using the same comment system that is used on the projects (which has really good spam prevention tools, but still allows easy commenting).

    I've resigned myself to not being able to clean up a lot of the half finished Experimental modules. They can just be released marked as Experimental, and maybe get improved apon later I think.

    Open 1.9.2 bugs... we can make a list here of the bugs, and see if there are any we can fix.

    cheers,

  2. Lenard Lindstrom reporter
    • freetype: The Windows prebuilts are ready for another Windows installer release. In the mailing list post I will ask users to test freetype with it.
    • Automated Build Page: I have only supplied prebuilts for Python 2.6 and up. Compiling smpeg was a problem. I finally caved in and built it separately Visual Studio. For msvcr71.dll - if we continue to build Windows installers for Python 2.4 and 2.5 - I suppose I can reuse the smpeg library from the previous Pygame release. Also, I looked at uploading the builds directly to the bitbucket download page. But I did not find an api for that.
    • Open bugs: Yes, I will go over them as well.
  3. Lenard Lindstrom reporter

    Hope to have Windows prebuilts soon for both 32-bit and 64-bit Windows. Right now I am cross-compiling from Linux. I have only tested the 32-bit version on Wine so far. They work, though are not a drop-in replacement for the ones built on Windows XP. Next, I will test the 32-bit prebuilts on XP.

  4. Thomas Kluyver

    PyGame 2 is probably going to be a much bigger deal - see issue #174 for that. But it would be really good to see a release of pygame on PyPI with wheels, so that people can easily install it. Even if that's just releasing the code as it is right now (or the last working version, if something just got broken), I think it's important to make it so that people can get it with pip.

  5. Diliup Gabadamudalige

    I am currently working with pygame-1.9.2a0.win32-py2.7 and this so far has no crash or errors. A final version would be good for stability. I think it is the "game" part in the name that is putting people off and delaying the improvements maybe because it sounds "gamish" and not serious.. ? ! :)

  6. René Dudfield

    Yes, pip install is the main thing I think #59. Would be nice to fix the current test failures, and go through the pull requests to review them, and possibly include them if they make sense.

    Doing some testing with python3.5 would be needed. There's a pull request for getting the test runner open. That might be a nice help for someone to see if that works and if so apply it.

  7. Thomas Kluyver

    I spent a while yesterday trying to get the Launchpad builds working on Ubuntu 16.04. I ran into a bizarre problem with numpy, however: when the test subprocess tries to import numpy, it fails with:

      File "/usr/lib/python2.7/dist-packages/numpy/core/__init__.py", line 14, in <module>
        from . import multiarray
    ImportError: cannot import name multiarray
    

    Full build log here.

    I added an import numpy in the parent test runner process, and that doesn't cause an issue, but for some reason it doesn't work in the tests that try to use it (I was debugging sndarray). Any ideas?

    I also had to tweak the include and library paths a bit for the new Debian multiarch stuff. That patch isn't quite right yet - I'll have a better shot at getting it working, and make a pull request.

  8. Thomas Kluyver

    Updates on this: we have tests passing on Travis and on Launchpad, and most of the PRs that are fixing things (rather than adding things) are merged. The remaining things I see are:

    • pull request #9, changing directory precedence for configuration on Unix. This is simple and probably OK, though I wonder if it would be better to change it to use the first directory it finds rather than the last.
    • pull request #29, changing how SDL libraries are found on OSX. I don't know about this and can't test it; it also has a merge conflict now. Maybe best deferred to after the release?
    • pull request #64, building Windows wheels on Appveyor. It would be good if someone could have a go at working out why compilation fails for Python 3.5.
    • Building 'manylinux' wheels via docker (not a PR) - I have this half-way working, but a lot of tests fail in the resulting builds. I suspect building newer versions of the SDL libraries from source might improve matters. This would be nice to have, but we shouldn't hold up the release for it.
  9. Thomas Kluyver

    Let's not lose the momentum here - does anyone have time to look at pull request #29 (finding SDL libraries on OS X) or pull request #64 (building Windows wheels on Appveyor)?

    Someone also opened an issue about segfaults with a recent commit (#297). If that's a recent regression, which isn't clear from the description, it would be nice to find a fix before doing a release.

  10. René Dudfield

    Awesome work Thomas. Also, thanks for the gentle pushes.

    I have some time this weekend :) Will attempt the OSX stuff first. I noticed that travisci now has OSX builds available!

    ps. I left a note on the appveyor pull request. If you merge your code in, then I should be able to slowly attempt to fix it. (if my notes don't fix it already).

    Cheers!

  11. Thomas Kluyver

    René Dudfield : another gentle push ;-) Do you think you might have time to look at those two pull requests this weekend? I hope they're the last things to do before making a 1.9.2 release.

    Of course, anyone else reading this is encouraged to review the PRs as well. It would also be useful if any Windows users could install the wheels from Appveyor (select the relevant Python version, and click the 'Artifacts' tab), and make sure that they work for running games on your computer. To run the aliens example game: python -m pygame.examples.aliens.

  12. René Dudfield

    Hi ya,

    I've been working on mac related things last weekend, and will continue this weekend. Unfortunately the latest development environment doesn't work that well for older versions of MacOS. So I'm going to concentrate my efforts on the travisci mac builds which have access to OS X 10.9 - 10.11. Tracking on issue #300

  13. Diliup Gabadamudalige

    With all due respect to all,

    D:\PYTHON\SoftwareDG\Utilities\file rename new\File Utility\File Utility DG.exe\FR_frompy.py:154: RuntimeWarning: use mixer: DLL load failed: The specified module could not be found. (ImportError: DLL load failed: The specified module could not be found.) Traceback (most recent call last): File "FR_master.py", line 28, in <module> File "FR_frompy.pyo", line 154, in <module> File "pygame__init.pyo", line 105, in getattr__ NotImplementedError: mixer module not available (ImportError: DLL load failed: The specified module could not be found.)

    So many years into pygame but this has NEVER been corrected.

    If I knew how to amend this I would have done it. Does anyone know a way around this??

    I sincerely hope that at least this time we can expect a PYGAME without all these unnecessary errors.

  14. Thomas Kluyver

    Diliup Gabadamudalige can you file separate errors for those two issues (if there aren't already issues). And please include a traceback for the second one - I don't recall much from 2 years ago!

    It would also be helpful to know:

    • Which specific versions have you installed: not just 'from this page', but which file?
    • Can you test with the wheels that are now being built on Appveyor? See my message on the mailing list for how to do this. I hope that wheels built like this will become the official release, so if they work, we may not need to fix anything.
  15. Thomas Kluyver

    I've just tested the wheels from Appveyor with Python 3.5 and 2.7, both 64-bit. I could play the aliens example with sound on both. On 3.5 the whole test suite passed, but on 2.7 there was one error.

    ======================================================================
    FAIL: test_freetype_Font_path (pygame.tests.freetype_test.FreeTypeFontTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "C:\Users\Thomas\Miniconda3\envs\pygame-py2\lib\site-packages\pygame\test
    s\freetype_test.py", line 1127, in test_freetype_Font_path
        self.assertEqual(self._TEST_FONTS['sans'].path, self._sans_path)
    AssertionError: u'C:\ufffdsers\\Thomas\\Miniconda3\\envs\\pygame-py2\\lib\\site-
    packages\\pygame\\tests\\fixtures\\fonts\\test_sans.ttf' != 'C:\\Users\\Thomas\\
    Miniconda3\\envs\\pygame-py2\\lib\\site-packages\\pygame\\tests\\fixtures\\fonts
    \\test_sans.ttf'
    

    It looks like a path has been misconstructed: that \ufffd is the unicode replacement character, presumably because the \U in C:\Users was interpreted as a unicode escape.

  16. Diliup Gabadamudalige

    https://bitbucket.org/pygame/pygame/downloads

    In the repo above which is the latest Pygame version for Python27 and Python35 respectively running on 32 bit windows?

    Is it prebuilt-x86-pygame-1.9.2-20150922.zip https://bitbucket.org/pygame/pygame/downloads/prebuilt-x86-pygame-1.9.2-20150922.zip and prebuilt-x64-pygame-1.9.2-20150922.zip https://bitbucket.org/pygame/pygame/downloads/prebuilt-x64-pygame-1.9.2-20150922.zip

    or

    pygame-1.9.2a0-hg_8d9e6a1f2635+.win-amd64-py2.7.msi https://bitbucket.org/pygame/pygame/downloads/pygame-1.9.2a0-hg_8d9e6a1f2635+.win-amd64-py2.7.msi and pygame-1.9.2a0-hg_8d9e6a1f2635+.win-amd64-py3.4.msi https://bitbucket.org/pygame/pygame/downloads/pygame-1.9.2a0-hg_8d9e6a1f2635+.win-amd64-py3.4.msi respectively.

    Why is

    which is from the Pygame site such a large installation compared to the one on bitbucket

    The same applies to

    The Pygame._view error comes when you install from the PYGAME site. This has been persistant since2013. I have pointed this out several years ago. Good to have something happening at least now.

  17. Thomas Kluyver
    • The prebuilt- downloads are a bundle of libraries that are needed to compile pygame. If you just want to use pygame, you can safely ignore the prebuilt- files.
    • You can see the upload dates on there, and the latest ones are from last September. Testing builds of the latest code are available on Appveyor (select the relevant build, then click artifacts). When we do a release, they'll go on PyPI.
    • I've no idea about the size discrepancy: I didn't build either of the packages you're comparing.

    The Pygame._view error comes when you install from the PYGAME site. This has been persistant since 2013.

    I still don't know what the error you're referring to is! Please create an issue with the details. It's entirely possible that the installers on the download page have been the same build since 2013 and this issue is already fixed. If so, the most important thing is to do a new release and update the download page.

  18. Diliup Gabadamudalige

    Hi!

    I don't know how to create an issue. Maybe you can create one with this info.

    When you create a program with Python 27 and Pygame and when you run it ImportError: No module named _view props up. This happens when yoou install Pygame from the installation on PYGAME WEB SITE. If you install from the bitbucket site this error is NOT THERE. pygame._view module is missing. I don't know how to make it any clearer than that.

  19. Thomas Kluyver

    You can create an issue by clicking on the 'Issues' section to the left and then clicking the 'Create issue' button in the top right. Here's a shortcut: https://bitbucket.org/pygame/pygame/issues/new

    The key detail I'd want to add your description is what code you need to trigger the error. Does import pygame immediately cause the error? Does running python -m pygame.examples.aliens cause the error? Or does the code need to do something more specific to cause it?

    I'd guess, however, that the installers linked on the download page are relatively old, and this is something that was fixed by the time the newer installers were made and uploaded to the Bitbucket downloads section. If that is the case, there's nothing that needs to be fixed in the code, just the download page (which I don't have access to change). But it would be good if someone who's seen this error can confirm that it's gone with the latest wheel builds.

  20. PanderMusubi

    We are about to start a project with pygame, however we are only allowed to work in Python 3 with stable releases. If there are reasonable fool-proof instructions on what (which branch with specific commands) and how (which games and tutorials) to test on Linux, OSX and Windows, we could help out with some testing and detailed reporting on bugs.

  21. Thomas Kluyver

    Thanks Pander, that would be great!

    The most useful thing would be OSX testing, because that's the one I can't easily test and don't know how to fix. Using homebrew, you should be able to:

    hg clone ssh://hg@bitbucket.org/pygame/pygame
    brew install sdl sdl_image sdl_mixer sdl_ttf smpeg jpeg libpng portmidi freetype python3 python
    # Optionally create a virtualenv at this point
    pip install --upgrade setuptools pip
    pip install --upgrade numpy
    python config.py
    python setup.py install
    
    # Run the tests:
    python -m pygame.tests
    
    # Run an example:
    python -m pygame.examples.aliens
    

    With the tests, do you see the same errors that we got on Travis, described in issue #300?

    Ideally, try with both Python 3 and 2, but if you don't have time, just getting Python 3 tested would be valuable.

    If you also have time to test on Linux, the procedure is similar. On a Debian based distribution, you should be able to install the dependencies like this:

    sudo apt-get install python-dev python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libportmidi-dev libjpeg-dev libtiff4-dev libx11-6 libX11-dev xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic
    

    On Windows, we have ready built wheels on Appveyor. Select the relevant build from that page by Python version and 32/64 bit, click the artifacts tab, and download the wheel. You can install the wheel files with pip install pygame...whl (expand ... to the filename you downloaded).

  22. PanderMusubi

    For Ubuntu Xenial libtiff4-dev -> libtiff5-dev and libX11-dev -> libx11-dev

    Furthermore. hg fails:

    $ hg clone ssh://hg@bitbucket.org/pygame/pygame The authenticity of host 'bitbucket.org (104.192.143.2)' can't be established. RSA key fingerprint is SHA256:zzXQOXSRBEiUtuE8AikJYKwbHaxvSc0ojez9YXaGp1A. Are you sure you want to continue connecting (yes/no)? yes remote: Warning: Permanently added 'bitbucket.org,104.192.143.2' (RSA) to the list of known hosts. remote: Permission denied (publickey). abort: no suitable response from remote hg!

    $ hg clone ssh://hg@bitbucket.org/pygame/pygame remote: Permission denied (publickey). abort: no suitable response from remote hg!

  23. Thomas Kluyver

    Aha, thanks - I copied the command off our Travis job, which I think still runs on Trusty...or even Precise, maybe.

    Sorry, my mistake with hg, I copied the command without thinking. If you clone with https, it should work:

    hg clone https://bitbucket.org/pygame/pygame
    
  24. PanderMusubi

    this error

    ```$ python -m pygame.tests ... loading pygame.tests.transform_test .......F......F..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... ====================================================================== FAIL: test_get_error (pygame.tests.base_test.BaseModuleTest)


    Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pygame/tests/base_test.py", line 572, in test_get_error e) AssertionError: Failed to access the SoundFont /usr/share/sounds/sf2/FluidR3_GM.sf2

    ====================================================================== FAIL: test_set_error (pygame.tests.base_test.BaseModuleTest)


    Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pygame/tests/base_test.py", line 589, in test_set_error e) AssertionError: Failed to access the SoundFont /usr/share/sounds/sf2/FluidR3_GM.sf2


    Ran 708 tests in 26.822s

    FAILED (failures=2)```

    and after installing fluid-soundfont-gm

    ```====================================================================== FAIL: test_get_error (pygame.tests.base_test.BaseModuleTest)


    Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pygame/tests/base_test.py", line 572, in test_get_error e) AssertionError: Failed to access the SoundFont /usr/share/sounds/sf2/TimGM6mb.sf2

    ====================================================================== FAIL: test_set_error (pygame.tests.base_test.BaseModuleTest)


    Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pygame/tests/base_test.py", line 589, in test_set_error e) AssertionError: Failed to access the SoundFont /usr/share/sounds/sf2/TimGM6mb.sf2


    Ran 708 tests in 29.049s

    FAILED (failures=2)```

    is fixed with sudo apt-get install fluid-soundfont-gm and in the source code you need to change /usr/share/sounds/sf2/TimGM6mb.sf2 into /usr/share/sounds/sf2/FluidR3_GM.sf2 (I think). Can you confirm this and let me know when this is fixed in hg so I can build and test again?

    PS Ubuntu Xenial has fluid-soundfont-gm 3.1-5

  25. PanderMusubi

    Sorry, small update. I needed to install two packages: sudo apt-get install fluid-soundfont-gm fluid-soundfont-gs

    $ dpkg -L fluid-soundfont-gs|grep '\.sf2' /usr/share/sounds/sf2/FluidR3_GS.sf2 $ dpkg -L fluid-soundfont-gm|grep '\.sf2' /usr/share/sounds/sf2/FluidR3_GM.sf2

    Resulting error is: AssertionError: Failed to access the SoundFont /usr/share/sounds/sf2/TimGM6mb.sf2

  26. Thomas Kluyver

    OK, so on Ubuntu Xenial, here's the updated list of packages you needed to install:

    python-dev python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libportmidi-dev libjpeg-dev libtiff5-dev libx11-6 libx11-dev xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic fluid-soundfont-gm timgm6mb-soundfont
    
  27. PanderMusubi

    On Raspbian Jessie (on a Raspberry Pi 2) you need to install something different: install fluid-soundfont-gm musescore-soundfont-gm

    And add to the general list: apt-get install mercurial python-setuptools python3-setuptools python-numpy python3-numpy (I would prefer that over installations via pip.)

  28. PanderMusubi

    On Raspbian Jessie, the aliens example works, but the normal test results in failures=5, errors=13:

    File "/usr/local/lib/python2.7/dist-packages/pygame/tests/scrap_test.py", line 33, in setUp scrap.init () error:: SDL is not running on know window manager

    and above that

    ... font_test.py", line 192, in test_render_args ... AssertionError: Tuples differ: (8, 8, 8) != (10, 10, 10)

    This I copied manually from the screen. In which file can I find the output of the test?

  29. PanderMusubi

    I hope this Friday on the machine of my colleague. Before embarking on testing OSX, wanted to get it running on Ubuntu and Raspbian in order to know what I am doing. As I don't have a lot of experience in building on OSX, ask also others.

  30. Thomas Kluyver

    Are you running in a graphical environment on the raspi? If it's in a plain console, then you need to configure some things to run the tests:

    SDL_VIDEODRIVER=dummy SDL_AUDIODRIVER=disk python -m pygame.tests --exclude opengl
    
  31. PanderMusubi

    Will do that tomorrow morning. Please, remove any .deb dependencies on font packages. This is a nightmware for users of TeX Live and other users that work with custom font installations or alternative font sources. This is a long story why, which I gladly explain if needed. Usually font package dependencies are only for one or two example templates or test cases. Preferably, also do not ship any TTF or OTF files. Using font-config will help you to find font files in a dynamic way.

  32. PanderMusubi

    I had a quick look at all the font dependencies and font inclusion et cetera. Do you agree to create a separate issue for that to optimize that reducing font dependencies to a minimum and making font usage (in testing and examples) TTF/OTF agnostic?

  33. Thomas Kluyver

    Feel free to open an issue for it. I don't want to hold the 1.9.2 release up on that, however, because I suspect it's been that way for a long time, and it's proving more than hard enough already to actually get to a release, so we don't want to add more blockers unless they're really critical.

  34. PanderMusubi

    Yes, that did the trick! (I am a bit lazy testing regarding pygame.) sudo apt-get install fontconfig it is

    Do you have a wiki page where this all gets documented?

    ```skipping pygame.tests.cdrom_test (tag 'interactive') skipping pygame.tests.midi_test (tag 'interactive') skipping pygame.tests.sndarray_test (tag 'subprocess_ignore') skipping pygame.tests.surfarray_test (tag 'subprocess_ignore') loading pygame.tests.base_test loading pygame.tests.blit_test loading pygame.tests.bufferproxy_test loading pygame.tests.camera_test loading pygame.tests.color_test loading pygame.tests.compat_test loading pygame.tests.cursors_test loading pygame.tests.display_test loading pygame.tests.draw_test loading pygame.tests.event_test loading pygame.tests.fastevent_test loading pygame.tests.font_test loading pygame.tests.freetype_test loading pygame.tests.ftfont_test loading pygame.tests.gfxdraw_test loading pygame.tests.image__save_gl_surface_test loading pygame.tests.image_test loading pygame.tests.imageext_test loading pygame.tests.joystick_test loading pygame.tests.key_test loading pygame.tests.mask_test loading pygame.tests.math_test loading pygame.tests.mixer_music_test loading pygame.tests.mixer_test loading pygame.tests.mouse_test loading pygame.tests.overlay_test loading pygame.tests.pixelarray_test loading pygame.tests.pixelcopy_test loading pygame.tests.rect_test loading pygame.tests.rwobject_test loading pygame.tests.scrap_test loading pygame.tests.sprite_test loading pygame.tests.surface_test loading pygame.tests.surflock_test loading pygame.tests.sysfont_test loading pygame.tests.threads_test loading pygame.tests.time_test loading pygame.tests.transform_test ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................


    Ran 644 tests in 48.003s

    OK```

  35. PanderMusubi

    Now running the build, tests and examples with Python 3 (from another hg clone). Extra requirement is sudo apt-get install python-opengl python3-opengl With Python 2 the example glcube works, with Python3 I get the error:

    The GLCUBE example requires PyOpenGL

    I also got that when I ran the example with Python 2 before installing python-opengl and python3-opengl. So pygame run with Python3 cannot find the opengl Python 3 bindings.

  36. Thomas Kluyver

    3.1.0 was what I got from PyPI (I didn't use the --pre flag to get the 3.1.1 alpha), so there's no need to upgrade it in Yakkety. I doubt you'll get an upgrade into Xenial now, but if you want to try, it looks like this is the issue: https://bugs.launchpad.net/ubuntu/+source/pyopengl/+bug/1573689

    Aside: this sort of thing is why I rarely recommend distro packages - they've packaged this for an LTS release even though it's unusable, and it will now be a huge pain to fix.

  37. PanderMusubi

    After installing 3.1.0 from Yakkety I get a black window appearing shortly and then this error:

    p3/pygame$ python3 -m pygame.examples.glcube
    Traceback (most recent call last):
      File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
        "__main__", mod_spec)
      File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
        exec(code, run_globals)
      File "/usr/local/lib/python3.5/dist-packages/pygame/examples/glcube.py", line 109, in <module>
        if __name__ == '__main__': main()
      File "/usr/local/lib/python3.5/dist-packages/pygame/examples/glcube.py", line 104, in main
        drawcube()
      File "/usr/local/lib/python3.5/dist-packages/pygame/examples/glcube.py", line 63, in drawcube
        pos, color = allpoints[vert]
    TypeError: 'zip' object is not subscriptable
    

    Using 3.1.0 for Python 2 works.

    PS Please upvote the bug on launchpad, that might help.

  38. PanderMusubi

    after

    hg pull hg update

    glcube with Python 3 and python3-opengl 3.1.0 works. Thanks. I haven't ran all the examples, but it looks like it all works. Which ones are essential to complete Ubuntu and Raspbian testing?

  39. Thomas Kluyver

    I'm not sure, to be honest; I haven't run them all either. I usually start with aliens because that's a reasonably complete mini-game, so it exercises input handling, 2d graphics, sprites and sound. If you have existing pygame code yourself, it would be great if you could check that it isn't broken with the latest pygame version.

    If anyone has plenty of spare time, they could get pyweek games that use pygame, and check that they still work with the latest version. But the biggest priority for doing a release is sorting out the Mac issues listed at #300.

  40. PanderMusubi

    Okay, I am on an up to date OSX machine (which is not my domain) and did the following:

    $ python
    Python 2.7.5...
    ...
    exit(0)
    $ sudo easy_install pip
    $ pip install --upgrade setuptools pip
    $ pip install --upgrade numpy
    $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/HomeBrew/install/master/install)"
    $ sudo xcodebuild -license
    q
    agree
    $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/HomeBrew/install/master/install)"
    $ brew install mercurial
    $ brew install sdl sdl_image sdl_mixer sdl_sdl_ttf portmidi smpeg jpeg freetype
    $ mkdir p2; cd p2
    $ hg clone https://bitbucket.org/pygame/pygame
    $ cd pygame
    $ python config.py # ended up installing XQuartz-2.7.9.dmg
    ...
    Hunting dependencies...
    SDL     : found 1.2.15
    Framework SDL not found
    FONT    : found
    Framework SDL_ttf not found
    IMAGE   : found
    Framework SDL_image not found
    MIXER   : found
    Framework SDL_mixer not found
    Framework CoreMIDI found
    Framework QuickTime found
    PNG     : found
    JPEG    : found
    PORTMIDI: found
    FREETYPE: found 2.6.3
    ...
    # HOW TO INVESTIGATE AND FIX THE ERRORS REPORTED ABOVE?
    $ sudo python setup.py install
    ...
    Finished processing dependencies for pygame==1.9.2b1
    $ python -m pygame.tests
    # RESULTS IN THERE ERRORS AND FAILERS http://pastebin.com/aXQeUEad
    $ python -m pygame.examples.aliens
    # WORKS, ALSO SOUND, HOWEVER NO TRANSPARANCY ON SPRITES
    
    
    
    $ cd ../..
    $ brew python3
    $ xcode-select --install
    $ brew python3
    $ mkdir p3; cd p3
    $ hg clone https://bitbucket.org/pygame/pygame
    $ cd pygame
    $ python3 config.py
    Using Darwin configuration...
    
    Hunting dependencies...
    SDL     : found 1.2.15
    Framework SDL not found
    FONT    : found
    Framework SDL_ttf not found
    IMAGE   : found
    Framework SDL_image not found
    MIXER   : found
    Framework SDL_mixer not found
    Framework CoreMIDI found
    Framework QuickTime found
    PNG     : found
    JPEG    : found
    PORTMIDI: found
    FREETYPE: found 2.6.3
    
    If you get compiler errors during install, doublecheck
    the compiler flags in the "Setup" file.
    
    $ sudo python3 setup.py install
    ...
    Writing /usr/local/lib/python3.5/site-packages/pygame-1.9.2b1-py3.5.egg-info
    $ python3 -m pygame.tests
    # RESULTS IN ERRORS AND FAILURES, SEE http://pastebin.com/W7LcqW2K
    $ python3 -m pygame.examples.aliens
    # WORKS, WITH SOUND, NO TRANSPARENCY IN SPRITES
    

    Let me know when what and how to analyse and retest.

  41. Log in to comment