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

mp_webserver.py is not working on win32 #15

Open
GoogleCodeExporter opened this issue Jan 23, 2016 · 1 comment
Open

mp_webserver.py is not working on win32 #15

GoogleCodeExporter opened this issue Jan 23, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Doc\includes\mp_webserver.py leads to:

[...]
  File "[....]\multiprocessing\reduction.py", line 167, in rebuild_socket
    _sock = fromfd(fd, family, type_, proto)
  File "[....]\multiprocessing\reduction.py", line 156, in fromfd
    s = socket.fromfd(fd, family, type_, proto)
AttributeError: 'module' object has no attribute 'fromfd'

The version of processing.py 0.52 from berlios DID work on win32. Problem
is: on win32 there is no socket.fromfd; and reduction.py is supposed to
provide a substitution (which it does NOT within multiprocessing, but
within processing)

Harald



Original issue reported on code.google.com by haraldar...@gmail.com on 28 Apr 2009 at 11:39

@GoogleCodeExporter
Copy link
Author

digging down... within processsing.reduction.py contains:

try:
    fromfd = socket.fromfd
except AttributeError:
    def fromfd(fd, family, type, proto=0):
        s = socket._socket.socket()
        _processing.changeFd(s, fd, family, type, proto)
        return s


within multiprocesssing.reduction.py there is

def fromfd(fd, family, type_, proto=0):
    s = socket.fromfd(fd, family, type_, proto)
    if s.__class__ is not socket.socket:
        s = socket.socket(_sock=s)
    return s

and changeFd is no longer a method of multiprocessing :(



Harald

Original comment by haraldar...@gmail.com on 28 Apr 2009 at 11:44

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

No branches or pull requests

1 participant