Skip to content

Windows Docker / nanoserver support #8249

@structurefall

Description

@structurefall

Everybody's going to love this one. I assure you, I have a good reason for wanting this!

I have a Python 3.10.11 install running on a Windows Docker nanoserver ltsc2022 image.

After installing pillow 10.4.0 via pip, doing import Image from PIL results in the following:

Traceback (most recent call last):
  File "C:\app\__init__.py", line 3, in <module>
    from PIL import Image
  File "C:\Python\Lib\site-packages\PIL\Image.py", line 100, in <module>
    from . import _imaging as core
ImportError: DLL load failed while importing _imaging: The specified procedure could not be found.

It appears to work on a servercore image, so that's the workaround, but this is onerous for us, so I'd like to know what the specific dependency is in the hopes of installing just that on a nanoserver image.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions