Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's shout? #2

Open
johnfn opened this issue Jul 19, 2013 · 4 comments
Open

What's shout? #2

johnfn opened this issue Jul 19, 2013 · 4 comments
Assignees

Comments

@johnfn
Copy link

johnfn commented Jul 19, 2013

Today there was mass pandemonium in #thasauce because partybot was gone and no one could remember how to do a sync listen (lol). I tried to hook up partybot but got stuck because I couldn't import shout.

What's shout? Google didn't give me anything.

I think the usual way of documenting required libs is with a requirements.txt file, e.g. http://www.pip-installer.org/en/latest/requirements.html

@blastron blastron self-assigned this Dec 18, 2014
@MisaelK
Copy link

MisaelK commented Nov 27, 2015

I think you should at least upload the libraries somewhere, so we can play with it.

@blastron
Copy link
Owner

I need to migrate p-bot over to a new server anyway, so I will assemble some installation instructions as I go through them myself.

@MisaelK
Copy link

MisaelK commented Nov 27, 2015

Ok, after some searching around, both pylibshout and python-shout can be used as the shout library. Both are available through pip.

Unfortunately, none works on Windows, even after extensive research and tinkering. I got as far as ld returning "bad reloc address" (both in pylibshout.o as in shout.o). Probably a version mismatch somewhere.

@MisaelK
Copy link

MisaelK commented Dec 4, 2015

Huge success! I did it!

Super longest story short, I had to compile libogg, libvorbis and libshout with my MinGW toolchain, and editing some .h files, as well as the setup.py that comes with python-shout.

Some notes:

  • MinGW and MSYS should be first in your path.
  • You need to compile python-shout with -lws2_32 after everything else.
  • When compiling libogg, libvorbis and libshout, do so in that order. You'll need to be in a sh environment before compiling, to run the configure executable.
  • When running ./configure, specify your MinGW folder with --prefix=C:/MinGW, and also pass --disable-shared to libvorbis (or it won't compile).
  • If you're getting type errors (or a "can't find <_G_config.h>" error) check that you're using the correct version of os.h, or edit it manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants