Execute setup without error
Getting an error while executing the ./streisand setup script
ERROR! Unexpected Exception, this is probably a bug: cannot pickle '_io.TextIOWrapper' object
no (choose default config .streisand/site.yml)ansible --version : 2.8.4git rev-parse HEAD in your Streisand directory : af5eb7dac157a2416ea64cba96cf32f7f505d9ffAfter searching around, I found that this is an ansible issue that occurs when using python >= 3.8 on macOS and was fixed in ansible version >= 2.9.1 but this project uses a lower version (2.8.4) so the error persists.
See: https://github.com/ansible/ansible/issues/63973
Is it possible to update the ansible version to >= 2.9.1?
short term work-around:
after installing python, then while running ./streisand, I also ran into the above error.
(eventually,) I deleted both Ansible folders from within ~/streisand/venv/lib/python3.8/ and ran pip install ansible from within the streisand venv. Python then installed the latest version of Ansible and ./streisand ran without error.
@gregory-hk thanks for posting a workaround! i made a PR that addresses this.
Most helpful comment
short term work-around:
after installing python, then while running
./streisand, I also ran into the above error.(eventually,) I deleted both Ansible folders from within
~/streisand/venv/lib/python3.8/and ranpip install ansiblefrom within the streisand venv. Python then installed the latest version of Ansible and./streisandran without error.