'NoneType found' error during update

Bug #439339 reported by Sidnei da Silva on 2009-09-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Smart Package Manager
Undecided
Unassigned

Bug Description

Not sure what could have caused this. After re-running 'smart update' the error went away.

This is on Ubuntu Karmic, with smart 1.2-4.

-> http://ppa.launchpad.net/chromium-daily/ppa/ubuntu/dists/karmic/Release
Release [ 30%]
Traceback (most recent call last):
  File "/usr/bin/smart", line 195, in <module>
    main(sys.argv[1:])
  File "/usr/bin/smart", line 168, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib/python2.6/dist-packages/smart/interface.py", line 53, in run
    result = _command.main(self._ctrl, opts)
  File "/usr/lib/python2.6/dist-packages/smart/commands/update.py", line 78, in main
    failed = not ctrl.reloadChannels(channels, caching=NEVER)
  File "/usr/lib/python2.6/dist-packages/smart/control.py", line 359, in reloadChannels
    if not channel.fetch(self._fetcher, progress):
  File "/usr/lib/python2.6/dist-packages/smart/channels/apt_deb.py", line 187, in fetch
    self._checkRelease(release_item, release_gpg_item)
  File "/usr/lib/python2.6/dist-packages/smart/channels/apt_deb.py", line 109, in _checkRelease
    command = " ".join(arguments)
TypeError: sequence item 9: expected string, NoneType found

Anders F Björklund (afb) wrote :

"sequence item 9" would be "release_gpg_item.getTargetPath()". So it looks like it was None, even though "release_gpg_item.getFailedReason()" was None. Maybe it should also check for "release_gpg_item.getStatus() != SUCCEEDED" ?

Changed in smart:
status: New → Incomplete
Andreas Hasenack (ahasenack) wrote :

I also just got this

Fetching information for 'stable - non-free'...
-> http://dl.google.com/linux/deb/dists/stable/Release
Release ################################################################################################################### [ 63%]
-> http://dl.google.com/linux/deb/dists/stable/Release.gpg
Release.gpg [ 63%]
Traceback (most recent call last):
  File "/usr/bin/smart", line 195, in <module>
    main(sys.argv[1:])
  File "/usr/bin/smart", line 168, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib/python2.6/dist-packages/smart/interface.py", line 53, in run
    result = _command.main(self._ctrl, opts)
  File "/usr/lib/python2.6/dist-packages/smart/commands/update.py", line 78, in main
    failed = not ctrl.reloadChannels(channels, caching=NEVER)
  File "/usr/lib/python2.6/dist-packages/smart/control.py", line 359, in reloadChannels
    if not channel.fetch(self._fetcher, progress):
  File "/usr/lib/python2.6/dist-packages/smart/channels/apt_deb.py", line 187, in fetch
    self._checkRelease(release_item, release_gpg_item)
  File "/usr/lib/python2.6/dist-packages/smart/channels/apt_deb.py", line 109, in _checkRelease
    command = " ".join(arguments)
TypeError: sequence item 9: expected string, NoneType found

Anders F Björklund (afb) wrote :

DId the suggested change make any difference ?

Andreas Hasenack (ahasenack) wrote :

I can't tell, the error is intermitent and doesn't happen again after I run "smart update" a second time.

Anders F Björklund (afb) wrote :

This might be same as Bug #244038

Anders F Björklund (afb) wrote :

Or perhaps more like "similar to", since it isn't about uncompress

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers