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 v2 exception on import ipdb - StdOutWrapper has no attribute 'flush' #526

Closed
goishin opened this issue Jan 26, 2017 · 2 comments
Closed

Comments

@goishin
Copy link

goishin commented Jan 26, 2017

When I import ipdb, I get an exception stating that StdOutWrapper has no attribute 'flush'. I know that there was a similar bug filed for the exact same issue, only with Python v3. That was closed a few months ago, and I wanted to simply append my comment to that ticket and state that I'm using Python 2.7.x, however I was unable to see how to add comments to a closed ticket:
#475
So, I'm opening a new ticket. Sorry about that. Anyway, I also have the locustio codebase, and I can clearly see that the class StdOutWrapper does indeed have a flush function on it (log.py:line 28). And I've pip --upgraded everything (ipdb==0.10.2, locustio==0.7.5).
But I still get the exception. Whuuuuu????!!!

@cgoldberg
Copy link
Member

I can clearly see that the class StdOutWrapper
does indeed have a flush function on it

you are looking at the wrong version of the source code :)

flush() wasn't in 0.7.5:
The patch to add it wasn't merged until Oct 7, 2016
https://github.com/locustio/locust/commits/master/locust/log.py

@goishin
Copy link
Author

goishin commented Jan 30, 2017

Yeah. That was it. Thanks @cgoldberg

@goishin goishin closed this as completed Jan 30, 2017
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

2 participants