alaingilbert / Turntable-API

Allows you to create bots for turntable.fm
http://alaingilbert.github.com/Turntable-API/
MIT License
317 stars 97 forks source link

Python - Restart bot during same song #134

Closed paulnus closed 11 years ago

paulnus commented 11 years ago

AttributeError: Bot instance has no attribute 'tmpSong'

Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib64/python2.7/threading.py", line 552, in __bootstrap_inner self.run() File "/usr/lib64/python2.7/threading.py", line 756, in run self.function(_self.args, *_self.kwargs) File "/var/python/ttapi/ttapi.py", line 57, in updatePresTmr self.updatePresence() File "/var/python/ttapi/ttapi.py", line 197, in updatePresence self._send(rq, callback) File "/var/python/ttapi/ttapi.py", line 175, in _send self.ws.send('~m~%s~m~%s' % (len(msg), msg)) File "/var/python/ttapi/websocket.py", line 469, in send self.sock.send(data) AttributeError: 'NoneType' object has no attribute 'send'

bboe commented 11 years ago

Update your version of the python ttapi as this specific error should no longer be a problem (updatePresTmr no longer exists).

paulnus commented 11 years ago

I got the latest version downloaded today and still hitting this issue. :(

alaingilbert commented 11 years ago

Can you describe how you can reproduce the error ? And the new stacktrace ?

paulnus commented 11 years ago

Went back to Nodejs. I think it was an environment thing, didnt debug and didnt want to leave this hanging out there.