albertz / music-player

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

damaged MusicPlayer.app #36

Closed christophmluscher closed 11 years ago

christophmluscher commented 11 years ago

i am getting this error. tried downloading several times. always damaged.

Screen Shot 2013-04-17 at 9 56 09 PM

albertz commented 11 years ago

strange. i repacked + reuploaded it again. does it work now?

christophmluscher commented 11 years ago

i can start the player now. but something with the main gui is not working. log file via email.

albertz commented 11 years ago

Log:

hello there
MusicPlayer 1.0 from 2013-04-17 20:02:12 +0000 git-ref 50099b931b on MacOSX (darwin)
startup on 2013-04-17 22:24:02 +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
icon.icns not found
entering GUI main loop
DB songHashs.db opening error AssertionError('DB main table not initialized',), I will reset the DB, sorry...
errors while getting song id
EXCEPTION
Traceback (most recent call last):
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/Song.py", line 266, in id
    line: self._id = songdb.getSongId(self)
    locals:
      self = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
      self._id = <local> !AttributeError: no attrib _id
      songdb = <local> <module 'songdb' from '/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.pyc'>
      songdb.getSongId = <local> <function decorated at 0x105e31938>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 244, in decorated
    line: initDb(db)
    locals:
      initDb = <global> <function initDb at 0x105e2df50>
      db = <local> 'songHashDb', len = 10
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 238, in initDb
    line: globals()[db] = DBs[db]()
    locals:
      globals = <builtin> <built-in function globals>
      db = <local> 'songHashDb', len = 10
      DBs = <global> {'songSearchIndexRefDb': <function <lambda> at 0x105e31500>, 'songDb': <function <lambda> at 0x105e177d0>, 'songHashDb': <function <lambda> at 0x105e2dde8>, 'songSearchIndexDb': <function <lambda> at 0x105e31488>}
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 201, in <lambda>
    line: "songHashDb": lambda: DB("songHashs.db"),
    locals:
      DB = <global> <class 'songdb.DB'>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 74, in __init__
    line: self.removeOldDb()
    locals:
      self = <local> <songdb.DB object at 0x105e28e90>
      self.removeOldDb = <local> <bound method DB.removeOldDb of <songdb.DB object at 0x105e28e90>>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 137, in removeOldDb
    line: self.disconnectAll()
    locals:
      self = <local> <songdb.DB object at 0x105e28e90>
      self.disconnectAll = <local> <bound method DB.disconnectAll of <songdb.DB object at 0x105e28e90>>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 191, in disconnectAll
    line: self.LocalConnection.Reset()
    locals:
      self = <local> <songdb.DB object at 0x105e28e90>
      self.LocalConnection = <local> !AttributeError: 'DB' object has no attribute 'LocalConnection'
      self.LocalConnection.Reset = <local> !AttributeError: 'DB' object has no attribute 'LocalConnection'
AttributeError: 'DB' object has no attribute 'LocalConnection'
EXCEPTION
Traceback (most recent call last):
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/utils.py", line 300, in __get__
    line: return self.prop.__get__(instance, owner)
    locals:
      self = <local> <utils.safe_property object at 0x103af7b50>
      self.prop = <local> <property object at 0x103a810a8>
      self.prop.__get__ = <local> <method-wrapper '__get__' of property object at 0x103a810a8>
      instance = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
      owner = <local> <class 'Song.Song'>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/Song.py", line 275, in id
    line: return self._id
    locals:
      self = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
      self._id = <local> !AttributeError: no attrib _id
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/Song.py", line 503, in __getattr__
    line: raise AttributeError, "no attrib " + attrib
    locals:
      AttributeError = <builtin> <type 'exceptions.AttributeError'>
      attrib = <local> '_id'
AttributeError: no attrib _id
DB songs.db opening error AssertionError('DB main table not initialized',), I will reset the DB, sorry...
EXCEPTION
Traceback (most recent call last):
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/utils.py", line 300, in __get__
    line: return self.prop.__get__(instance, owner)
    locals:
      self = <local> <utils.safe_property object at 0x103af7a10>
      self.prop = <local> <property object at 0x103aebf18>
      self.prop.__get__ = <local> <method-wrapper '__get__' of property object at 0x103aebf18>
      instance = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
      owner = <local> <class 'Song.Song'>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/Song.py", line 215, in userString
    line: artist = self.getAnyFast("artist", default="").strip()
    locals:
      artist = <not found>
      self = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
      self.getAnyFast = <local> <bound method Song.getAnyFast of Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')>
      default = <not found>
      strip = <not found>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/Song.py", line 521, in getAnyFast
    line: value,accuracy = self.getFast(attrib, accuracy=0)
    locals:
      value = <not found>
      accuracy = <not found>
      self = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
      self.getFast = <local> <bound method Song.getFast of Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')>
      attrib = <local> 'artist', len = 6
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/Song.py", line 459, in getFast
    line: setattr(self, attrib, value)
    locals:
      setattr = <builtin> <built-in function setattr>
      self = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
      attrib = <local> 'artist', len = 6
      value = <local> u'The Red Hot Chili Peppers', len = 25
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/Song.py", line 416, in __setattr__
    line: self.update(attr, lambda _: value)
    locals:
      self = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
      self.update = <local> <bound method Song.update of Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')>
      attr = <local> 'artist', len = 6
      _ = <not found>
      value = <local> u'The Red Hot Chili Peppers', len = 25
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/Song.py", line 403, in update
    line: value = songdb.updateSongAttribValue(self, attr, updateFunc, default=default)
    locals:
      value = <not found>
      songdb = <local> <module 'songdb' from '/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.pyc'>
      songdb.updateSongAttribValue = <local> <function updateSongAttribValue at 0x105e31140>
      self = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
      attr = <local> 'artist', len = 6
      updateFunc = <local> <function <lambda> at 0x105e0b1b8>
      default = <local> None
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 560, in updateSongAttribValue
    line: value = Attribs[attrib].getObject(song).update(attrib, updateFunc, default=default)
    locals:
      value = <not found>
      Attribs = <global> {'rating': <songdb.Attrib instance at 0x105e30200>, 'tags': <songdb.Attrib instance at 0x105e301b8>, 'lastPlayedDate': <songdb.Attrib instance at 0x105e302d8>, 'gain': <songdb.Attrib instance at 0x105e30440>, 'duration': <songdb.Attrib instance at 0x105e30488>, 'album': <songdb.Attrib instance at..., len = 14
      attrib = <local> 'artist', len = 6
      getObject = <not found>
      song = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
      update = <not found>
      updateFunc = <local> <function <lambda> at 0x105e0b1b8>
      default = <local> None
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 533, in getObject
    line: return getSong(song)
    locals:
      getSong = <global> <function getSong at 0x105e2f6e0>
      song = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 464, in getSong
    line: return SongEntry(song)
    locals:
      SongEntry = <global> <function decorated at 0x105e317d0>
      song = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 244, in decorated
    line: initDb(db)
    locals:
      initDb = <global> <function initDb at 0x105e2df50>
      db = <local> 'songDb', len = 6
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 238, in initDb
    line: globals()[db] = DBs[db]()
    locals:
      globals = <builtin> <built-in function globals>
      db = <local> 'songDb', len = 6
      DBs = <global> {'songSearchIndexRefDb': <function <lambda> at 0x105e31500>, 'songDb': <function <lambda> at 0x105e177d0>, 'songHashDb': <function <lambda> at 0x105e2dde8>, 'songSearchIndexDb': <function <lambda> at 0x105e31488>}
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 200, in <lambda>
    line: "songDb": lambda: DB("songs.db"),
    locals:
      DB = <global> <class 'songdb.DB'>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 74, in __init__
    line: self.removeOldDb()
    locals:
      self = <local> <songdb.DB object at 0x105debe90>
      self.removeOldDb = <local> <bound method DB.removeOldDb of <songdb.DB object at 0x105debe90>>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 137, in removeOldDb
    line: self.disconnectAll()
    locals:
      self = <local> <songdb.DB object at 0x105debe90>
      self.disconnectAll = <local> <bound method DB.disconnectAll of <songdb.DB object at 0x105debe90>>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 191, in disconnectAll
    line: self.LocalConnection.Reset()
    locals:
      self = <local> <songdb.DB object at 0x105debe90>
      self.LocalConnection = <local> !AttributeError: 'DB' object has no attribute 'LocalConnection'
      self.LocalConnection.Reset = <local> !AttributeError: 'DB' object has no attribute 'LocalConnection'
AttributeError: 'DB' object has no attribute 'LocalConnection'
DB songHashs.db opening error AssertionError('DB main table not initialized',), I will reset the DB, sorry...
errors while getting song id
EXCEPTION
Traceback (most recent call last):
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/Song.py", line 266, in id
    line: self._id = songdb.getSongId(self)
    locals:
      self = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
      self._id = <local> !AttributeError: no attrib _id
      songdb = <local> <module 'songdb' from '/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.pyc'>
      songdb.getSongId = <local> <function decorated at 0x105e31938>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 244, in decorated
    line: initDb(db)
    locals:
      initDb = <global> <function initDb at 0x105e2df50>
      db = <local> 'songHashDb', len = 10
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 238, in initDb
    line: globals()[db] = DBs[db]()
    locals:
      globals = <builtin> <built-in function globals>
      db = <local> 'songHashDb', len = 10
      DBs = <global> {'songSearchIndexRefDb': <function <lambda> at 0x105e31500>, 'songDb': <function <lambda> at 0x105e177d0>, 'songHashDb': <function <lambda> at 0x105e2dde8>, 'songSearchIndexDb': <function <lambda> at 0x105e31488>}
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 201, in <lambda>
    line: "songHashDb": lambda: DB("songHashs.db"),
    locals:
      DB = <global> <class 'songdb.DB'>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 74, in __init__
    line: self.removeOldDb()
    locals:
      self = <local> <songdb.DB object at 0x105debe90>
      self.removeOldDb = <local> <bound method DB.removeOldDb of <songdb.DB object at 0x105debe90>>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 137, in removeOldDb
    line: self.disconnectAll()
    locals:
      self = <local> <songdb.DB object at 0x105debe90>
      self.disconnectAll = <local> <bound method DB.disconnectAll of <songdb.DB object at 0x105debe90>>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/songdb.py", line 191, in disconnectAll
    line: self.LocalConnection.Reset()
    locals:
      self = <local> <songdb.DB object at 0x105debe90>
      self.LocalConnection = <local> !AttributeError: 'DB' object has no attribute 'LocalConnection'
      self.LocalConnection.Reset = <local> !AttributeError: 'DB' object has no attribute 'LocalConnection'
AttributeError: 'DB' object has no attribute 'LocalConnection'
EXCEPTION
Traceback (most recent call last):
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/utils.py", line 300, in __get__
    line: return self.prop.__get__(instance, owner)
    locals:
      self = <local> <utils.safe_property object at 0x103af7b50>
      self.prop = <local> <property object at 0x103a810a8>
      self.prop.__get__ = <local> <method-wrapper '__get__' of property object at 0x103a810a8>
      instance = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
      owner = <local> <class 'Song.Song'>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/Song.py", line 275, in id
    line: return self._id
    locals:
      self = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
      self._id = <local> !AttributeError: no attrib _id
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/Song.py", line 503, in __getattr__
    line: raise AttributeError, "no attrib " + attrib
    locals:
      AttributeError = <builtin> <type 'exceptions.AttributeError'>
      attrib = <local> '_id'
AttributeError: no attrib _id
Exception in PyAsyncCallHelper call
EXCEPTION
Traceback (most recent call last):
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/utils.py", line 669, in call_
    line: self.ret = self.f()
    locals:
      self = <local> <PyAsyncCallHelper: 0x10542de50>
      self.ret = <local> None
      self.f = <local> <function <lambda> at 0x105dff398>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/utils.py", line 686, in <lambda>
    line: return do_in_mainthread(lambda: func(*args, **kwargs), wait=True)
    locals:
      do_in_mainthread = <global> <function do_in_mainthread at 0x103aea230>
      func = <local> <function buildControl at 0x1059ca2a8>
      args = <local> (<UserAttrib userLongString, <class Traits.OneLineText at 0x103a693b0>>, <CocoaGuiObject Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3') <UserAttrib curSong, <class Traits.Object at 0x103a695f0>>>)
      kwargs = <local> {}
      wait = <not found>
      True = <builtin> True
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/guiCocoa.py", line 986, in buildControl
    line: control.subjectObject = userAttr.__get__(parent.subjectObject)
    locals:
      control = <local> <CocoaGuiObject None <UserAttrib userLongString, <class Traits.OneLineText at 0x103a693b0>>>
      control.subjectObject = <local> None
      userAttr = <local> <UserAttrib userLongString, <class Traits.OneLineText at 0x103a693b0>>
      userAttr.__get__ = <local> <bound method UserAttrib.__get__ of <UserAttrib userLongString, <class Traits.OneLineText at 0x103a693b0>>>
      parent = <local> <CocoaGuiObject Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3') <UserAttrib curSong, <class Traits.Object at 0x103a695f0>>>
      parent.subjectObject = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/utils.py", line 240, in __get__
    line: return self.value.__get__(inst, type)
    locals:
      self = <local> <UserAttrib userLongString, <class Traits.OneLineText at 0x103a693b0>>
      self.value = <local> <utils.safe_property object at 0x103af7a90>
      self.value.__get__ = <local> <bound method safe_property.__get__ of <utils.safe_property object at 0x103af7a90>>
      inst = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
      type = <local> None
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/utils.py", line 300, in __get__
    line: return self.prop.__get__(instance, owner)
    locals:
      self = <local> <utils.safe_property object at 0x103af7a90>
      self.prop = <local> <property object at 0x103aebf70>
      self.prop.__get__ = <local> <method-wrapper '__get__' of property object at 0x103aebf70>
      instance = <local> Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3')
      owner = <local> None
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/Song.py", line 230, in userLongString
    line: s += ", " + utils.formatTime(duration)
    locals:
      s = <local> None
      utils = <local> <module 'utils' from '/Applications/MusicPlayer.app/Contents/Resources/Python/utils.pyc'>
      utils.formatTime = <local> <function formatTime at 0x103ae8758>
      duration = <local> 193.536
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
Exception in PyAsyncCallHelper call
EXCEPTION
Traceback (most recent call last):
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/utils.py", line 669, in call_
    line: self.ret = self.f()
    locals:
      self = <local> <PyAsyncCallHelper: 0x10542de50>
      self.ret = <local> None
      self.f = <local> <function <lambda> at 0x105dff398>
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/utils.py", line 686, in <lambda>
    line: return do_in_mainthread(lambda: func(*args, **kwargs), wait=True)
    locals:
      do_in_mainthread = <global> <function do_in_mainthread at 0x103aea230>
      func = <local> <function addChild at 0x1059cab18>
      args = <local> (<CocoaGuiObject Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3') <UserAttrib curSong, <class Traits.Object at 0x103a695f0>>>, None)
      kwargs = <local> {}
      wait = <not found>
      True = <builtin> True
  File "/Applications/MusicPlayer.app/Contents/Resources/Python/guiCocoa.py", line 1042, in addChild
    line: self.nativeGuiObject.addSubview_(child.nativeGuiObject)
    locals:
      self = <local> <CocoaGuiObject Song(url=u'/Users/schweizer/Music/iTunes/iTunes Media/Music/The Red Hot Chili Peppers/Blood Sugar Sex Magik/14 The Greeting Song.mp3') <UserAttrib curSong, <class Traits.Object at 0x103a695f0>>>
      self.nativeGuiObject = <local> <NSFlippedView: 0x10543cef0>
      self.nativeGuiObject.addSubview_ = <local> <native-selector addSubview: of <NSFlippedView: 0x10543cef0>>
      child = <local> None
      child.nativeGuiObject = <local> !AttributeError: 'NoneType' object has no attribute 'nativeGuiObject'
AttributeError: 'NoneType' object has no attribute 'nativeGuiObject'
Exception in PyAsyncCallHelper call
...
albertz commented 11 years ago

Should be fixed in 9119f2a. I uploaded a new binary. Can you test?

albertz commented 11 years ago

Btw., from the log, it seems like your DB is corrupted. Have you used a very old version before? Because I switched to a new DB format already a while ago. If not, that's bad. I hoped that the SQLite DB is quite stable against corruptions, even when something bad happens (hard crash, power loss or so).

christophmluscher commented 11 years ago

i tested. no problems anymore. gui main works. no hiccups. i was up to date. i think i was max one version behind.