zlib not available error with Python 2.7.18 and macos #26935
-
I have a pipeline with actions/setup-python and macos-latest as runner. The pipeline works well, I got an artifact but when I run it, the following error is raised:
I have tried with setup-python versions v1/v2 and I got the same problem. Using a pyenv installation instead and installing zlib with brew, the artifact work as is expected. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Would you mind sharing your workflow yml file and an example repo to reproduce this issue ? |
Beta Was this translation helpful? Give feedback.
-
@yanjingzhu sure, here is an example:
When I run the generated build, I got the zlib error. Same issue with python 3…8. Using this following wa it works well:
Thxs a lot! :slight_smile: |
Beta Was this translation helpful? Give feedback.
-
Hi @fgriberi Setup python action will not install zlib . So you need to install zlib in another step and export some environment variables. The solution you found is great. It is the same as what’s tarrex said here: |
Beta Was this translation helpful? Give feedback.
Hi @fgriberi
Setup python action will not install zlib . So you need to install zlib in another step and export some environment variables. The solution you found is great. It is the same as what’s tarrex said here:
pyenv/pyenv#1219 (comment)