'chalice package' fails
See original GitHub issueHi,
I’m trying to run the command chalice package --merge-template resource-policies/resource-policy-name.json --stage name lz-dev dist/name
But it’s been failing with the traceback
Creating deployment package.
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/chalice/cli/__init__.py", line 485, in main
return cli(obj={})
File "/usr/lib/python3.6/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.6/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.6/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/lib/python3.6/site-packages/chalice/cli/__init__.py", line 414, in package
packager.package_app(config, out, stage)
File "/usr/lib/python3.6/site-packages/chalice/package.py", line 919, in package_app
config, chalice_stage_name)
File "/usr/lib/python3.6/site-packages/chalice/package.py", line 82, in construct_resources
self._build_stage.execute(config, resources)
File "/usr/lib/python3.6/site-packages/chalice/deploy/deployer.py", line 995, in execute
step.handle(config, resource)
File "/usr/lib/python3.6/site-packages/chalice/deploy/deployer.py", line 851, in handle
handler(config, resource)
File "/usr/lib/python3.6/site-packages/chalice/deploy/deployer.py", line 878, in handle_deploymentpackage
config.project_dir, config.lambda_python_version)
File "/usr/lib/python3.6/site-packages/chalice/deploy/packager.py", line 94, in create_deployment_package
abi, requirements_filepath, site_packages_dir)
File "/usr/lib/python3.6/site-packages/chalice/deploy/packager.py", line 506, in build_site_packages
abi, tempdir, requirements_filepath)
File "/usr/lib/python3.6/site-packages/chalice/deploy/packager.py", line 369, in _download_dependencies
requirements_filename, directory)
File "/usr/lib/python3.6/site-packages/chalice/deploy/packager.py", line 327, in _download_all_dependencies
self._pip.download_all_dependencies(requirements_filename, directory)
File "/usr/lib/python3.6/site-packages/chalice/deploy/packager.py", line 745, in download_all_dependencies
raise PackageDownloadError(error)
chalice.deploy.packager.PackageDownloadError: Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: 'module' object is not callable
Any idea what’s happening? I haven’t changed the configuration or code
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
'chalice package' fails · Issue #1272 - GitHub
Hi, I'm trying to run the command chalice package --merge-template ... But it's been failing with the traceback Creating deployment package.
Read more >App Packaging — AWS Chalice
Chalice allows you to clearly separate application specific modules and packages you are writing from 3rd party package dependencies. By default, Chalice will ......
Read more >Chalice Packaging Problems - python - Stack Overflow
Looking at what you have in your directory listing you provided, I noticed you don't have a init.py file. This file identifies the...
Read more >awslabs/chalice - Gitter
No dice, I installed python3 on the amazonlinux docker container but I'm getting the exact same error regarding inflection.py not being found.
Read more >Troubleshoot deployment issues in Lambda
Error : [Errno 13] Permission denied: '/var/task/function.py'. The Lambda runtime needs permission to read the files in your deployment package.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Awesome, thanks for digging in to this. We’ll get this updated.
This should be fixed in Chalice 1.12 now. Thanks for the patch.