Giter Club home page Giter Club logo

Comments (11)

hamidnazari avatar hamidnazari commented on August 22, 2024 3

For anyone still having this issue... try

brew uninstall libvorbis libogg # if you have them installed
brew reinstall sdl_mixer --with-libvorbis

from mario-level-1.

justinmeister avatar justinmeister commented on August 22, 2024

It might have to do with your installation of pygame. Try either reinstalling pygame or maybe just SDL_mixer: http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.zip

Let me know if that helps or not. I have a feeling one of the dependencies dealing with music is not installed properly.

from mario-level-1.

WilliamQLiu avatar WilliamQLiu commented on August 22, 2024

I got it to work with Homebrew by doing the following. Thanks!

brew install libvorbis

brew reinstall sdl_mixer

On Sat, Feb 22, 2014 at 2:34 PM, justinmeister [email protected]:

It might have to do with your installation of pygame. Try either
reinstalling pygame or maybe just SDL_mixer:
http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.zip

Let me know if that helps or not. I have a feeling one of the dependencies
dealing with music is not installed properly.

Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-35812003
.

from mario-level-1.

shireenrao avatar shireenrao commented on August 22, 2024

Thanks WilliamQLiu - Your solution worked for me too!

from mario-level-1.

shireenrao avatar shireenrao commented on August 22, 2024

Thanks WilliamQLiu - Your solution worked for me too!

from mario-level-1.

Junuxx avatar Junuxx commented on August 22, 2024

Thanks @hamidnazari, that worked for me in my project, after spending 2 days trying to get pygame to play mp3 and ogg files on OSX.

from mario-level-1.

marcellovirzi avatar marcellovirzi commented on August 22, 2024

It worked also for me!! Great!

OS X Yosemite 10.10.3
Python 3.4.2
Pygame 1.9.1

Thank's guys

from mario-level-1.

agudulin avatar agudulin commented on August 22, 2024

Reinstalling sdl_mixer worked for me too, thanks.

from mario-level-1.

goshlanguage avatar goshlanguage commented on August 22, 2024

I still have the same issue, after trying to install libvorbis, and uninstall both libogg and libvorbis, and reinstalling sdl_mixer. Is there a full list of dependencies somewhere I'm overlooking?

from mario-level-1.

goshlanguage avatar goshlanguage commented on August 22, 2024

Fixed my issue, here's what was going on:

SDL Mixer wasn't compiling with smpeg support because no docs include smpeg as a dependency. Also compiled SDL Mixer (just config, make, make install, nothing fancy).

For any of those having the same issue, I wrote this up on a Stack Overflow question with the same issue.

You can ignore step2 if you have already installed pygame. Also change pip3 to pip and remove python3 from the brew install list if you plan to use python27 or something

Step 1:
Install all Pygame deps for Mac with Brew (if you don't have brew, look up how to install first)

    brew install python3 hg sdl sdl_image sdl_ttf portmidi smpeg 

Step 2:
Install PyGame

    pip3 install hg+http://bitbucket.org/pygame/pygame

Step 3:
Download sdl-mixer source code from: https://www.libsdl.org/projects/SDL_mixer/release-1.2.html

Untar the tar.gz file with tar zxvf:

    tar zxvf SDL_mixer-1.2.12.tar.gz
    cd SDL_mixer-1.2.12
    ./configure
    make
    sudo make install

Step 4:
Run your pygame code and see if it fixes your dependency issue

I hope this helps others who come to this with the same issue I had on OS X Yosemite

from mario-level-1.

 avatar commented on August 22, 2024

Unfortunately first brew installation did not work. But uninstall and reinstall works! Thanks @hamidnazari

from mario-level-1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.