★ wanayoo — archive 1999 https://github.com/nficano/python-lambda/issues/128Nouvelle recherche | Portail wanayoo
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

AttributeError: 'int' object has no attribute 'decode' #128

Closed
romelgomez opened this issue Sep 20, 2018 · 1 comment
Closed

AttributeError: 'int' object has no attribute 'decode' #128

romelgomez opened this issue Sep 20, 2018 · 1 comment

Comments

@romelgomez
Copy link

@romelgomez romelgomez commented Sep 20, 2018

After doing a fresh Installation, and run: lambda deploy

websocket-client==0.53.0
Werkzeug==0.14.1
whichcraft==0.4.1
wrapt==1.10.11
yarl==1.2.6
Traceback (most recent call last):
  File "/home/romel/.local/bin/lambda", line 237, in <module>
    cli()
  File "/home/romel/.local/lib/python3.6/site-packages/click/core.py", line722, in __call__
    return self.main(*args, **kwargs)
  File "/home/romel/.local/lib/python3.6/site-packages/click/core.py", line697, in main
    rv = self.invoke(ctx)
  File "/home/romel/.local/lib/python3.6/site-packages/click/core.py", line1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/romel/.local/lib/python3.6/site-packages/click/core.py", line895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/romel/.local/lib/python3.6/site-packages/click/core.py", line535, in invoke
    return callback(*args, **kwargs)
  File "/home/romel/.local/bin/lambda", line 135, in deploy
    preserve_vpc=preserve_vpc,
  File "/home/romel/.local/lib/python3.6/site-packages/aws_lambda/aws_lambda.py", line 111, in deploy
    local_package=local_package,
  File "/home/romel/.local/lib/python3.6/site-packages/aws_lambda/aws_lambda.py", line 301, in build
    local_package=local_package,
  File "/home/romel/.local/lib/python3.6/site-packages/aws_lambda/aws_lambda.py", line 438, in pip_install_to_target
    packages.extend(pkgStr.decode('utf-8').splitlines())
AttributeError: 'int' object has no attribute 'decode'

Y get the error AttributeError: 'int' object has no attribute 'decode'

soapergem added a commit to soapergem/python-lambda that referenced this issue Sep 20, 2018
soapergem added a commit that referenced this issue Sep 20, 2018
fixes for #128 and #104 and #103
@soapergem
Copy link
Collaborator

@soapergem soapergem commented Sep 20, 2018

Whoops, yeah we introduced that problem yesterday into 3.2.5 while patching another issue. The reason it wasn't caught is because I tested it with the -r flag to specify a requirements.txt file. I can see that if you omit this flag it wouldn't have worked, because we were mistakenly using subprocess.check_call() instead of subprocess.check_output().

This has been fixed in 3.2.6 which I just released. If you ensure that you can download the (new) latest release it should be fixed for you now. Thanks for reporting.

@soapergem soapergem closed this Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.