asdf-community / asdf-python

Python plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
656 stars 56 forks source link

can't decompress data; zlib not available make #56

Closed jasperblues closed 5 years ago

jasperblues commented 5 years ago

Received the following:

ast 10 log lines:
  File "/private/var/folders/pp/8cx2m9p92hjdk1cmg6z49znw0000gn/T/python-build.20190525111851.13029/Python-3.7.2/Lib/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
  File "/private/var/folders/pp/8cx2m9p92hjdk1cmg6z49znw0000gn/T/python-build.20190525111851.13029/Python-3.7.2/Lib/ensurepip/__init__.py", line 204, in _main
    default_pip=args.default_pip,
  File "/private/var/folders/pp/8cx2m9p92hjdk1cmg6z49znw0000gn/T/python-build.20190525111851.13029/Python-3.7.2/Lib/ensurepip/__init__.py", line 117, in _bootstrap
    return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/private/var/folders/pp/8cx2m9p92hjdk1cmg6z49znw0000gn/T/python-build.20190525111851.13029/Python-3.7.2/Lib/ensurepip/__init__.py", line 27, in _run_pip
    import pip._internal
zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [install] Error 1
 !  ~ 

I do have zlib installed via MacPorts. A bit rusty on how to make this visible. Also, can it be detected automatically?

jasperblues commented 5 years ago

For Macports:

set -xg LDFLAGS '-L /opt/local/lib'
set -xg CPPFLAGS '-I /opt/local/include'
set -xg PKG_CONFIG /opt/local/lib/pkgconfig

^-- or the bash shell equivalent

danhper commented 5 years ago

Hi! asdf-python is simply a wrapper around python-build so the issue should most likely be open there. I am happy to add something to the README if it helps though. I will close for now, please comment if you think this should be re-opened. Thanks!

jasperblues commented 5 years ago

@danhper It don't use Python so often, so had to google around. I guess the issue (with building) will already be familiar to regular Python users.

This ticket should be index now, will appear in search results for others who need guidance.