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

Zappa "package" command result in incomplete .zip outputs #1286

Closed
Yuanqi-babe opened this issue Dec 7, 2023 · 2 comments
Closed

Zappa "package" command result in incomplete .zip outputs #1286

Yuanqi-babe opened this issue Dec 7, 2023 · 2 comments
Labels
auto-closed [Bot] Closed, details in comments no-activity [Bot] Closing soon if no new activity

Comments

@Yuanqi-babe
Copy link

Yuanqi-babe commented Dec 7, 2023

Context

When I am running "zappa package dev -o mypackage.zip" on CodeBuild in AWS Great China regions (cn-north-1 or cn-northwest-1), it will produce incomplete zappa outputs thus resulting in the application not runnable

Expected Behavior

It should be same when running in regions outside China, like us-east-1 where all packages are complete and app runs smoothly

Actual Behavior

Ideally the package should be 15.1 or something, but for the required package "pillow==8.0.0", it actually failed installation and when I investigated it with zappa tail, it says no module found

Possible Fix

When running in Chinese region, please use Chinese image resources when dealing with dependencies installation -

Steps to Reproduce

  1. Run "zappa package -o dummy.zip" and dump it on s3
  2. Let your Lambda to use the output artifacts "dummy.zip" on Amazon s3
  3. You will see that this .zip is incomplete and is not able to run properly. But it is 100% fine in global regions

Your Environment

  • Zappa version used: 0.58
  • Operating System and Python version: AWS CodeBuild
  • The output of pip freeze:
    boto3==1.23.10
    botocore==1.26.10
    Flask==1.1.1
    future==0.18.2
    hjson==3.0.1
    idna==2.9
    importlib-metadata==1.5.2
    isort==4.3.21
    itsdangerous==1.1.0
    Jinja2==2.11.1
    jmespath==0.9.5
    kappa==0.6.0
    MarkupSafe==1.1.1
    mccabe==0.6.1
    pip-tools==4.5.1
    placebo==0.9.0
    pycodestyle==2.5.0
    pycparser==2.20
    python-dateutil==2.6.1
    python-slugify==4.0.0
    pytz==2019.3
    PyYAML==5.3.1
    requests==2.23.0
    s3transfer==0.5.0
    six==1.14.0
    toml==0.10.0
    tqdm==4.43.0
    typed-ast==1.4.1
    tzlocal==2.0.0
    urllib3==1.25.8
    Werkzeug==0.16.1
    wrapt==1.11.2
    wsgi-request-logger==0.4.6
    zappa==0.51.0
    zipp==3.1.0
    jsonschema==3.0.2
    pytest==5.4.1
    simplejson==3.17.0
    gunicorn==19.9.0
    flask_cors==3.0.3
    mockito==1.3.5
    coverage==4.5.4
    pytest-cov==2.10.1
    Pillow==8.0.0
    pyjwt==2.6.0
  • Link to your project (optional):
  • Your zappa_settings.json:
    {
    "dev": {
    "app_function": "app.init.webapp",
    "aws_region": "%aws_region%",
    "profile_name": "default",
    "project_name": "omniml-backend",
    "runtime": "python3.8",
    "s3_bucket": "zappa-uhqp8tmqt",
    "timeout_seconds": 360
    }
    }
Copy link

github-actions bot commented Apr 3, 2024

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 github-actions bot added the no-activity [Bot] Closing soon if no new activity label Apr 3, 2024
Copy link

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.

@github-actions github-actions bot added the auto-closed [Bot] Closed, details in comments label Apr 13, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-closed [Bot] Closed, details in comments no-activity [Bot] Closing soon if no new activity
Projects
None yet
Development

No branches or pull requests

1 participant