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

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

Open
ashmanskas opened this issue Oct 9, 2021 · 2 comments
Open

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

ashmanskas opened this issue Oct 9, 2021 · 2 comments

Comments

@ashmanskas
Copy link

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
Copy link

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

@srl295
Copy link

srl295 commented Nov 7, 2022

same here. bedup 0.10.1 on nixos

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

3 participants