fslint
fslint copied to clipboard
AttributeError: '_io.TextIOWrapper' object has no attribute 'xreadlines'
Original issue 65 created by pixelb on 2011-04-14T19:17:38.000Z:
What steps will reproduce the problem?
- Boot minimal Arch linux
- start fslint-gui with python2
- Click find on the duplicate-tab
What is the expected output? What do you see instead? Several files, no errors
In the error pane: Traceback (most recent call last): File "/usr/local/bin/fslint/fslint/supprt/rmlint/merge_hardlinks", line 57, in <module> for line in sys.stdin.xreadlines(): AttributeError: '_io.TextIOWrapper' object has no attribute 'xreadlines' sort: write failed: standard output: Broken pipe sort: write error
What version of the product are you using? On what operating system? FSlint 2.42 Linux 2.6.38-ARCH # 1 SMP PREEMPT Wed Mar 30 07:14:27 UTC 2011 i686 AMD Athlon(tm) XP 3200+ AuthenticAMD GNU/Linux
Please provide any additional information below. Its an Arch system with almost nothing additional packages installed.
Comment #1 originally posted by pixelb on 2011-04-15T00:52:18.000Z:
That's because the default python interpreter on arch must be python3 I guess if you modify all the fslint python scripts to start with python2 rather than python, it would solve it.
I'd do that now, but I note that debian say they're not doing this as this pep hasn't been agreed on:
http://www.python.org/dev/peps/pep-0394/
yes, I had to run:
sudo perl -pi -e 's|/usr/bin/env python|/usr/bin/env python2|' /usr/share/fslint/fslint/supprt/rmlint/* /usr/share/fslint/fslint/fstool/dupwaste /usr/share/fslint/fslint/supprt/md5sum_approx /usr/bin/fslint-gui
now it works again.
It looks like it has been fixed in 2.46 https://github.com/pixelb/fslint/issues/111
This issue can be closed now.