Kupfer doesn't launch - AttributeError: 'module' object has no attribute 'uses_fragment'

Bug #1014502 reported by Stanie
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kupfer
Fix Committed
Undecided
Unassigned

Bug Description

System: Debian Sid i386 with Openbox

Kupfer version: 208-1 (tried also v. 207-2 and a few packages for ubuntu with the same result)

Since the last update in Sid - python among other packages - Kupfer won't start at all.

If Kupfer is launched from terminal, I have the following output:
Kupfer: A free software (GPLv3+) launcher
 Copyright © 2007--2011 Ulrik Sverdrup with others
 http://kaizer.se/wiki/kupfer/

Traceback (most recent call last):
  File "/usr/share/kupfer/kupfer.py", line 4, in <module>
    main.main()
  File "/usr/share/kupfer/kupfer/main.py", line 182, in main
    gtkmain(quiet)
  File "/usr/share/kupfer/kupfer/main.py", line 160, in gtkmain
    from kupfer.ui import browser
  File "/usr/share/kupfer/kupfer/ui/browser.py", line 23, in <module>
    from kupfer.core import data, relevance, learn
  File "/usr/share/kupfer/kupfer/core/data.py", line 11, in <module>
    from kupfer.obj import base, sources, compose
  File "/usr/share/kupfer/kupfer/obj/compose.py", line 7, in <module>
    from kupfer import puid
  File "/usr/share/kupfer/kupfer/puid.py", line 20, in <module>
    from kupfer.core import qfurl
  File "/usr/share/kupfer/kupfer/core/qfurl.py", line 11, in <module>
    urlparse.uses_fragment.append(QFURL_SCHEME)
AttributeError: 'module' object has no attribute 'uses_fragment'

Revision history for this message
Karol Będkowski (karol-bedkowski) wrote :

Problem after last Python update.
Quick patch attached.

Revision history for this message
Stanie (stanson1) wrote :

Wow, that was quick!
Patch applied, Kupfer's working again.
Thanks.

Changed in kupfer:
status: New → Confirmed
Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote :

Which version of python?

Revision history for this message
Stanie (stanson1) wrote :

I have both the latest python 2.6 (v. 2.6.8-0.1) and 2.7 (v. 2.7.3-1), but the culprit is probably the latter, if I remember the update correctly...

Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote :

Thanks Karol. I'll commit this with a better comment and we'll ignore it on error -- your fix is correct. Python 2.7.3 doesn't use uses_fragment anymore.

Changed in kupfer:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.