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

Appears incompatible with Windows #6

Closed
Cyb3r-Jak3 opened this issue Aug 26, 2021 · 4 comments · Fixed by #9
Closed

Appears incompatible with Windows #6

Cyb3r-Jak3 opened this issue Aug 26, 2021 · 4 comments · Fixed by #9
Assignees

Comments

@Cyb3r-Jak3
Copy link

mprie appears to be incompatible with Windows. When attempting to import, just running python -c "from mpire import WorkerPool" I get:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "F:\git\dectector\venv\lib\site-packages\mpire\__init__.py", line 4, in <module>
    from mpire.pool import WorkerPool
  File "F:\git\dectector\venv\lib\site-packages\mpire\pool.py", line 17, in <module>
    from mpire.comms import WorkerComms
  File "F:\git\dectector\venv\lib\site-packages\mpire\comms.py", line 8, in <module>
    from mpire.context import MP_CONTEXTS
  File "F:\git\dectector\venv\lib\site-packages\mpire\context.py", line 25, in <module>
    MP_CONTEXTS = {'mp': {'fork': mp.get_context('fork'),
  File "F:\Program Files\Python38\lib\multiprocessing\context.py", line 239, in get_context
    return super().get_context(method)
  File "F:\Program Files\Python38\lib\multiprocessing\context.py", line 193, in get_context
    raise ValueError('cannot find context for %r' % method) from None
ValueError: cannot find context for 'fork'

Using Windows Subsystem for Linux (WSL there are no issues. Searching around I found this issue nalepae/pandarallel#109 and this project says only WSL, Mac or
Linux is supported. Might be worth adding something to the ReadMe

@Cyb3r-Jak3 Cyb3r-Jak3 changed the title Appear incompatible with Windows Appears incompatible with Windows Aug 26, 2021
@sybrenjansen
Copy link
Owner

Support for Windows will come soon. I'm updating the README and docs as we speak, to make this more clear.

@sybrenjansen
Copy link
Owner

Windows support is now available!

@ZorkJ
Copy link

ZorkJ commented Sep 28, 2021

Hello, again I came across the problem in windows:

ValueError: cannot find context for 'fork'

@sybrenjansen
Copy link
Owner

sybrenjansen commented Sep 28, 2021

@ZorkJ Can you add a bit more details please? What version of mpire are you using, which python version, windows 10?

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

Successfully merging a pull request may close this issue.

3 participants