Skip to content

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

Description

@ashmanskas

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions