zappa / Zappa

Serverless Python
https://zappa.ws/zappa
MIT License
3.31k stars 363 forks source link

[Migrated] Pillow (4.3.0) for manylinux1 is not packaged, instead zappa packages Pillow for Windows 64-bit #483

Closed jneves closed 6 months ago

jneves commented 3 years ago

Originally from: https://github.com/Miserlou/Zappa/issues/1286 by ceefour

This is almost related to #398 / #841 , but instead no Pillow is packaged at all.

Context

Python 3.6 on Windows (Anaconda)

Expected Behavior

Pillow 4.3.0 is packaged. It seems that lambda-packages doesn't have pillow 4.3.0 yet, only 3.4.2 (https://github.com/Miserlou/lambda-packages/tree/master/lambda_packages/Pillow), however there is a manylinux wheel: Pillow-4.3.0-cp36-cp36m-manylinux1_x86_64.whl which should be usable, right ?

Actual Behavior

Pillow 4.3.0 is not packaged, and instead zappa uses PIL for Windows 64bit:

image

Pillow-4.3.0.dist-info exists:

image

WHEEL contains:

Wheel-Version: 1.0
Generator: bdist_wheel (0.30.0)
Root-Is-Purelib: false
Tag: cp36-cp36m-win_amd64

Possible Fix

Patch the zip and use the manylinux wheel manually?

Steps to Reproduce

On Windows 64-bit:

pip install Pillow

Your Environment

argcomplete==1.9.2
Babel==2.5.1
base58==0.2.4
boto==2.48.0
boto3==1.4.8
botocore==1.8.11
cachetools==2.0.1
certifi==2017.11.5
cfn-flip==0.2.5
chardet==3.0.4
click==6.7
decorator==4.1.2
Django==2.0
django-appconf==1.0.2
django-imagekit==4.0.2
django-ipware==1.1.6
django-nine==0.1.13
django-phonenumber-field==1.3.0
django-qartez==0.7.1
django-s3-storage==0.12.1
docutils==0.14
durationpy==0.5
future==0.16.0
google-auth==1.2.1
hjson==3.0.1
httplib2==0.10.3
idna==2.6
jmespath==0.9.3
kappa==0.6.0
lambda-packages==0.19.0
oauth2client==4.1.2
olefile==0.44
phonenumberslite==8.8.5
pilkit==2.0
Pillow==4.3.0
placebo==0.8.1
psycopg2==2.7.3.2
pyasn1==0.4.2
pyasn1-modules==0.2.1
python-dateutil==2.6.1
python-slugify==1.2.4
pytz==2017.3
PyYAML==3.12
ratelim==0.1.6
requests==2.18.4
rsa==3.4.2
s3transfer==0.1.12
six==1.11.0
toml==0.9.3
tqdm==4.19.1
troposphere==2.1.2
Unidecode==0.4.21
uritemplate==3.0.0
urllib3==1.22
Werkzeug==0.12
wsgi-request-logger==0.4.6
zappa==0.45.1
{
    "prd": {
        "aws_region": "us-east-1",
        "django_settings": "samaraweb.settings",
        "profile_name": "default",
        "project_name": "samaraweb",
        "runtime": "python3.6",
        "s3_bucket": "samaraedu-code",
        "domain": "keluargasamara.com",
        "certificate_arn": "arn:aws:acm:us-east-1:703881650703:certificate/a5683018-90ee-4e47-b59b-bc0d147ed174",
        "route53_enabled": false,
        "exclude": ["snapshot"]
    }
}
github-actions[bot] commented 7 months ago

Hi there! Unfortunately, this Issue has not seen any activity for at least 90 days. If the Issue is still relevant to the latest version of Zappa, please comment within the next 10 days if you wish to keep it open. Otherwise, it will be automatically closed.

github-actions[bot] commented 6 months ago

Hi there! Unfortunately, this Issue was automatically closed as it had not seen any activity in at least 100 days. If the Issue is still relevant to the latest version of Zappa, please open a new Issue.