Erreur dans un fichier python du serveur
tristanplouz opened this issue · 0 comments
File "/usr/lib/python2.7/threading.py", line 808, in __bootstrap_inner
self.run()
File "/home/tristan/Documents/Petit_Hacker/JEU/tidutyzef/serveur/pyWebSocket.py", line 120, in run
self.__onreceive(data)
File "/home/tristan/Documents/Petit_Hacker/JEU/tidutyzef/serveur/pyWebSocket.py", line 167, in __onreceive
length = secondByte&127 # may not be the actual length in the two special cases
TypeError: unsupported operand type(s) for &: 'str' and 'int'
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 808, in __bootstrap_inner
self.run()
File "/home/tristan/Documents/Petit_Hacker/JEU/tidutyzef/serveur/pyWebSocket.py", line 120, in run
self.__onreceive(data)
File "/home/tristan/Documents/Petit_Hacker/JEU/tidutyzef/serveur/pyWebSocket.py", line 167, in __onreceive
length = secondByte&127 # may not be the actual length in the two special cases
TypeError: unsupported operand type(s) for &: 'str' and 'int'
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 808, in __bootstrap_inner
self.run()
File "/home/tristan/Documents/Petit_Hacker/JEU/tidutyzef/serveur/pyWebSocket.py", line 120, in run
self.__onreceive(data)
File "/home/tristan/Documents/Petit_Hacker/JEU/tidutyzef/serveur/pyWebSocket.py", line 167, in __onreceive
length = secondByte&127 # may not be the actual length in the two special cases
TypeError: unsupported operand type(s) for &: 'str' and 'int'
Trouver l'origine.