Closed Jerdak closed 10 years ago
This should've been fixed already in commit f2c1d73. Can you try upgrading your version of glfw.py?
Bugger, my bad. I'm maintaining code for both 2.7 and 3.4 and I didn't push the updated code to both versions. Sorry about that.
In Python 3.4 glfw.py[130]:
out = process.communicate(_to_char_p(filename))[0]
fails withTypeError: must be str, not bytes
As far as I can tell, when
universal_newlines=True
is set in the previous line it tellssubprocess
to use type_io.TextIOWrapper
forstdin
.TextIOWrapper
expects string input, not bytes:I can get around the problem by scrapping the use of the
_to_char_p
lambda and just passing the string filename.