Skip to content

Instantly share code, notes, and snippets.

@samdoran
Created October 16, 2019 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samdoran/09d432f412132bc9d70556ed1375cc75 to your computer and use it in GitHub Desktop.
Save samdoran/09d432f412132bc9d70556ed1375cc75 to your computer and use it in GitHub Desktop.
Python 3.8 stack trace
Traceback (most recent call last):
File "/Users/sdoran/Source/ansible/bin/ansible-playbook", line 110, in <module>
exit_code = cli.run()
File "/Users/sdoran/Source/ansible/lib/ansible/cli/playbook.py", line 123, in run
results = pbex.run()
File "/Users/sdoran/Source/ansible/lib/ansible/executor/playbook_executor.py", line 169, in run
result = self._tqm.run(play=play)
File "/Users/sdoran/Source/ansible/lib/ansible/executor/task_queue_manager.py", line 249, in run
play_return = strategy.run(iterator, play_context)
File "/Users/sdoran/Source/ansible/lib/ansible/plugins/strategy/linear.py", line 306, in run
self._queue_task(host, task, task_vars, play_context)
File "/Users/sdoran/Source/ansible/lib/ansible/plugins/strategy/__init__.py", line 317, in _queue_task
worker_prc.start()
File "/Users/sdoran/Source/ansible/lib/ansible/executor/process/worker.py", line 96, in start
return super(WorkerProcess, self).start()
File "/Users/sdoran/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
File "/Users/sdoran/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "/Users/sdoran/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/context.py", line 283, in _Popen
return Popen(process_obj)
File "/Users/sdoran/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 32, in __init__
super().__init__(process_obj)
File "/Users/sdoran/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/popen_fork.py", line 19, in __init__
self._launch(process_obj)
File "/Users/sdoran/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 47, in _launch
reduction.dump(process_obj, fp)
File "/Users/sdoran/.pyenv/versions/3.8.0/lib/python3.8/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle '_io.TextIOWrapper' object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment