Title: ThreadPool() is not supported on AWS Lambda using Python 3.7 and above · Issue #1 · DocSpring/docspring-python · GitHub
Open Graph Title: ThreadPool() is not supported on AWS Lambda using Python 3.7 and above · Issue #1 · DocSpring/docspring-python
X Title: ThreadPool() is not supported on AWS Lambda using Python 3.7 and above · Issue #1 · DocSpring/docspring-python
Description: We use docspring for filling out documents in our event-driven python system that runs within AWS Lambdas. Recently, when upgrading from Python 3.6, your component started failing with the following callstack: File "/var/task/api/externa...
Open Graph Description: We use docspring for filling out documents in our event-driven python system that runs within AWS Lambdas. Recently, when upgrading from Python 3.6, your component started failing with the followin...
X Description: We use docspring for filling out documents in our event-driven python system that runs within AWS Lambdas. Recently, when upgrading from Python 3.6, your component started failing with the followin...
Opengraph URL: https://github.com/DocSpring/docspring-python/issues/1
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ThreadPool() is not supported on AWS Lambda using Python 3.7 and above ","articleBody":"We use docspring for filling out documents in our event-driven python system that runs within AWS Lambdas.\r\n\r\nRecently, when upgrading from Python 3.6, your component started failing with the following callstack:\r\n\r\n```\r\nFile \"/var/task/api/external/docspring_api.py\", line 10, in __init__ self._client = docspring.Client() \r\nFile \"/var/task/docspring/api/pdf_api.py\", line 32, in __init__ api_client = ApiClient() \r\nFile \"/var/task/docspring/api_client.py\", line 68, in __init__ self.pool = ThreadPool() \r\nFile \"/var/lang/lib/python3.8/multiprocessing/pool.py\", line 925, in __init__ Pool.__init__(self, processes, initializer, initargs) \r\nFile \"/var/lang/lib/python3.8/multiprocessing/pool.py\", line 196, in __init__ self._change_notifier = self._ctx.SimpleQueue() \r\nFile \"/var/lang/lib/python3.8/multiprocessing/context.py\", line 113, in SimpleQueue return SimpleQueue(ctx=self.get_context()) \r\nFile \"/var/lang/lib/python3.8/multiprocessing/queues.py\", line 336, in __init__ self._rlock = ctx.Lock() \r\nFile \"/var/lang/lib/python3.8/multiprocessing/context.py\", line 68, in Lock return Lock(ctx=self.get_context()) File \"/var/lang/lib/python3.8/multiprocessing/synchronize.py\", line 162, in __init__ SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx) \r\nFile \"/var/lang/lib/python3.8/multiprocessing/synchronize.py\", line 57, in __init__ sl = self._semlock = _multiprocessing.SemLock( OSError: [Errno 38] Function not implemented\r\n```\r\n\r\nThis occurs because the lambda execution environment does not support shared memory.\r\n\r\nMore: https://aws.amazon.com/blogs/compute/parallel-processing-in-python-with-aws-lambda/","author":{"url":"https://github.com/mdw123","@type":"Person","name":"mdw123"},"datePublished":"2022-05-13T21:56:58Z","url":"https://github.com/DocSpring/docspring-python/issues/1"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:6f4c481d-d239-2b22-8f1a-6aa61bceaeda |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0F4:19854D:24859C:304A78:6B037562 |
| html-safe-nonce | 97567c6fa68236c39fea47a83ef3e246a620730b9ce06a88e0a48f43775d3c62 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEY0OjE5ODU0RDoyNDg1OUM6MzA0QTc4OjZCMDM3NTYyIiwidmlzaXRvcl9pZCI6IjM1MDgzNjYzMzI3MDgyMjIzMDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ac6447802ea8c84ffcee24441a5cddf32da32fc5bf024537ce9f1b0b1c65b5a7 |
| hovercard-subject-tag | issue:1235747297 |
| 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/DocSpring/docspring-python/1/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7ed1af8f6d681301ae673cfb685fa0959e50b0dfa4921e07168a22c1d3fe539b/DocSpring/docspring-python/issues/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7ed1af8f6d681301ae673cfb685fa0959e50b0dfa4921e07168a22c1d3fe539b/DocSpring/docspring-python/issues/1 |
| og:image:alt | We use docspring for filling out documents in our event-driven python system that runs within AWS Lambdas. Recently, when upgrading from Python 3.6, your component started failing with the followin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mdw123 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/DocSpring/docspring-python git https://github.com/DocSpring/docspring-python.git |
| octolytics-dimension-user_id | 32060441 |
| octolytics-dimension-user_login | DocSpring |
| octolytics-dimension-repository_id | 220522781 |
| octolytics-dimension-repository_nwo | DocSpring/docspring-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 220522781 |
| octolytics-dimension-repository_network_root_nwo | DocSpring/docspring-python |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width