Skip to content
New issue

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

Python v3 error: 'StdOutWrapper' object has no attribute 'flush' #475

Closed
dolan-a opened this issue Sep 10, 2016 · 2 comments
Closed

Python v3 error: 'StdOutWrapper' object has no attribute 'flush' #475

dolan-a opened this issue Sep 10, 2016 · 2 comments

Comments

@dolan-a
Copy link

dolan-a commented Sep 10, 2016

When using python v3 to run locust, I occasionally get the following error with locust immediately terminating:

[2016-09-10 14:52:30,443] mybox/ERROR/stderr: Exception ignored in:
[2016-09-10 14:52:30,443] mybox/ERROR/stderr: <locust.log.StdOutWrapper object at 0x106aa79b0>
[2016-09-10 14:52:30,443] mybox/ERROR/stderr:
[2016-09-10 14:52:30,443] mybox/ERROR/stderr: AttributeError
[2016-09-10 14:52:30,443] mybox/ERROR/stderr: :
[2016-09-10 14:52:30,443] mybox/ERROR/stderr: 'StdOutWrapper' object has no attribute 'flush'
[2016-09-10 14:52:30,443] mybox/ERROR/stderr:

It looks like flushing was changed in python v3. See this SO q/a for more info.

@cgoldberg
Copy link
Member

this was fixed when we added python3 support, but it looks like it was never merged to master:
548ffe7

@heyman
Copy link
Member

heyman commented Oct 7, 2016

Cherry-picked and pushed! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants