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

Unable to import in Windows #7

Closed
huntfx opened this issue Aug 26, 2021 · 2 comments
Closed

Unable to import in Windows #7

huntfx opened this issue Aug 26, 2021 · 2 comments

Comments

@huntfx
Copy link

huntfx commented Aug 26, 2021

Saw you wrote this, turned out to be quite true:

Disclaimer: it could be that MPIRE can’t be imported on systems without fork. If so, let me know by submitting an issue on GitHub.

Here's my traceback:

Traceback (most recent call last):
  File "", line 1, in <module>
    from mpire import WorkerPool
  File "C:\Users\Peter\AppData\Roaming\Python\Python39\site-packages\mpire\__init__.py", line 4, in <module>
    from mpire.pool import WorkerPool
  File "C:\Users\Peter\AppData\Roaming\Python\Python39\site-packages\mpire\pool.py", line 17, in <module>
    from mpire.comms import WorkerComms
  File "C:\Users\Peter\AppData\Roaming\Python\Python39\site-packages\mpire\comms.py", line 8, in <module>
    from mpire.context import MP_CONTEXTS
  File "C:\Users\Peter\AppData\Roaming\Python\Python39\site-packages\mpire\context.py", line 25, in <module>
    MP_CONTEXTS = {'mp': {'fork': mp.get_context('fork'),
  File "C:\Program Files\Python39\lib\multiprocessing\context.py", line 239, in get_context
    return super().get_context(method)
  File "C:\Program Files\Python39\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'
@sybrenjansen
Copy link
Owner

Duplicate of #6

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!

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

2 participants