You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing 1 required positional argument: 'secs_west_of_utc' with multiprocessing #650
Combining GitPython with multiprocessing seems to have some issues:
Traceback (most recent call last):
File "/home//pycharm-2017.1.4/helpers/pydev/pydevd.py", line 1596, in
globals = debugger.run(setup['file'], None, None, is_module)
File "/home//pycharm-2017.1.4/helpers/pydev/pydevd.py", line 1023, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/home//pycharm-2017.1.4/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/home//git/git_repo_analysis/stash/get_repos.py", line 45, in
commits += q.get()
File "/usr/lib/python3.5/multiprocessing/queues.py", line 113, in get
return ForkingPickler.loads(res)
TypeError: init() missing 1 required positional argument: 'secs_west_of_utc'
In order to reproduce you need some git repositories and this code snippet:
Running the same without multiprocessing in a simple for-loop works fine.
I am using GitPython via debian package (python3-git 2.1.5-1) on Linux 4.9.0-1-amd64 SMP Debian 4.9.6-3 (2017-01-28) x86_64 GNU/Linux
Activity
Byron commentedon Sep 28, 2017
Thanks for taking the time to describe the issue and make the issue reproducible, it's much appreciated!
Fix pickling of tzoffset
Fix pickling of tzoffset
Fix pickling of tzoffset
Fix pickling of tzoffset
Fix pickling of tzoffset