Skip to content

TypeError: 'int' object is not iterable #171

@sukramblak

Description

@sukramblak

i'm getting this error all the time when i try a second create.

"client" (debian wheezy)

  • python 3.2
  • attic 0.14 (installed with pip)

"server" (arch )

  • python 3.4
  • attic 0.14 (installed using aur)

The following complete without errors (and i can verify the existence of the repo on the server)

  • attic init -v --encryption=keyfile USER@SERVER:Dropbox/Backup/Attic/multi-computer-enc-repos.attic
  • attic create --stats -v USER@SERVER:Dropbox/Backup/Attic/multi-computer-enc-repos.attic::sd-sbin /sbin

but a second create .... (example:

  • attic create --stats -v USER@SERVER:Dropbox/Backup/Attic/multi-computer-enc-repos.attic::sd-etc /etc

results in the following Outout.

/etc
/etc/Bastille
/etc/Bastille/bastille-firewall.cfg
Traceback (most recent call last):
  File "/usr/local/bin/attic", line 3, in <module>
    main()
  File "/usr/local/lib/python3.2/dist-packages/attic/archiver.py", line 727, in main
    exit_code = archiver.run(sys.argv[1:])
  File "/usr/local/lib/python3.2/dist-packages/attic/archiver.py", line 717, in run
    return args.func(args)
  File "/usr/local/lib/python3.2/dist-packages/attic/archiver.py", line 128, in do_create
    self._process(archive, cache, args.excludes, args.exclude_caches, skip_inodes, path, restrict_dev)
  File "/usr/local/lib/python3.2/dist-packages/attic/archiver.py", line 177, in _process
    os.path.join(path, filename), restrict_dev)
  File "/usr/local/lib/python3.2/dist-packages/attic/archiver.py", line 177, in _process
    os.path.join(path, filename), restrict_dev)
  File "/usr/local/lib/python3.2/dist-packages/attic/archiver.py", line 163, in _process
    archive.process_file(path, st, cache)
  File "/usr/local/lib/python3.2/dist-packages/attic/archive.py", line 391, in process_file
    ids = cache.file_known_and_unchanged(path_hash, st)
  File "/usr/local/lib/python3.2/dist-packages/attic/cache.py", line 210, in file_known_and_unchanged
    self._read_files()
  File "/usr/local/lib/python3.2/dist-packages/attic/cache.py", line 84, in _read_files
    for path_hash, item in u:
TypeError: 'int' object is not iterable

nearly the same output show up on a check

  • attic check USER@SERVER:Dropbox/Backup/Attic/multi-computer-enc-repos.attic
Starting repository check...
Repository check complete, no problems found.
Starting archive consistency check...
Analyzing archive sd-sbin (1/1)
Traceback (most recent call last):
  File "/usr/local/bin/attic", line 3, in <module>
    main()
  File "/usr/local/lib/python3.2/dist-packages/attic/archiver.py", line 727, in main
    exit_code = archiver.run(sys.argv[1:])
  File "/usr/local/lib/python3.2/dist-packages/attic/archiver.py", line 717, in run
    return args.func(args)
  File "/usr/local/lib/python3.2/dist-packages/attic/archiver.py", line 84, in do_check
    if not args.repo_only and not ArchiveChecker().check(repository, repair=args.repair):
  File "/usr/local/lib/python3.2/dist-packages/attic/archive.py", line 536, in check
    self.rebuild_refcounts()
  File "/usr/local/lib/python3.2/dist-packages/attic/archive.py", line 686, in rebuild_refcounts
    if b'chunks' in item:
TypeError: argument of type 'int' is not iterable

Could you tell please tell me if this a bug (which i was unable to find in the other "issues" on this page) or did i do something wrong during compile or usage?

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