Bug 880987 - TypeError: 'NoneType' object is not iterable if no updates to download/install
Summary: TypeError: 'NoneType' object is not iterable if no updates to download/install
Keywords:
Status: CLOSED DUPLICATE of bug 895967
Alias: None
Product: Fedora
Classification: Fedora
Component: fedup
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Will Woods
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ff5394cc06a3c029b498e98c3e2...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-28 10:51 UTC by D. Charles Pyle
Modified: 2013-01-23 18:32 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-23 18:32:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (757 bytes, text/plain)
2012-11-28 10:51 UTC, D. Charles Pyle
no flags Details
File: core_backtrace (339 bytes, text/plain)
2012-11-28 10:51 UTC, D. Charles Pyle
no flags Details
File: environ (1.80 KB, text/plain)
2012-11-28 10:51 UTC, D. Charles Pyle
no flags Details
File: smolt_data (2.78 KB, text/plain)
2012-11-28 10:51 UTC, D. Charles Pyle
no flags Details

Description D. Charles Pyle 2012-11-28 10:51:29 UTC
Description of problem:
I tried to run fedup-cli. Got this error.

Version-Release number of selected component:
fedup-0.7.1-1.fc18

Additional info:
cmdline:        /usr/bin/python /bin/fedup-cli --network 18 --debuglog fedupdebug.log --instrepo http://dl.fedoraproject.org/pub/fedora/linux/releases/test/18-Beta/Fedora/x86_64/os
executable:     /bin/fedup-cli
kernel:         3.6.7-5.fc18.x86_64.debug
uid:            0

Truncated backtrace:
download.py:181:download_packages:TypeError: 'NoneType' object is not iterable

Traceback (most recent call last):
  File "/bin/fedup-cli", line 285, in <module>
    main(args)
  File "/bin/fedup-cli", line 228, in main
    pkgs = download_packages(f)
  File "/bin/fedup-cli", line 59, in download_packages
    f.download_packages(updates, callback=output.DownloadCallback())
  File "/usr/lib/python2.7/site-packages/fedup/download.py", line 181, in download_packages
    if set(updates) != set(pkgs):
TypeError: 'NoneType' object is not iterable

Local variables in innermost frame:
localpkgs: []
self: <fedup.download.FedupDownloader object at 0x2c1ef10>
callback: <fedup.textoutput.DownloadCallback instance at 0x2eb9d88>
pkgs: []
total: 0
updates: None

Comment 1 D. Charles Pyle 2012-11-28 10:51:31 UTC
Created attachment 653418 [details]
File: backtrace

Comment 2 D. Charles Pyle 2012-11-28 10:51:32 UTC
Created attachment 653419 [details]
File: core_backtrace

Comment 3 D. Charles Pyle 2012-11-28 10:51:35 UTC
Created attachment 653420 [details]
File: environ

Comment 4 D. Charles Pyle 2012-11-28 10:51:36 UTC
Created attachment 653421 [details]
File: smolt_data

Comment 5 Will Woods 2012-12-17 23:43:05 UTC
It looks like you ran fedup on a F18 system and it found nothing to upgrade? Is that right?

Comment 6 D. Charles Pyle 2012-12-18 02:28:06 UTC
It doesn't upgrade from Alpha to Beta? If I recall correctly, that is what I tried to do but do not recall any other error message about there being nothing to upgrade.

Comment 7 Will Woods 2012-12-18 21:16:24 UTC
'yum update' or the GNOME/KDE update tools will update from Alpha to Beta, so if you ran any of those tools you already have Beta, and there's nothing to upgrade.

Similarly, if you include the 'updates' repos when installing from Alpha media, you'll end up with Beta (since Alpha + updates = Beta).

Did you install updates on your Alpha system before trying fedup?

Comment 8 D. Charles Pyle 2012-12-18 22:13:27 UTC
I don't use the GNOME/KDE update tools as they still crash incessantly and end up corrupting the rpm databases.

I do use yum update regularly.

However, I did not use any of these before trying to run fedup to update from Alpha to the Beta release. After the failure I did use yum to upgrade, however.

Comment 9 Rita Heinrich 2013-01-16 06:46:41 UTC
[root@localhost bin]# fedup-cli --network 18 --debuglog fedupdebug.log
setting up repos...
setting up update...
Traceback (most recent call last):
  File "/usr/bin/fedup-cli", line 285, in <module>
    main(args)
  File "/usr/bin/fedup-cli", line 228, in main
    pkgs = download_packages(f)
  File "/usr/bin/fedup-cli", line 59, in download_packages
    f.download_packages(updates, callback=output.DownloadCallback())
  File "/usr/lib/python2.7/site-packages/fedup/download.py", line 181, in download_packages
    if set(updates) != set(pkgs):
TypeError: 'NoneType' object is not iterable


Package: fedup-0.7.1-1.fc18
OS Release: Fedora release 18 (Spherical Cow)

Comment 10 Will Woods 2013-01-23 18:32:58 UTC

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


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