You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I tried using your library but when I tried running under windows I got the following error:
Traceback (most recent call last): File "test.py", line 12, in <module> click.echo('Continue? [yn] ', nl=False) File "xxx\Lib\site-packages\click\utils.py", line 217, in echo file = _default_text_stdout() File "xxx\Lib\site-packages\click\_compat.py", line 621, in func rv = wrapper_func() File "xxx\Lib\site-packages\click\_compat.py", line 385, in get_text_stdout rv = _get_windows_console_stream(sys.stdout, encoding, errors) File "xxx\Lib\site-packages\click\_winconsole.py", line 264, in _get_windows_console_stream f = getattr(f, 'buffer') AttributeError: 'TextTranscodingWrapper' object has no attribute 'buffer'
Traceback (most recent call last):
File "D:\Code\GitHub\StarCraft-Casting-Tool\scctool\tasks\webapp.py", line 189, in run
self.application.run(port=65010)
File "c:\users\tasch\appdata\local\programs\python\python36-32\lib\site-packages\flask\app.py", line 938, in run
cli.show_server_banner(self.env, self.debug, self.name, False)
File "c:\users\tasch\appdata\local\programs\python\python36-32\lib\site-packages\flask\cli.py", line 629, in show_server_banner
click.echo(message)
File "c:\users\tasch\appdata\local\programs\python\python36-32\lib\site-packages\click\utils.py", line 217, in echo
file = _default_text_stdout()
File "c:\users\tasch\appdata\local\programs\python\python36-32\lib\site-packages\click\_compat.py", line 621, in func
rv = wrapper_func()
File "c:\users\tasch\appdata\local\programs\python\python36-32\lib\site-packages\click\_compat.py", line 385, in get_text_stdout
rv = _get_windows_console_stream(sys.stdout, encoding, errors)
File "c:\users\tasch\appdata\local\programs\python\python36-32\lib\site-packages\click\_winconsole.py", line 264, in _get_windows_console_stream
f = getattr(f, 'buffer')
AttributeError: 'FileWrapper' object has no attribute 'buffer'
File "C:\Python36-32\workfiles\ch05\hello_flask.py", line 10, in <module> app.run() File "C:\Python36-32\lib\site-packages\flask\app.py", line 938, in run cli.show_server_banner(self.env, self.debug, self.name, False) File "C:\Python36-32\lib\site-packages\flask\cli.py", line 629, in show_server_banner click.echo(message) File "C:\Python36-32\lib\site-packages\click\utils.py", line 217, in echo file = _default_text_stdout() File "C:\Python36-32\lib\site-packages\click\_compat.py", line 621, in func rv = wrapper_func() File "C:\Python36-32\lib\site-packages\click\_compat.py", line 385, in get_text_stdout rv = _get_windows_console_stream(sys.stdout, encoding, errors) File "C:\Python36-32\lib\site-packages\click\_winconsole.py", line 261, in _get_windows_console_stream func = _stream_factories.get(f.fileno())@2press Thanks a lot.
Activity
Fix #744
untitaker commentedon Feb 27, 2017
Done, thanks!
2press commentedon May 26, 2018
Similar error here @untitaker
2press commentedon May 26, 2018
Fixed this by updating to the current master branch, but now I encounter this error:
niuneo commentedon Jun 15, 2018
I encounter this similar issue. Can you explain in detail how you fixed it? @2press
niuneo commentedon Jun 15, 2018
File "C:\Python36-32\workfiles\ch05\hello_flask.py", line 10, in <module> app.run() File "C:\Python36-32\lib\site-packages\flask\app.py", line 938, in run cli.show_server_banner(self.env, self.debug, self.name, False) File "C:\Python36-32\lib\site-packages\flask\cli.py", line 629, in show_server_banner click.echo(message) File "C:\Python36-32\lib\site-packages\click\utils.py", line 217, in echo file = _default_text_stdout() File "C:\Python36-32\lib\site-packages\click\_compat.py", line 621, in func rv = wrapper_func() File "C:\Python36-32\lib\site-packages\click\_compat.py", line 385, in get_text_stdout rv = _get_windows_console_stream(sys.stdout, encoding, errors) File "C:\Python36-32\lib\site-packages\click\_winconsole.py", line 261, in _get_windows_console_stream func = _stream_factories.get(f.fileno())@2press Thanks a lot.Merge #1576
Merge #37
Update click to 7.0 (#97)