Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to run basic example #4

Closed
fygul opened this issue Mar 25, 2016 · 3 comments
Closed

Fail to run basic example #4

fygul opened this issue Mar 25, 2016 · 3 comments
Labels

Comments

@fygul
Copy link

fygul commented Mar 25, 2016

Run basic example on Windows 8, python 3.5.1
aiodns==1.0.1
aiohttp==0.21.5
chardet==2.3.0
maxminddb==1.2.0
proxybroker==0.1.2
pycares==1.0.0

Error message:

D:\Temp\proxybroker\venv\Scripts\python.exe D:/Temp/proxybroker/example.py
Traceback (most recent call last):
File "D:/Temp/proxybroker/example.py", line 7, in
broker = Broker(proxies, loop=loop)
File "D:\Temp\proxybroker\venv\lib\site-packages\proxybroker\api.py", line 45, in init
self._setup(timeout, attempts_conn, max_concurrent_conn, verify_ssl)
File "D:\Temp\proxybroker\venv\lib\site-packages\proxybroker\api.py", line 53, in _setup
self._loop.add_signal_handler(signal.SIGINT, self._done)
File "D:\ProgramFiles\Python35\lib\asyncio\events.py", line 472, in add_signal_handler
raise NotImplementedError
NotImplementedError

@constverum
Copy link
Owner

@fygul thank you for feedback!

The error raised because the function add_signal_handler() is not supported on Windows =(

I made the necessary fix in release 0.1.3. Please update your version and it will work.

@fygul
Copy link
Author

fygul commented Mar 26, 2016

New version works, it's amazing.

@fygul fygul closed this as completed Mar 26, 2016
@constverum constverum added the bug label Mar 26, 2016
Shebuka pushed a commit to Shebuka/ProxyBroker that referenced this issue Dec 20, 2020
WIP: ADD: using pre-commit for code quality
@radioactivehuman
Copy link

still getting that error

`From cffi callback <function _sock_state_cb at 0x03A8F970>:
Traceback (most recent call last):
  File "C:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\pycares\__init__.py", line 91, in _sock_state_cb
    sock_state_cb(socket_fd, readable, writable)
  File "C:\users\user\appdata\local\programs\python\python38-32\lib\site-packages\aiodns\__init__.py", line 104, in _sock_state_cb
    self.loop.add_reader(fd, self._handle_event, fd, READ)
  File "C:\users\user\appdata\local\programs\python\python38-32\lib\asyncio\events.py", line 501, in add_reader
    raise NotImplementedError
NotImplementedError`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants