[Migrated] zappa package production
fails when using --no_venv
#850
Labels
needs-review
Needs attention from a maintainer
Originally from: Miserlou/Zappa#2097 by woodrad
Context
Running
zappa package production --no_venv
throwsTypeError: expected str, bytes or os.PathLike object, not NoneType
. This error happens only when running outside of a virtual environment.zappa package production
works as expected.While I believe running
zappa
outside of a virtual environment using--no_venv
is supported (per #835), I understand why this would be a low-priority issue.Expected Behavior
zappa
builds an application package.Actual Behavior
zappa
throws the following error:Possible Fix
If running
zappa package
outside of a virtual environment is not supported, then the resolution to this issue would be removing support forzappa package --no_venv
or reverting #1891.Another option is adding a conditional check to
splitpath()
to see whether we are running in a virtual environment before runningsplitpath(venv)
.What appetite do the project maintainers have for supporting
zappa
use outside of virtual environments?Your Environment
3.8-alpine3.11
Docker image)pip freeze
:zappa_settings.json
: the error can be reproduced no matter what's inzappa_settings.json
The text was updated successfully, but these errors were encountered: