您好我正面临PyAudio的问题我无法解决.当我在网络上使用它(过了一会儿)它崩溃了.我得到的错误是
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 552, in __bootstrap_inner
self.run()
File "C:\Python27\lib\threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Users\maboroshi\Desktop\myChat\chat.py", line 71, in server
frames_per_buffer = chunk)
File "C:\Python27\lib\site-packages\pyaudio.py", line 714, in open
stream = Stream(self, *args, **kwargs)
File "C:\Python27\lib\site-packages\pyaudio.py", line 396, in __init__
self._stream = pa.open(**arguments)
IOError: [Errno Device unavailable] -9985
我的代码在下面(大部分是:-P
这用于解密数据和管理连接
def decrypt_my_message(msg):
iv = "1234567812345678"
key = your_friends_key
if len(key) not in (16, 24, 32):
raise ValueError("Key must be …