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

aws-python-rest-api-with-pynamodb #433

Open
ConstantinoSchillebeeckxSimpleRose opened this issue Aug 15, 2019 · 0 comments
Open

aws-python-rest-api-with-pynamodb #433

ConstantinoSchillebeeckxSimpleRose opened this issue Aug 15, 2019 · 0 comments

Comments

@ConstantinoSchillebeeckxSimpleRose
Copy link

ConstantinoSchillebeeckxSimpleRose commented Aug 15, 2019

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

  1. manually install the plugin: sls plugin install -n serverless-python-requirements
  2. 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=  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant