Skip to content

Instantly share code, notes, and snippets.

@colmex
Created July 13, 2015 06:20
Show Gist options
  • Save colmex/db3ec5fd7c577798acaf to your computer and use it in GitHub Desktop.
Save colmex/db3ec5fd7c577798acaf to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/cProfile.py", line 199, in <module>
main()
File "/usr/lib/python2.7/cProfile.py", line 192, in main
runctx(code, globs, None, options.outfile, options.sort)
File "/usr/lib/python2.7/cProfile.py", line 49, in runctx
prof = prof.runctx(statement, globals, locals)
File "/usr/lib/python2.7/cProfile.py", line 140, in runctx
exec cmd in globals, locals
File "all_threads.py", line 37, in <module>
print random_walk_algorithm(probArr, period)
File "all_threads.py", line 24, in random_walk_algorithm
p.map(partial_probability_calculator, ret.keys())
File "/usr/lib/python2.7/multiprocessing/pool.py", line 251, in map
return self.map_async(func, iterable, chunksize).get()
File "/usr/lib/python2.7/multiprocessing/pool.py", line 558, in get
raise self._value
cPickle.PicklingError: Can't pickle <type 'function'>: attribute lookup __builtin__.function failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment