Title: Question: When using layer is noDeploy option respected? · Issue #577 · serverless/serverless-python-requirements · GitHub
Open Graph Title: Question: When using layer is noDeploy option respected? · Issue #577 · serverless/serverless-python-requirements
X Title: Question: When using layer is noDeploy option respected? · Issue #577 · serverless/serverless-python-requirements
Description: I ask because I have the following configuration, which works fine: custom: pythonRequirements: useStaticCache: false # set to false, to force update noDeploy: - botocore - boto3 - botostubs - typing # imorted from a specific library cre...
Open Graph Description: I ask because I have the following configuration, which works fine: custom: pythonRequirements: useStaticCache: false # set to false, to force update noDeploy: - botocore - boto3 - botostubs - typi...
X Description: I ask because I have the following configuration, which works fine: custom: pythonRequirements: useStaticCache: false # set to false, to force update noDeploy: - botocore - boto3 - botostubs - typi...
Opengraph URL: https://github.com/serverless/serverless-python-requirements/issues/577
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Question: When using layer is noDeploy option respected?","articleBody":"I ask because I have the following configuration, which works fine:\r\n\r\n```\r\ncustom:\r\n pythonRequirements:\r\n useStaticCache: false # set to false, to force update\r\n noDeploy:\r\n - botocore\r\n - boto3\r\n - botostubs\r\n - typing # imorted from a specific library creates issues with python3.8 \r\n dockerizePip: true\r\n slim: true\r\n strip: false\r\n```\r\n\r\nAnd things work fine, however if I add\r\n```layer: true```\r\nIt seems that I'm getting the error from the typing library. \r\n\r\nHere is the error:\r\n\r\n\u003e {\"errorMessage\": \"type object 'Callable' has no attribute '_abc_registry'\", \"errorType\": \"AttributeError\", \"stackTrace\": [\" File \\\"/var/lang/lib/python3.8/imp.py\\\", line 234, in load_module\\n return load_source(name, filename, file)\\n\", \" File \\\"/var/lang/lib/python3.8/imp.py\\\", line 171, in load_source\\n module = _load(spec)\\n\", \" File \\\"\u003cfrozen importlib._bootstrap\u003e\\\", line 702, in _load\\n\", \" File \\\"\u003cfrozen importlib._bootstrap\u003e\\\", line 671, in _load_unlocked\\n\", \" File \\\"\u003cfrozen importlib._bootstrap_external\u003e\\\", line 783, in exec_module\\n\", \" File \\\"\u003cfrozen importlib._bootstrap\u003e\\\", line 219, in _call_with_frames_removed\\n\", \" File \\\"/var/task/handler.py\\\", line 5, in \u003cmodule\u003e\\n import rsa\\n\", \" File \\\"/opt/python/rsa/__init__.py\\\", line 24, in \u003cmodule\u003e\\n from rsa.key import newkeys, PrivateKey, PublicKey\\n\", \" File \\\"/opt/python/rsa/key.py\\\", line 35, in \u003cmodule\u003e\\n import typing\\n\", \" File \\\"/opt/python/typing.py\\\", line 1359, in \u003cmodule\u003e\\n class Callable(extra=collections_abc.Callable, metaclass=CallableMeta):\\n\", \" File \\\"**/opt/python/typing.py**\\\", line 1007, in __new__\\n self._abc_registry = extra._abc_registry\\n\"]}\r\n\r\n\r\n(BTW, I also specify the required changes to the lambda, so it is using the layer:\r\n```\r\nlayers:\r\n - { Ref: PythonRequirementsLambdaLayer }\r\n```","author":{"url":"https://github.com/tgjorgoski","@type":"Person","name":"tgjorgoski"},"datePublished":"2020-12-13T09:11:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/577/serverless-python-requirements/issues/577"}
| 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:6da20c8a-6105-188f-e5ae-d436fecf764f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C390:1DD3:64648C:810622:697E1FEF |
| html-safe-nonce | b12fb203dbf4bc28c3b91f26965518bc913d987cdd61846bfb06edb9786b3734 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzkwOjFERDM6NjQ2NDhDOjgxMDYyMjo2OTdFMUZFRiIsInZpc2l0b3JfaWQiOiI4Nzg5NzEwNjM4MTUxNTA3OTUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 72fc89434c61661c871b3652443e2cf290d5af40eaaaffb8abfb8884c263becd |
| hovercard-subject-tag | issue:765204739 |
| 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/serverless/serverless-python-requirements/577/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7175bfbf591065033ba6beba07d0535aa6ba993c5fce13e6b48fbdc08bd7fc01/serverless/serverless-python-requirements/issues/577 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7175bfbf591065033ba6beba07d0535aa6ba993c5fce13e6b48fbdc08bd7fc01/serverless/serverless-python-requirements/issues/577 |
| og:image:alt | I ask because I have the following configuration, which works fine: custom: pythonRequirements: useStaticCache: false # set to false, to force update noDeploy: - botocore - boto3 - botostubs - typi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tgjorgoski |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/serverless/serverless-python-requirements git https://github.com/serverless/serverless-python-requirements.git |
| octolytics-dimension-user_id | 13742415 |
| octolytics-dimension-user_login | serverless |
| octolytics-dimension-repository_id | 76508594 |
| octolytics-dimension-repository_nwo | serverless/serverless-python-requirements |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 76508594 |
| octolytics-dimension-repository_network_root_nwo | serverless/serverless-python-requirements |
| 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 | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width