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

All tests related to actors are failed for multiprocessing backend on Windows #70

Open
prutskov opened this issue Dec 7, 2021 · 0 comments
Labels
bug 🦗 Something isn't working Multiprocessing Multiprocessing backend related issues

Comments

@prutskov
Copy link
Contributor

prutskov commented Dec 7, 2021

Testing of actor for multiprocessing backend on Windows throwed the next errors:

    @pytest.mark.parametrize("is_use_options", [True, False])
    def test_address_space(is_use_options):
>       actor0 = TestActor.options().remote(0) if is_use_options else TestActor.remote(0)

unidist\test\test_actor.py:34:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
unidist\core\base\actor.py:189: in remote
    actor_cls = self._actor_cls(*self._actor_cls_args)._remote(*args, **kwargs)
unidist\core\backends\multiprocessing\actor.py:132: in _remote
    self._actor_handle = mp.Actor(self._cls, *args, **kwargs)
unidist\core\backends\multiprocessing\core\actor.py:107: in __init__
    manager.start()
..\..\.conda\envs\unidist\lib\multiprocessing\managers.py:579: in start
    self._process.start()
..\..\.conda\envs\unidist\lib\multiprocessing\process.py:121: in start
    self._popen = self._Popen(self)
..\..\.conda\envs\unidist\lib\multiprocessing\context.py:327: in _Popen
    return Popen(process_obj)
..\..\.conda\envs\unidist\lib\multiprocessing\popen_spawn_win32.py:93: in __init__
    reduction.dump(process_obj, to_child)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

obj = <SpawnProcess name='BaseManager-15' parent=22516 initial>, file = <_io.BufferedWriter name=14>, protocol = None

    def dump(obj, file, protocol=None):
        '''Replacement for pickle.dump() using ForkingPickler.'''
>       ForkingPickler(file, protocol).dump(obj)
E       _pickle.PicklingError: Can't pickle <class 'unidist.test.utils.TestActor'>: it's not the same object as unidist.test.utils.TestActor

..\..\.conda\envs\unidist\lib\multiprocessing\reduction.py:60: PicklingError
@prutskov prutskov changed the title All tests related actors are failed for multiprocessing backend on Windows All tests related to actors are failed for multiprocessing backend on Windows Dec 7, 2021
@no-ponomarev no-ponomarev added the bug 🦗 Something isn't working label Feb 16, 2022
@no-ponomarev no-ponomarev added this to the 0.2.0 milestone Feb 16, 2022
@YarShev YarShev removed this from the 0.2.0 milestone Feb 7, 2023
@YarShev YarShev added the Multiprocessing Multiprocessing backend related issues label Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🦗 Something isn't working Multiprocessing Multiprocessing backend related issues
Projects
None yet
Development

No branches or pull requests

3 participants