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

OSError: [WinError 10038] An operation was attempted on something that is not a socket #6

Open
hgharagyozyan opened this issue Apr 16, 2018 · 0 comments

Comments

@hgharagyozyan
Copy link

Hi @millerdev and @llazzaro,

I run into this error when starting multiprocess worker pool on Windows,
Error details:
Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\Users\User\Anaconda3\envs\py36\lib\threading.py", line 916, in _bootstrap_inner
self.run()
File "C:\Users\User\Anaconda3\envs\py36\lib\threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\User\Anaconda3\envs\py36\lib\site-packages\worq\pool\process.py", line 267, in _proxy_loop
cx = _reduce_connection(parent) # HACK reduce for pickle
File "C:\Users\User\Anaconda3\envs\py36\lib\site-packages\worq\pool\process.py", line 397, in _reduce_connection
obj = reduce_connection(conn)
File "C:\Users\User\Anaconda3\envs\py36\lib\multiprocessing\connection.py", line 929, in reduce_connection
with socket.fromfd(handle, socket.AF_INET, socket.SOCK_STREAM) as s:
File "C:\Users\User\Anaconda3\envs\py36\lib\socket.py", line 460, in fromfd
nfd = dup(fd)
OSError: [WinError 10038] An operation was attempted on something that is not a socket

Machine is Windows 10, python version is 3.6.
Redis is running on it's default port.
The script for starting pool is identical to code mentioned documentation.
The script is running on Mac perfectly.

I would appreciate any ideas.

Thank you.

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

No branches or pull requests

1 participant