serverless / serverless/examples
aws-python-rest-api-with-pynamodb
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 11.5k
- Forks
- 4.4k
- Avg merge
- 2h 55m
- Merged PRs (30d)
- 3
Description
Following the aws-python-rest-api-with-pynamodb example:
npm install
serverless deploy
I get
Serverless: Parsing Python requirements.txt
Serverless: Installing required Python packages for runtime python2.7...
/usr/local/lib/node_modules/serverless/lib/classes/Error.js:94
throw new Error(inspect(e));
^
Error: <Buffer 2f 53 79 73 74 65 6d 2f 4c 69 62 72 61 72 79 2f 46 72 61 6d 65 77 6f 72 6b 73 2f 50 79 74 68 6f 6e 2e 66 72 61 6d 65 77 6f 72 6b 2f 56 65 72 73 69 6f ... >
at process.module.exports.logError.e (/usr/local/lib/node_modules/serverless/lib/classes/Error.js:94:11)
at process.emit (events.js:198:13)
at process.emit (/usr/local/lib/node_modules/serverless/node_modules/source-map-support/source-map-support.js:465:21)
at /usr/local/lib/node_modules/serverless/node_modules/bluebird/js/release/debuggability.js:199:33
at activeFireEvent (/usr/local/lib/node_modules/serverless/node_modules/bluebird/js/release/debuggability.js:242:44)
at fireRejectionEvent (/usr/local/lib/node_modules/serverless/node_modules/bluebird/js/release/debuggability.js:632:14)
at Promise._notifyUnhandledRejection (/usr/local/lib/node_modules/serverless/node_modules/bluebird/js/release/debuggability.js:65:9)
at Timeout._onTimeout (/usr/local/lib/node_modules/serverless/node_modules/bluebird/js/release/debuggability.js:44:14)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
BTW
Your Environment Information ---------------------------
Operating System: darwin
Node Version: 10.16.2
Serverless Version: 1.49.0
Enterprise Plugin Version: 1.3.8
Platform SDK Version: 2.1.0
Solution
- manually install the plugin:
sls plugin install -n serverless-python-requirements - in case you're on a mac, you may have to create a setup.cfg file and put the following contents in it
[install]
prefix=
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked aws-python-pynamodb-s3-sigurl example, its requirements.txt, and the deployment commands shown in the report. Reproduce the failure with npm install and serverless deploy on the stated environment, then check the documented serverless-python-requirements plugin and setup.cfg workaround. Done means the example deploys successfully without undocumented manual steps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100