Closed vmirly closed 10 years ago
Hey, Vahid,
thanks for the comment! Have you installed the psutil
package?
You can quickly check by typing import psutil
into your Python shell. If it is not installed, you can simply do a pip install psutil
and it should work alright. Let me know if you have further troubles!
yup, that solved the issue! thanks :) The error message wasn't pointing me to psutil!
One more thing, what is this warning:
Warning: No valid output stream.
Nice! Hm, but about the warning: This actually shouldn't happen. Did you try to provide it a custom output stream?
When I look at my code, this should only happen if one of those statements (see below) is False:
>>> import os
>>> import sys
>>> os.isatty(sys.stderr.fileno())
True
>>> os.isatty(sys.stderr.fileno())
True
I tried to use pyprind to see the progress of reading a big file, and it works really nicely with monitor=False, but doesn't work if I use monitor=True:
Here is my source: