2016-11-10, 23:09
(2016-11-10, 22:56)jacobh Wrote: Yes, this is exactly what the code looks like.
I'm not a python guy, so I don't know if there are differences in how the '' might be interpreted. On my Lamda setup, the runtime is Python 2.7 and the handler is wsgi.lambda_handler.
They're just empty strings. It won't print them as "None" like it's doing for you.
SCHEME = os.getenv('KODI_SCHEME') will return None if it's unset, and "if not SCHEME" would/should catch that and set SCHEME to 'http'.
You could print the value of SCHEME and SUBPATH just after the os.getenv() calls and check your log if you wish to help figure out what's causing this.
(2016-11-10, 22:56)jacobh Wrote: I also think it's the latest because there was a change in the lambda-deploy code from when I tried this a week ago or so. This time I had to install the Visual C python compiler for it to work.
Yeah, because python-Levenshtein is written in C. I presume you could also install a binary package though and it should work.