-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
zappa package production
fails when using --no_venv
#2097
Comments
I have a similar issue. I'm trying to package my app from inside a Docker container. @jneves I checked out your branch and unfortunately it didn't resolve the issue.
|
monkut
added a commit
to monkut/Zappa
that referenced
this issue
Jan 28, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: