description dialog is empty

Bug #1300465 reported by Brian Murray
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apturl (Ubuntu)
Invalid
Medium
Unassigned
python-apt (Ubuntu)
Invalid
High
Unassigned

Bug Description

I was asked to install samba when trying to share a folder on my system. When I clicked the Description expander I discovered there was no text in it.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: apturl 0.5.2ubuntu4
ProcVersionSignature: User Name 3.13.0-20.42-generic 3.13.7
Uname: Linux 3.13.0-20-generic x86_64
ApportVersion: 2.14-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Mar 31 14:42:34 2014
ExecutablePath: /usr/bin/apturl-gtk
InstallationDate: Installed on 2013-12-10 (110 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20131210)
InterpreterPath: /usr/bin/python3.4
ProcEnviron:
 LANGUAGE=en_US
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: apturl
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Brian Murray (brian-murray) wrote :
Changed in apturl (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Brian Murray (brian-murray) wrote :

In AptUrl/Helpers.py pkgobj.candidate.description is empty. Howver, summary and raw_description contain information.

Revision history for this message
Brian Murray (brian-murray) wrote :

This may be an issue with python-apt.

Revision history for this message
Brian Murray (brian-murray) wrote :

Yes, this is recreatable with python apt. Test case:

import apt
cache = apt.Cache()
pkg = cache['2vcard']
pkg.candidate.description
''
pkg.candidate.summary
'perl script to convert an addressbook to VCARD file format'

Changed in apturl (Ubuntu):
status: New → Triaged
Changed in python-apt (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Brian Murray (brian-murray) wrote :

Well, this doesn't even work in 12.04.

Revision history for this message
Brian Murray (brian-murray) wrote :

From a duplicate of this bug:

/usr/lib/python2.6/dist-packages/AptUrl/Helpers.py:47: DeprecationWarning: Accessed deprecated property Package.description, please see the Version class for alternatives.
  if pkgobj.description.count("\n") > 0:
Traceback (most recent call last):
  File "/usr/bin/apturl-gtk", line 48, in <module>
    sys.exit(apturl.main())
  File "/usr/lib/python2.6/dist-packages/AptUrl/AptUrl.py", line 219, in main
    (sum, desc, homepage) = Helpers.parse_pkg(pkg)
  File "/usr/lib/python2.6/dist-packages/AptUrl/Helpers.py", line 47, in parse_pkg
    if pkgobj.description.count("\n") > 0:
AttributeError: 'NoneType' object has no attribute 'count'

Revision history for this message
Brian Murray (brian-murray) wrote :

Switching to the Version class I still find no description.

vers = pkg.versions[0]
vers.description
''

Revision history for this message
Michael Vogt (mvo) wrote :

Thats confusing, for me:
$ python3 -c 'import apt; pkg=apt.Cache()["2vcard"]; print(pkg.candidate.description)'
2vcard is a little perl script that you can use to convert the popular vcard file format. Currently 2vcard can only convert addressbooks and alias files from the following formats: abook,eudora,juno,ldif,mutt, mh and pine.

The VCARD format is used by gnomecard, for example, which is used by the balsa email client.

$ python3 -c 'import apt; pkg=apt.Cache()["2vcard"]; print(pkg.versions[0].description)'
2vcard is a little perl script that you can use to convert the popular vcard file format. Currently 2vcard can only convert addressbooks and alias files from the following formats: abook,eudora,juno,ldif,mutt, mh and pine.

The VCARD format is used by gnomecard, for example, which is used by the balsa email client.

$ python -c 'import apt; pkg=apt.Cache()["2vcard"]; print(pkg.versions[0].description)'
2vcard is a little perl script that you can use to convert the popular vcard file format. Currently 2vcard can only convert addressbooks and alias files from the following formats: abook,eudora,juno,ldif,mutt, mh and pine.

The VCARD format is used by gnomecard, for example, which is used by the balsa email client.

Revision history for this message
Brian Murray (brian-murray) wrote :

This was an issue with my local mirror not mirroring the Translation files.

Changed in python-apt (Ubuntu):
status: Triaged → Invalid
Changed in apturl (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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