proxybroker2 icon indicating copy to clipboard operation
proxybroker2 copied to clipboard

Getting error when running from pip install

Open bitpoke-YT opened this issue 3 years ago • 5 comments

So i am getting this error on windows with the pip installed version of it. With Python 3.11.1 Running this command proxybroker find --types HTTP HTTPS --lvl High --countries US --strict -l 10

I get this error File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\mrmwg\AppData\Local\Programs\Python\Python311\Scripts\proxybroker.exe\__main__.py", line 7, in <module> File "C:\Users\mrmwg\AppData\Local\Programs\Python\Python311\Lib\site-packages\proxybroker\cli.py", line 380, in cli proxies = asyncio.Queue(loop=loop) ^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Queue.__init__() got an unexpected keyword argument 'loop'

bitpoke-YT avatar Jan 19 '23 23:01 bitpoke-YT

hm I can't seem to reproduce this on linux.. not sure if it would matter proxybroker2_logs.txt

ziloka avatar Jan 20 '23 00:01 ziloka

I get in after running proxybroker find --types HTTP HTTPS --lvl High --countries US --strict -l 10

bitpoke-YT avatar Jan 20 '23 01:01 bitpoke-YT

Proxybroker2 doesn't work on Windows because of changes to asyncio in Python 3.8. Same issue as mine: https://github.com/bluet/proxybroker2/issues/113

anon88391 avatar Jan 20 '23 23:01 anon88391

To get rid of this error, just use Python 3.8. You could technically remove this line to make the error go away, but I've found that serve is basically borked in Python 3.10 but works fine on Python 3.8

mthbrown avatar Feb 01 '23 09:02 mthbrown

related https://github.com/bluet/proxybroker2/issues/89

bluet avatar Feb 12 '23 21:02 bluet