Skip to content

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

@hgharagyozyan

Description

@hgharagyozyan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions