Bug 1274517 - koji fails with a TypeError doing a scratch build
Summary: koji fails with a TypeError doing a scratch build
Keywords:
Status: CLOSED DUPLICATE of bug 1186994
Alias: None
Product: Fedora
Classification: Fedora
Component: koji
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dennis Gilmore
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-22 20:50 UTC by Tom Hughes
Modified: 2015-11-24 12:17 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-11-24 12:17:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tom Hughes 2015-10-22 20:50:22 UTC
Running a scratch build fails with a TypeError:

bericote [~] % koji --debug build --scratch rawhide rpm/SRPMS/nodejs-foreach-2.0.5-1.fc23.src.rpm
successfully connected to hub
Uploading srpm: rpm/SRPMS/nodejs-foreach-2.0.5-1.fc23.src.rpm
2015-10-22 21:46:00,215 [DEBUG] koji: Fast upload: rpm/SRPMS/nodejs-foreach-2.0.5-1.fc23.src.rpm to cli-build/1445546759.859138.McGduCNV/nodejs-foreach-2.0.5-1.fc23.src.rpm
2015-10-22 21:46:00,929 [DEBUG] koji: Fast upload: rpm/SRPMS/nodejs-foreach-2.0.5-1.fc23.src.rpm complete. 9862 bytes in 0.4 seconds

Created task: 11546927
Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=11546927
Watching tasks (this may be safely interrupted)...
11546927 build (rawhide, nodejs-foreach-2.0.5-1.fc23.src.rpm): free
Traceback (most recent call last):
  File "/usr/bin/koji", line 6655, in <module>
    rv = locals()[command].__call__(options, session, args)
  File "/usr/bin/koji", line 952, in handle_build
    return watch_tasks(session, [task_id], quiet=build_opts.quiet)
  File "/usr/bin/koji", line 456, in watch_tasks
    changed = task.update()
  File "/usr/bin/koji", line 361, in update
    self.info = self.session.getTaskInfo(self.id, request=True)
  File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 1577, in __call__
    return self.__func(self.__name,args,opts)
  File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 1952, in _callMethod
    iter(arg)
TypeError: 'int' object is not iterable

Comment 1 Tom Hughes 2015-10-22 21:16:57 UTC
Should have said, the koji version is koji-1.10.0-2.fc23.noarch.

Comment 2 Lubomir Rintel 2015-11-24 12:17:43 UTC
Same issue as bug #1186994, only the error reporting is broken. Patches for both issues there.

*** This bug has been marked as a duplicate of bug 1186994 ***


Note You need to log in before you can comment on or make changes to this bug.