g2p / bedup

Btrfs deduplication
http://pypi.python.org/pypi/bedup
GNU General Public License v2.0
322 stars 50 forks source link

'Select' object has no attribute 'count' #105

Open ashmanskas opened 3 years ago

ashmanskas commented 3 years ago

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'

crabdancing commented 3 years ago

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

srl295 commented 2 years ago

same here. bedup 0.10.1 on nixos