Coder Social home page Coder Social logo

Comments (4)

TaiSakuma avatar TaiSakuma commented on July 18, 2024 1

Thank you for checking. I will fix it when I can.

from mantichora.

TaiSakuma avatar TaiSakuma commented on July 18, 2024

Thank you for letting me know.

I will see if I can revert the default to spawn on Windows.

Incidentally, in the latest version (0.10.0), you can choose to usespawn by the option mp_start_method as described in a section of README.md.

mantichora(mp_start_method='spawn')

However, this still might not work on Windows. I don't have access to a Windows machine and cannot try it at the moment.

from mantichora.

domengorjup avatar domengorjup commented on July 18, 2024

I don't think that would work, since the error is thrown already when importing mantichora. Here is more information I hope you might find helpful:

(venv) λ python
Python 3.7.1 (default, Oct 23 2018, 22:56:47) [MSC v.1912 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mantichora
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\test\venv\lib\site-packages\mantichora\__init__.py", line 2, in <module>
    from .main import mantichora
  File "C:\test\venv\lib\site-packages\mantichora\main.py", line 4, in <module>
    from .hubmp import MultiprocessingHub
  File "C:\test\venv\lib\site-packages\mantichora\hubmp.py", line 272, in <module>
    ctx_fork = multiprocessing.get_context('fork')
  File "c:\programdata\anaconda3\Lib\multiprocessing\context.py", line 238, in get_context
    return super().get_context(method)
  File "c:\programdata\anaconda3\Lib\multiprocessing\context.py", line 192, in get_context
    raise ValueError('cannot find context for %r' % method) from None
ValueError: cannot find context for 'fork'

The issue seems to be in the following line:

ctx_fork = multiprocessing.get_context('fork')

as this code fails on Windows.

This is for version 0.10.0 of mantichora.

from mantichora.

TaiSakuma avatar TaiSakuma commented on July 18, 2024

This issue has been open for a while. I finally had a chance to work on it.
I released 0.12.0.
It works on Windows in GitHub Actions.

from mantichora.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.