We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I have reload-os-env = true in my uwsgi.conf, starting uwsgi will result in
Traceback (most recent call last): File "/srv/knip/development/KnipKnap/lib/python3.4/os.py", line 637, in __setitem__ key = self.encodekey(key) File "/srv/knip/development/KnipKnap/lib/python3.4/os.py", line 706, in encode raise TypeError("str expected, not %s" % type(value).__name__) TypeError: str expected, not bytes
Apparently, plugins/python/pyloader.c
https://github.com/unbit/uwsgi/blob/master/plugins/python/pyloader.c#L147
passes a bytestring in stead of a normal string (I don't know enough Python C api to say anything more sensible than this :)
$ virtualenv -p /usr/bin/python3.4 .; bin/pip install uwsgi==2.0.12 ... $ bin/uwsgi -s s --reload-os-env --wsgi-file=anything .... Traceback (most recent call last): File "/srv/knip/development/KnipKnap/lib/python3.4/os.py", line 637, in __setitem__ key = self.encodekey(key) File "/srv/knip/development/KnipKnap/lib/python3.4/os.py", line 706, in encode raise TypeError("str expected, not %s" % type(value).__name__) TypeError: str expected, not bytes (repeated)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
If I have reload-os-env = true in my uwsgi.conf, starting uwsgi will result in
Apparently, plugins/python/pyloader.c
https://github.com/unbit/uwsgi/blob/master/plugins/python/pyloader.c#L147
passes a bytestring in stead of a normal string (I don't know enough Python C api to say anything more sensible than this :)
reproduce:
The text was updated successfully, but these errors were encountered: