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

Pickle error for Python 3.6 and test_peaksFromModelParallel #1190

Closed
matthew-brett opened this Issue Mar 7, 2017 · 5 comments

Comments

Projects
None yet
2 participants
@matthew-brett
Member

matthew-brett commented Mar 7, 2017

======================================================================
ERROR: dipy.direction.tests.test_peaks.test_peaksFromModelParallel
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/matthew-brett/dipy/venv/lib/python3.6/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/home/travis/build/matthew-brett/dipy/venv/lib/python3.6/site-packages/dipy/direction/tests/test_peaks.py", line 509, in test_peaksFromModelParallel
    return_sh=True, parallel=True)
  File "/home/travis/build/matthew-brett/dipy/venv/lib/python3.6/site-packages/dipy/direction/peaks.py", line 419, in peaks_from_model
    nbr_processes)
  File "/home/travis/build/matthew-brett/dipy/venv/lib/python3.6/site-packages/dipy/direction/peaks.py", line 227, in _peaks_from_model_parallel
    repeat(invB)))
  File "/opt/python/3.6.0/lib/python3.6/multiprocessing/pool.py", line 260, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File "/opt/python/3.6.0/lib/python3.6/multiprocessing/pool.py", line 608, in get
    raise self._value
multiprocessing.pool.MaybeEncodingError: Error sending result: '[<dipy.direction.peaks.PeaksAndMetrics object at 0x2974a18>]'. Reason: 'TypeError("can't pickle PeaksAndMetrics objects",)'

https://travis-ci.org/matthew-brett/dipy/jobs/208734316#L3259

See #1186 for PR extending testing to Python 3.6.

@arokem

This comment has been minimized.

Member

arokem commented Mar 14, 2017

Strangely, I can't replicate this on my laptop. Will try to do this on a linux box.

@matthew-brett

This comment has been minimized.

Member

matthew-brett commented Mar 20, 2017

Can you pickle the PeaksAndMetrics instances on Python 3.6, Numpy 1.12 ?

@arokem

This comment has been minimized.

Member

arokem commented Mar 20, 2017

OK - just tested specifically that.

No, I can't pickle a PAM object under these conditions. Will continue to investigate.

@arokem

This comment has been minimized.

Member

arokem commented Mar 20, 2017

This seems to help: #1195 (but I will admit that I don't entirely understand it)

@arokem

This comment has been minimized.

Member

arokem commented Mar 22, 2017

closed through #1195

@arokem arokem closed this Mar 22, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment