Turntable-API icon indicating copy to clipboard operation
Turntable-API copied to clipboard

Python - Restart bot during same song

Open paulnus opened this issue 13 years ago • 4 comments

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'

paulnus avatar Dec 07 '12 16:12 paulnus

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

bboe avatar Dec 07 '12 18:12 bboe

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

paulnus avatar Dec 10 '12 16:12 paulnus

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

alaingilbert avatar Dec 10 '12 16:12 alaingilbert

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

paulnus avatar Jan 12 '13 14:01 paulnus