Title: Numpy and pandas not usable in Lambda · Issue #2 · qubitro/action-lambda-python-zip · GitHub
Open Graph Title: Numpy and pandas not usable in Lambda · Issue #2 · qubitro/action-lambda-python-zip
X Title: Numpy and pandas not usable in Lambda · Issue #2 · qubitro/action-lambda-python-zip
Description: As AWS Lambda requires numpy and pandas are compiled in AWS compatible Linux images, and this action uses default GitHub action Ubuntu Linux image, adding numpy and pandas to requirements.txt results in non-compatible versions of those l...
Open Graph Description: As AWS Lambda requires numpy and pandas are compiled in AWS compatible Linux images, and this action uses default GitHub action Ubuntu Linux image, adding numpy and pandas to requirements.txt resul...
X Description: As AWS Lambda requires numpy and pandas are compiled in AWS compatible Linux images, and this action uses default GitHub action Ubuntu Linux image, adding numpy and pandas to requirements.txt resul...
Opengraph URL: https://github.com/qubitro/action-lambda-python-zip/issues/2
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Numpy and pandas not usable in Lambda","articleBody":"As AWS Lambda requires numpy and pandas are compiled in AWS compatible Linux images, and this action uses default GitHub action Ubuntu Linux image, adding numpy and pandas to requirements.txt results in non-compatible versions of those libraries, and the subsequent errors when executing the Lambda code.\r\n\r\nThis should usually be worked arround by removing both numpy and pandas form requirements.txt of the project and creating and applying an additional layer with compatible versions of the lilbraries. In this case this is not a valid solution, as github action method update_function_layers() only add the newly created layer to the new Lambda function version.\r\n\r\nThere are several ways to solve this:\r\n- Execute github action in on AWS compatible Linux image (like lambci/lambda:python-build3.8), by defining a job and runs-on.\r\n- Allow an optional parameter INPUT_LAMBDA_ADDITIONAL_LAYERS to be used in method update_function_layers() this way:\r\n\r\n`update_function_layers(){ \r\n echo \"Using the layer in the function...\"\r\n aws lambda update-function-configuration --function-name \"${INPUT_LAMBDA_FUNCTION_NAME}\" --layers \"${INPUT_LAMBDA_LAYER_ARN}:${LAYER_VERSION} ${INPUT_LAMBDA_ADDITIONAL_LAYERS }\"\r\n}\r\n`\r\n- In the former method, obtain LATEST Lambda function version layers and add those (all but the newly created one) to the new Lambda function version.\r\n","author":{"url":"https://github.com/ebasanez","@type":"Person","name":"ebasanez"},"datePublished":"2020-07-19T09:47:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2/action-lambda-python-zip/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2a607f7d-1f8c-8c3d-0484-c1ff6e254d15 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89A4:3EAFB3:5FFD52:830256:6A569784 |
| html-safe-nonce | 461451b3affd929458b3bc00bbd834380ddb0a05a685bfd8910e1f255b877f58 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUE0OjNFQUZCMzo1RkZENTI6ODMwMjU2OjZBNTY5Nzg0IiwidmlzaXRvcl9pZCI6IjcwNzMwOTU5NzA0MDY3MDA5MzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b8b750b0a9393070191c0fcff7f37576a9852087664f838875bb8111e263f782 |
| hovercard-subject-tag | issue:660729946 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/qubitro/action-lambda-python-zip/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8805b095bf1dffea9c6d349175084aa6db12cf898d6901ae4b41be6b4182f9c7/qubitro/action-lambda-python-zip/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8805b095bf1dffea9c6d349175084aa6db12cf898d6901ae4b41be6b4182f9c7/qubitro/action-lambda-python-zip/issues/2 |
| og:image:alt | As AWS Lambda requires numpy and pandas are compiled in AWS compatible Linux images, and this action uses default GitHub action Ubuntu Linux image, adding numpy and pandas to requirements.txt resul... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ebasanez |
| hostname | github.com |
| expected-hostname | github.com |
| None | 647a25f437e2f54eccdd162bd007c8ae70f4235c4125dba0f4518747cc8b9615 |
| turbo-cache-control | no-preview |
| go-import | github.com/qubitro/action-lambda-python-zip git https://github.com/qubitro/action-lambda-python-zip.git |
| octolytics-dimension-user_id | 56159949 |
| octolytics-dimension-user_login | qubitro |
| octolytics-dimension-repository_id | 254471667 |
| octolytics-dimension-repository_nwo | qubitro/action-lambda-python-zip |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 254471667 |
| octolytics-dimension-repository_network_root_nwo | qubitro/action-lambda-python-zip |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 05adb86a60ce3d701e556eded3ab26300ec6bcc4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width