Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G goesr
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Ray Garcia
  • goesr
  • Issues
  • #41

Closed
Open
Created Mar 16, 2020 by David Hoese@davidhDeveloper

consolidate.py raises AttributeError with `-p` and `-A` flag

I'm learning how to use the consolidate script with the CSPP Geo Geo2Grid Viewer project. As a test I piped some inotify output to a file and then have been cating that to consolidate as a test. I've attached the file to this issue.

When I run:

cat test_inotifywatch.txt | python consolidate.py -t 60 -p -A

It returns a ton of stuff and then:

Traceback (most recent call last):
  File "consolidate.py", line 510, in <module>
    sys.exit(main())
  File "consolidate.py", line 506, in main
    return consolidate_paths(r, inputs, **kw)
  File "consolidate.py", line 405, in consolidate_paths
    maintenance(final=True)
  File "consolidate.py", line 379, in maintenance
    txt = expired(None, tag, key, entry, None)
  File "consolidate.py", line 139, in pug_format_emit_complete
    skey = ' '.join('{}={}'.format(k, repr(v)) for (k, v) in sorted(key.items()))
AttributeError: 'tuple' object has no attribute 'items'

Am I doing something wrong?

test_inotifywatch.txt

Edited Mar 16, 2020 by David Hoese
Assignee
Assign to
Time tracking