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

Serialization of exotic functions fails on Windows #37

Open
krzysztofarendt opened this issue Feb 7, 2021 · 0 comments
Open

Serialization of exotic functions fails on Windows #37

krzysztofarendt opened this issue Feb 7, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@krzysztofarendt
Copy link
Owner

The following unit test fails on Windows:

======================================================================
ERROR: test_exotic_pickling (__main__.TestModestga)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "modestga\test\test.py", line 233, in test_exotic_pickling
    workers=2)
  File "d:\code\modestga\modestga\ga.py", line 167, in minimize
    p.start()
  File "D:\Anaconda3\envs\modestga\lib\multiprocessing\process.py", line 112, in start
    self._popen = self._Popen(self)
  File "D:\Anaconda3\envs\modestga\lib\multiprocessing\context.py", line 223, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "D:\Anaconda3\envs\modestga\lib\multiprocessing\context.py", line 322, in _Popen
    return Popen(process_obj)
  File "D:\Anaconda3\envs\modestga\lib\multiprocessing\popen_spawn_win32.py", line 89, in __init__
    reduction.dump(process_obj, to_child)
  File "D:\Anaconda3\envs\modestga\lib\multiprocessing\reduction.py", line 60, in dump
    ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'TestModestga.test_exotic_pickling.<locals>.FunWrapper'

----------------------------------------------------------------------

On Linux it works fine.

@krzysztofarendt krzysztofarendt added the bug Something isn't working label Feb 7, 2021
@krzysztofarendt krzysztofarendt added this to the v.0.6 milestone Feb 7, 2021
@krzysztofarendt krzysztofarendt removed this from the v.0.6 milestone Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant