constverum/ProxyBroker

CFFI Error

alx2002 opened this issue · 3 comments

image When running proxybroker find --types HTTP HTTPS --lvl High --countries US --strict -l 10

I'm also getting a similar error:
image

@pgeorgef 's answer seems to be correct. It looks like it's an issue specific to python 3.8. Editing asyncio\__init__.py or downgrading to python 3.7 are workarounds for the issue.

C:\Python\Python38\Lib\asyncio_init_.py

**From**

if sys.platform == 'win32':  # pragma: no cover
    from .windows_events import *
    __all__ += windows_events.__all__
else:
    from .unix_events import *  # pragma: no cover
    __all__ += unix_events.__all__

**To**

if sys.platform == 'win32':
    from .windows_events import *
    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
    __all__ += windows_events.__all__
else:
    from .unix_events import *  # pragma: no cover
    __all__ += unix_events.__all__