Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upZip file - Windows paths #1358
Open
Zip file - Windows paths #1358
Comments
Generally uses of |
aldokkani
pushed a commit
to aldokkani/Zappa
that referenced
this issue
Jul 20, 2018
aldokkani
pushed a commit
to aldokkani/Zappa
that referenced
this issue
Jul 20, 2018
aldokkani
pushed a commit
to aldokkani/Zappa
that referenced
this issue
Mar 4, 2019
aldokkani
pushed a commit
to aldokkani/Zappa
that referenced
this issue
Mar 4, 2019
drummonds
added a commit
to drummonds/Zappa
that referenced
this issue
Mar 6, 2019
Replace windows path separator with posix separator in Zip files Miserlou#1358
Is no longer relevant? Maybe better to close this issue? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
When deploying a Django app (over 50mb) from a Windows 10 machine the tarball retains the Windows directory separators '\\', when deployed to Lambda this causes the error "No module named 'django.core.wsgi': ModuleNotFoundError"
Expected Behavior
Actual Behavior
Possible Fix
In core.py, line 683 can be replaced with:
tarinfo = tarfile.TarInfo(posixpath.join(root.replace(temp_project_path, '').lstrip(os.sep).replace('\\', '/'), filename))
Which fixed it for me but is quite hacky and probably not that robust.
Steps to Reproduce
1.
zappa deploy dev
on Windows 10 machine with app over 50mbYour Environment
zappa_settings.py
: