bedup icon indicating copy to clipboard operation
bedup copied to clipboard

'Select' object has no attribute 'count'

Open ashmanskas opened this issue 4 years ago • 2 comments

I have found bedup useful for years, though I hadn't run it for a while until just today. 'bedup scan' runs without issue, but 'bedup dedup' fails with "AttributeError: 'Select' object has no attribute 'count'". Is there a fix for this? Is anyone still maintaining bedup?

-Bill

===

Deduplicating filesystem Traceback (most recent call last): File "/home/ashmansk/bin/bedup", line 11, in sys.exit(script_main()) File "/home/ashmansk/.local/lib/python3.6/site-packages/bedup/main.py", li ne 497, in script_main sys.exit(main(sys.argv)) File "/home/ashmansk/.local/lib/python3.6/site-packages/bedup/main.py", li ne 486, in main return args.action(args) File "/home/ashmansk/.local/lib/python3.6/site-packages/bedup/main.py", li ne 196, in vol_cmd dedup_tracked(sess, volset, tt, defrag=args.defrag) File "/home/ashmansk/.local/lib/python3.6/site-packages/bedup/tracking.py", li ne 392, in dedup_tracked le = len(query) File "/home/ashmansk/.local/lib/python3.6/site-packages/bedup/tracking.py", li ne 293, in len return self.sess.execute(self.selectable.count()).scalar() AttributeError: 'Select' object has no attribute 'count'

ashmanskas avatar Oct 09 '21 14:10 ashmanskas

Same issue here. Using Arch Linux with latest package installed via pip.

crabdancing avatar Nov 11 '21 10:11 crabdancing

same here. bedup 0.10.1 on nixos

srl295 avatar Nov 07 '22 20:11 srl295