albertz / music-player

Music player - endlessly plays your music
http://albertz.github.io/music-player/
BSD 2-Clause "Simplified" License
492 stars 59 forks source link

os x 10.9 error running from source #44

Closed ibeex closed 10 years ago

ibeex commented 10 years ago

I am trying to run it from source as described in readme, I installed all deeps and started compile.py, when I try to run main.py I get this error.

./main.py
note: faulthandler module not available
MusicPlayer 1.0 from <unknown> git-ref <unknown> on MacOSX (darwin)
startup on 2014-02-03 09:34:49 +0000
Module player
Module queue
Module tracker
Module tracker_lastfm
Module mediakeys
Module gui
Module stdinconsole
Module socketcontrol
Module mpdBackend
Module notifications
Module preloader
Module songdb
EXCEPTION
Traceback (most recent call last):
  File "./main.py", line 138, in <module>
    line: main()
    locals:
      main = <local> <function main at 0x101b78f50>
  File "./main.py", line 95, in main
    line: import gui
    locals:
      gui = <not found>
  File "/Users/ib/Documents/Python/music-player/gui.py", line 6, in <module>
    line: from _gui import *
    locals:
      _gui = <not found>
ImportError: No module named _gui
albertz commented 10 years ago

Hey! What revision are you using? There is no compile.py script anymore, at the moment (only for the sub-project, the musicplayer core Python module, in the directory core). I might add it back, not sure. I'm currently restructuring the files and build system a bit. There is also the Xcode project. And I'm currently working on a QMake build system.

The GUI is anyway not usable on non-MacOSX because there is only a MacOSX Cocoa implementation. But you can use the console-only version. (I just added --nogui as an option to make it simpler.) And I'm currently working on the Qt implementation.

ibeex commented 10 years ago

I used master one from this repo. Also I pulled from music-player repo for music-player-core since there was compile.py. I am on OSX so I wanted to tray it from source.

albertz commented 10 years ago

I pushed a new compile.py for the MusicPlayer. Can you try?

ibeex commented 10 years ago

compile.py from core works well, but I guess for now there is no GUI from source? I haw qt brewed.

./compile.py
mkdir -p build
* Building musicplayer.so
up-to-date: Buffer.o
up-to-date: Fader.o
up-to-date: musicplayer.o
up-to-date: musicplayer_acoustid.o
up-to-date: musicplayer_bitmapthumbnail.o
up-to-date: musicplayer_getmetadata.o
up-to-date: musicplayer_player.o
up-to-date: musicplayer_player_decoding.o
up-to-date: musicplayer_player_output.o
up-to-date: musicplayer_replaygain.o
up-to-date: musicplayer_utils.o
up-to-date: ../musicplayer.so
albertz commented 10 years ago

I mean the compile.py from the root. I just added that. On OSX, it compiles the guiCocoa module.

ibeex commented 10 years ago

sry, yes now it works I got GUI and it works.

ibeex commented 10 years ago

can you change in main.py and rest #!/usr/bin/python to !/usr/bin/env python since I am using brewd python and not system one I guess this is discussed here https://github.com/albertz/music-player/pull/15

albertz commented 10 years ago

Changed that also in e244696. And closing this now.