Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Incompatible with Python 3.8 on macOS 10.15 #1803

Open
HR opened this issue Aug 27, 2020 · 3 comments · May be fixed by #1814
Open

Incompatible with Python 3.8 on macOS 10.15 #1803

HR opened this issue Aug 27, 2020 · 3 comments · May be fixed by #1814

Comments

@HR
Copy link

HR commented Aug 27, 2020

Expected behavior:

Execute setup without error

Actual Behavior:

Getting an error while executing the ./streisand setup script

ERROR! Unexpected Exception, this is probably a bug: cannot pickle '_io.TextIOWrapper' object

Steps to Reproduce:

  1. Choose Azure as provider
  2. Type no (choose default config .streisand/site.yml)

Additional Details:

Log output from Ansible or other relevant services (link to Gist for longer output):

Target Cloud Provider: Azure
Operating System of target host: n/a
Operating System of client: macOS 10.15.6
Version of Ansible, using ansible --version : 2.8.4
Output from git rev-parse HEAD in your Streisand directory : af5eb7d

Issue:

After 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: ansible/ansible#63973

Is it possible to update the ansible version to >= 2.9.1?

@gregory-hk
Copy link

gregory-hk commented Aug 29, 2020

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.

@patthiel patthiel linked a pull request Oct 14, 2020 that will close this issue
@patthiel
Copy link
Contributor

@gregory-hk thanks for posting a workaround! i made a PR that addresses this.

@krishkumar
Copy link

I see this issue with python 3.9 on macOS 10.15.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants