mvrozanti / RAT-via-Telegram

Windows Remote Administration Tool via Telegram
MIT License
646 stars 347 forks source link

pyAudio fix (I think) #53

Closed dudeisbrendan03 closed 5 years ago

dudeisbrendan03 commented 5 years ago

Haven't had time to test. Should work if it originally did. Thanks to @Dagdelo for recommending the module - its a wheel archive that needs installing though

dudeisbrendan03 commented 5 years ago

Oh, have you tested it?

Dagdelo commented 5 years ago

Oh, have you tested it?

Yeap. Without a input (recording) device the PyAudio spill a error. Finishing the app.

dudeisbrendan03 commented 5 years ago

So if you have an input device it works, right? And if so can you give me the error so I can except it, I can't set it all up at the minute. Thanks

Dagdelo commented 5 years ago

So if you have an input device it works, right? And if so can you give me the error so I can except it, I can't set it all up at the minute. Thanks

image

            Got message from 400496256: /hear

Traceback (most recent call last): File "C:\Python37\lib\site-packages\telepot__init.py", line 1158, in collector callback(item) File "RATAttack.py", line 331, in handle frames_per_buffer=CHUNK) File "C:\Python37\lib\site-packages\pyaudio.py", line 750, in open stream = Stream(self, *args, **kwargs) File "C:\Python37\lib\site-packages\pyaudio.py", line 441, in init__ self._stream = pa.open(**arguments) OSError: [Errno -9996] Invalid input device (no default output device)

mvrozanti commented 5 years ago

Thank you for the quick pyAudio solution. I think we should stay away of having binaries tracked though. Why not use pip instead?

Dagdelo commented 5 years ago

I think we should stay away of having binaries tracked. Why not use pip instead?

Because the version on the pip is broken :(

dudeisbrendan03 commented 5 years ago

pyAudio on pip doesn't seem to work, this wheel does. Same with pyHook

dudeisbrendan03 commented 5 years ago

I'm stopping for now, I'll get to it later. If it doesn't crash when there is no input device and everybody is ok with it then go ahead and pull it. See you guys later! Thanks for the help @Dagdelo!

mvrozanti commented 5 years ago

We can add how to install the wheel from url on the README installation section: pip install https://download.lfd.uci.edu/pythonlibs/h2ufg7oq/PyAudio-0.2.11-cp37-cp37m-win_amd64.whl

Verifying checksums is a bit time consuming. Binaries in repos are just shady.

dudeisbrendan03 commented 5 years ago

Guess so

mvrozanti commented 5 years ago

Great work anyways @dudeisbrendan03

dudeisbrendan03 commented 5 years ago

Should I verify the checksums or just install via pip, I've made a script to verify the checksums.

mvrozanti commented 5 years ago

There should be no need for verifying checksums if pip install them from the url. The url is the verification

Sent with GitHawk

dudeisbrendan03 commented 5 years ago

k