Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No .dist-info directory after successful pip install ... #561

Open
agitator opened this issue Mar 17, 2021 · 7 comments
Open

No .dist-info directory after successful pip install ... #561

agitator opened this issue Mar 17, 2021 · 7 comments

Comments

@agitator
Copy link

Followup to https://community.plone.org/t/please-test-buildout-3/13554/16

Created the buildout for Pillow

[buildout]
parts=pil

[pil]
recipe=zc.recipe.egg
eggs=Pillow

[versions]
Pillow=6.2.2

Created a fresh venv with pyenv and installed buildout, also updated pip and ran again

pyenv virtualenv 3.8.7 pillow-env
pyenv local pillow-env
pip install buildout==3.0.0b2

Getting the same error

❯ buildout
Installing pil.
Getting distribution for 'Pillow==6.2.2'.
  ERROR: Command errored out with exit status 1:
   command: /Users/peter/.pyenv/versions/3.8.7/envs/pillow-env/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-req-build-i85wdcac/setup.py'"'"'; __file__='"'"'/private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-req-build-i85wdcac/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-wheel-28xhebwn
       cwd: /private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-req-build-i85wdcac/
  Complete output (172 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-11.2-x86_64-3.8
  creating build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/MpoImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageMode.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/PngImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/XbmImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/PcxImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/SunImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/SpiderImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/TarIO.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/FitsStubImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/MpegImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/BdfFontFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/GribStubImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageStat.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/PixarImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/GimpPaletteFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageColor.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ContainerIO.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/MspImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/MicImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/_version.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImtImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/GifImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/PalmImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageQt.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageMath.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/PaletteFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/FontFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/PdfParser.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ExifTags.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageCms.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/FpxImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageChops.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/BufrStubImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/PSDraw.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/PcdImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageFilter.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageDraw2.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImagePath.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/DcxImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/__init__.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/JpegPresets.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/features.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageDraw.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/GimpGradientFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageWin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/IcoImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/_tkinter_finder.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/EpsImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/TgaImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageMorph.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/WalImageFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/PcfFontFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/BlpImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageTk.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/GbrImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageOps.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/PdfImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageShow.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageEnhance.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/WmfImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageGrab.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/WebPImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/FliImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/TiffTags.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/CurImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/_util.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/GdImageFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/TiffImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/IptcImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImagePalette.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/BmpImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageTransform.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/IcnsImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/McIdasImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/XpmImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/DdsImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageSequence.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/PyAccess.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/_binary.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/Image.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/__main__.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/XVThumbImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/SgiImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/PsdImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/JpegImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/ImageFont.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/PpmImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  copying src/PIL/FtexImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
  running egg_info
  writing src/Pillow.egg-info/PKG-INFO
  writing dependency_links to src/Pillow.egg-info/dependency_links.txt
  writing top-level names to src/Pillow.egg-info/top_level.txt
  reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching '*.c'
  warning: no files found matching '*.h'
  warning: no files found matching '*.sh'
  warning: no previously-included files found matching '.appveyor.yml'
  warning: no previously-included files found matching '.coveragerc'
  warning: no previously-included files found matching '.codecov.yml'
  warning: no previously-included files found matching '.editorconfig'
  warning: no previously-included files found matching '.readthedocs.yml'
  warning: no previously-included files found matching 'azure-pipelines.yml'
  warning: no previously-included files matching '.git*' found anywhere in distribution
  warning: no previously-included files matching '*.pyc' found anywhere in distribution
  warning: no previously-included files matching '*.so' found anywhere in distribution
  no previously-included directories found matching '.azure-pipelines'
  no previously-included directories found matching '.travis'
  writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
  running build_ext
  
  
  The headers or library files could not be found for zlib,
  a required dependency when compiling Pillow from source.
  
  Please see the install instructions at:
     https://pillow.readthedocs.io/en/latest/installation.html
  
  Traceback (most recent call last):
    File "/private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-req-build-i85wdcac/setup.py", line 852, in <module>
      setup(
    File "/Users/peter/.pyenv/versions/3.8.7/envs/pillow-env/lib/python3.8/site-packages/setuptools/__init__.py", line 165, in setup
      return distutils.core.setup(**attrs)
    File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/Users/peter/.pyenv/versions/3.8.7/envs/pillow-env/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/command/build_ext.py", line 340, in run
      self.build_extensions()
    File "/private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-req-build-i85wdcac/setup.py", line 687, in build_extensions
      raise RequiredDependencyException(f)
  __main__.RequiredDependencyException: zlib
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-req-build-i85wdcac/setup.py", line 903, in <module>
      raise RequiredDependencyException(msg)
  __main__.RequiredDependencyException:
  
  The headers or library files could not be found for zlib,
  a required dependency when compiling Pillow from source.
  
  Please see the install instructions at:
     https://pillow.readthedocs.io/en/latest/installation.html
  
  
  ----------------------------------------
  ERROR: Failed building wheel for Pillow
    ERROR: Command errored out with exit status 1:
     command: /Users/peter/.pyenv/versions/3.8.7/envs/pillow-env/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-req-build-i85wdcac/setup.py'"'"'; __file__='"'"'/private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-req-build-i85wdcac/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-record-sbrpp7np/install-record.txt --single-version-externally-managed --home /private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-target-gd9xrybe --compile --install-headers include/site/python3.8/Pillow
         cwd: /private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-req-build-i85wdcac/
    Complete output (174 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-11.2-x86_64-3.8
    creating build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/MpoImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageMode.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/PngImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/XbmImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/PcxImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/SunImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/SpiderImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/TarIO.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/FitsStubImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/MpegImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/BdfFontFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/GribStubImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageStat.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/PixarImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/GimpPaletteFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageColor.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ContainerIO.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/MspImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/MicImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/_version.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImtImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/GifImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/PalmImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageQt.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageMath.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/PaletteFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/FontFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/PdfParser.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ExifTags.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageCms.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/FpxImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageChops.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/BufrStubImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/PSDraw.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/PcdImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageFilter.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageDraw2.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImagePath.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/DcxImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/__init__.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/JpegPresets.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/features.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageDraw.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/GimpGradientFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageWin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/IcoImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/_tkinter_finder.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/EpsImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/TgaImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageMorph.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/WalImageFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/PcfFontFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/BlpImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageTk.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/GbrImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageOps.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/PdfImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageShow.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageEnhance.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/WmfImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageGrab.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/WebPImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/FliImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/TiffTags.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/CurImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/_util.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/GdImageFile.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/TiffImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/IptcImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImagePalette.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/BmpImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageTransform.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/IcnsImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/McIdasImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/XpmImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/DdsImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageSequence.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/PyAccess.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/_binary.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/Image.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/__main__.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/XVThumbImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/SgiImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/PsdImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/JpegImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/ImageFont.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/PpmImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    copying src/PIL/FtexImagePlugin.py -> build/lib.macosx-11.2-x86_64-3.8/PIL
    running egg_info
    writing src/Pillow.egg-info/PKG-INFO
    writing dependency_links to src/Pillow.egg-info/dependency_links.txt
    writing top-level names to src/Pillow.egg-info/top_level.txt
    reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching '*.c'
    warning: no files found matching '*.h'
    warning: no files found matching '*.sh'
    warning: no previously-included files found matching '.appveyor.yml'
    warning: no previously-included files found matching '.coveragerc'
    warning: no previously-included files found matching '.codecov.yml'
    warning: no previously-included files found matching '.editorconfig'
    warning: no previously-included files found matching '.readthedocs.yml'
    warning: no previously-included files found matching 'azure-pipelines.yml'
    warning: no previously-included files matching '.git*' found anywhere in distribution
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    warning: no previously-included files matching '*.so' found anywhere in distribution
    no previously-included directories found matching '.azure-pipelines'
    no previously-included directories found matching '.travis'
    writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
    running build_ext
    
    
    The headers or library files could not be found for zlib,
    a required dependency when compiling Pillow from source.
    
    Please see the install instructions at:
       https://pillow.readthedocs.io/en/latest/installation.html
    
    Traceback (most recent call last):
      File "/private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-req-build-i85wdcac/setup.py", line 852, in <module>
        setup(
      File "/Users/peter/.pyenv/versions/3.8.7/envs/pillow-env/lib/python3.8/site-packages/setuptools/__init__.py", line 165, in setup
        return distutils.core.setup(**attrs)
      File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Users/peter/.pyenv/versions/3.8.7/envs/pillow-env/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Users/peter/.pyenv/versions/3.8.7/lib/python3.8/distutils/command/build_ext.py", line 340, in run
        self.build_extensions()
      File "/private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-req-build-i85wdcac/setup.py", line 687, in build_extensions
        raise RequiredDependencyException(f)
    __main__.RequiredDependencyException: zlib
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-req-build-i85wdcac/setup.py", line 903, in <module>
        raise RequiredDependencyException(msg)
    __main__.RequiredDependencyException:
    
    The headers or library files could not be found for zlib,
    a required dependency when compiling Pillow from source.
    
    Please see the install instructions at:
       https://pillow.readthedocs.io/en/latest/installation.html
    
    
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/peter/.pyenv/versions/3.8.7/envs/pillow-env/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-req-build-i85wdcac/setup.py'"'"'; __file__='"'"'/private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-req-build-i85wdcac/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-record-sbrpp7np/install-record.txt --single-version-externally-managed --home /private/var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/pip-target-gd9xrybe --compile --install-headers include/site/python3.8/Pillow Check the logs for full command output.
No .dist-info directory after successful pip install of /var/folders/q9/g4v63j9s0h122t997shqn3n80000gn/T/tmp42of_g35get_dist/Pillow-6.2.2.tar.gz
While:
  Installing pil.
  Getting distribution for 'Pillow==6.2.2'.

An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/Users/peter/.pyenv/versions/3.8.7/envs/pillow-env/lib/python3.8/site-packages/zc/buildout/buildout.py", line 2219, in main
    getattr(buildout, command)(args)
  File "/Users/peter/.pyenv/versions/3.8.7/envs/pillow-env/lib/python3.8/site-packages/zc/buildout/buildout.py", line 834, in install
    installed_files = self[part]._call(recipe.install)
  File "/Users/peter/.pyenv/versions/3.8.7/envs/pillow-env/lib/python3.8/site-packages/zc/buildout/buildout.py", line 1630, in _call
    return f()
  File "/Users/peter/workspace/pillow/eggs/zc.recipe.egg-2.0.7-py3.8.egg/zc/recipe/egg/egg.py", line 227, in install
    reqs, ws = self.working_set()
  File "/Users/peter/workspace/pillow/eggs/zc.recipe.egg-2.0.7-py3.8.egg/zc/recipe/egg/egg.py", line 78, in working_set
    ws = self._working_set(
  File "/Users/peter/workspace/pillow/eggs/zc.recipe.egg-2.0.7-py3.8.egg/zc/recipe/egg/egg.py", line 161, in _working_set
    ws = zc.buildout.easy_install.install(
  File "/Users/peter/.pyenv/versions/3.8.7/envs/pillow-env/lib/python3.8/site-packages/zc/buildout/easy_install.py", line 965, in install
    return installer.install(specs, working_set)
  File "/Users/peter/.pyenv/versions/3.8.7/envs/pillow-env/lib/python3.8/site-packages/zc/buildout/easy_install.py", line 690, in install
    for dist in self._get_dist(requirement, ws):
  File "/Users/peter/.pyenv/versions/3.8.7/envs/pillow-env/lib/python3.8/site-packages/zc/buildout/easy_install.py", line 581, in _get_dist
    dists = [_move_to_eggs_dir_and_compile(dist, self._dest)]
  File "/Users/peter/.pyenv/versions/3.8.7/envs/pillow-env/lib/python3.8/site-packages/zc/buildout/easy_install.py", line 1889, in _move_to_eggs_dir_and_compile
    [tmp_loc] = call_pip_install(dist.location, tmp_dest)
  File "/Users/peter/.pyenv/versions/3.8.7/envs/pillow-env/lib/python3.8/site-packages/zc/buildout/easy_install.py", line 1699, in call_pip_install
    distinfo_dir = [
IndexError: list index out of range

As far as I see my python 3.8.7 and pillow-env look pretty clean

❯ ls -l ~/.pyenv/versions/3.8.7/lib/python3.8/site-packages
total 16
-rw-r--r--   1 peter  staff   119 Feb 21 15:42 README.txt
drwxr-xr-x   3 peter  staff    96 Feb 21 15:42 __pycache__
-rw-r--r--   1 peter  staff   126 Feb 21 15:42 easy_install.py
drwxr-xr-x   7 peter  staff   224 Feb 21 15:42 pip
drwxr-xr-x  10 peter  staff   320 Feb 21 15:42 pip-20.2.3.dist-info
drwxr-xr-x   6 peter  staff   192 Feb 21 15:42 pkg_resources
drwxr-xr-x  45 peter  staff  1440 Feb 21 15:42 setuptools
drwxr-xr-x  12 peter  staff   384 Feb 21 15:42 setuptools-49.2.1.dist-info


❯ ls -l ~/.pyenv/versions/3.8.7/envs/pillow-env/lib/python3.8/site-packages
total 16
drwxr-xr-x   3 peter  staff    96 Mar 17 18:24 __pycache__
-rw-r--r--   1 peter  staff   126 Mar 17 18:24 easy_install.py
drwxr-xr-x   7 peter  staff   224 Mar 17 18:35 pip
drwxr-xr-x  10 peter  staff   320 Mar 17 18:35 pip-21.0.1.dist-info
drwxr-xr-x   6 peter  staff   192 Mar 17 18:24 pkg_resources
drwxr-xr-x  45 peter  staff  1440 Mar 17 18:24 setuptools
drwxr-xr-x  12 peter  staff   384 Mar 17 18:24 setuptools-49.2.1.dist-info
drwxr-xr-x  13 peter  staff   416 Mar 17 18:27 wheel
drwxr-xr-x   9 peter  staff   288 Mar 17 18:27 wheel-0.36.2.dist-info
drwxr-xr-x   3 peter  staff    96 Mar 17 18:27 zc
-rw-r--r--   1 peter  staff   519 Mar 17 18:27 zc.buildout-3.0.0b2-py3.7-nspkg.pth
drwxr-xr-x  11 peter  staff   352 Mar 17 18:27 zc.buildout-3.0.0b2.dist-info

What should be default?
Buildout getting the pillow wheel and not trying to build it?
Workaround would be adding zlib to the compile flags or should Pillow be able to compile with the osx zlib default?

@gotcha
Copy link
Member

gotcha commented Mar 17, 2021

@agitator

  • Did you test with virtualenv only ?
  • Did you try to debug why your setup downloads a .tgzrather than a wheel ?
  • How have you installed your Python 3.8 ?

@agitator
Copy link
Author

Tried now with os python as well /usr/bin/python3 -m venv . same result.
Any pointers how I should debug that?
Besides the os python, I installed pyenv and pyenv-virtualenv with brew.

@iham
Copy link

iham commented Mar 19, 2021

@agitator

  1. little typo, i'd say:
    pip install buildout==3.0.0b2
    its zc.buildout, and yes; i typed it as you documented as i thought this might be a new fork or seperation for some reason. ;)

  2. tried it on a fairly new set up mbpro with a clean install of:

  • pyenv
  • pipenv
    ... using homebrew

then installed python 3.8.7 explicit
pyenv install 3.8.7
created a dir
mkdir test-pil
and got in it
cd test-pil
set my virtualenv using pipenv - NOT - pyenv
pipenv --python 3.8.7
installed zc.buildout
pipenv install zc.buildout==3.0.0b2
added the buildout.cfg as you mentioned and ran buildout
pipenv run buildout
which outputs:

Creating directory '/Users/iham/Sandbox/test-pil/eggs'.
Creating directory '/Users/iham/Sandbox/test-pil/bin'.
Creating directory '/Users/iham/Sandbox/test-pil/parts'.
Creating directory '/Users/iham/Sandbox/test-pil/develop-eggs'.
Getting distribution for 'zc.recipe.egg>=2.0.6'.
Got zc.recipe.egg 2.0.7.
Installing pil.
Getting distribution for 'Pillow==6.2.2'.
Got Pillow 6.2.2.

no errors.

hope this helps (a little) as i use pipenv and not pyenv-virtualenv and don't reproduce the same steps as you did them.
i love pipenv as it generates a pipfile that keeps track of python version and packages (like zc.buildout) installed by pipenv.

@iham
Copy link

iham commented Mar 19, 2021

tried system python based install and it worked too:

mkdir test-pil-2
cd test-pil-2
/usr/bin/python3 -m venv .
./bin/pip install zc.buildout==3.0.0b2
./bin/buildout                                                                                                                                                        ─╯
Requires-Python support missing. 

Traceback (most recent call last):
  File "/Users/iham/Sandbox/test-pil-2/lib/python3.8/site-packages/zc/buildout/patches.py", line 50, in patch_PackageIndex
    from pip._internal.index.collector import HTMLPage
ModuleNotFoundError: No module named 'pip._internal.index.collector'; 'pip._internal.index' is not a package
Creating directory '/Users/iham/Sandbox/test-pil-2/eggs'.
Creating directory '/Users/iham/Sandbox/test-pil-2/parts'.
Creating directory '/Users/iham/Sandbox/test-pil-2/develop-eggs'.
Getting distribution for 'zc.recipe.egg>=2.0.6'.
WARNING: You are using pip version 19.2.3, however version 21.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Got zc.recipe.egg 2.0.7.
Installing pil.
Getting distribution for 'Pillow==6.2.2'.
Got Pillow 6.2.2.

@gotcha
Copy link
Member

gotcha commented Mar 22, 2021

@agitator

Can you run buildout -vv and confirm that it fetches Pillow-6.2.2.tar.gz ?

On my machine, when running with -vv I get the following line in the output:

Fetching Pillow 6.2.2 from: https://files.pythonhosted.org/packages/d1/3/b39dc66fb0c30339bcbf1c96992c915645cf236a4483db9bde8362539246/Pillow-6.2.2-cp37-cp37mmacosx_10_6_intel.whl#sha256=5dcbbaa3a24d091a64560d3c439a8962866a79a033d40eb1a75f1b3413bfc2bc

The important part being Pillow-6.2.2-cp37-cp37mmacosx_10_6_intel.whl.

What happens when you bin/pip install Pillow==6.2.2 in a virtualenv ? Does it succeed ? Does it install the wheel or the source ?

@gotcha
Copy link
Member

gotcha commented Mar 22, 2021

I forced pip to install from source on my machine. It also succeeds.

✔[pil]$ bin/pip install Pillow==6.2.2 --no-binary :all:
Collecting Pillow==6.2.2
  Downloading Pillow-6.2.2.tar.gz (37.8 MB)
     |████████████████████████████████| 37.8 MB 751 kB/s
Skipping wheel build for Pillow, due to binaries being disabled for it.
Installing collected packages: Pillow
Running setup.py install for Pillow ... done
Successfully installed Pillow-6.2.2

@pnicolli
Copy link

pnicolli commented Aug 6, 2021

I am trying this on an older buildout. I created a fresh virtualenv (python 2.7.18 for this specific buildout). Installed latest zc.buildout 3.0.0b2, setuptools and wheel.
If I pip install Pillow I get the wheel.
If I run buildout -vvv I get the same error that @agitator posted. Buildout downloads the tgz version of Pillow and complains it has no .dist-info after building the tgz. Note: I had deleted my eggs folder and built a fresh virtualenv before running buildout.

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

No branches or pull requests

4 participants