No reviews displayed (ValueError: time data ... does not match format)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ratings and Reviews server |
Fix Released
|
High
|
Michael Nelson | ||
software-center (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Bug Description
Software-center stopped displaying reviews around the 10th of January 2014.
This happens for all apps (so far) in the software center.
A message saying "No network connection, Connect to the internet to see more reviews." is shown in place of the reviews.
The computer does have access to the internet.
A useful traceback is printed in the stderr which should be in the information collected from the ubuntu-bug program.
Traceback (most recent call last):
File "/usr/share/
callback(app, self._reviews[app])
File "/usr/share/
self.
File "/usr/share/
self._fill()
File "/usr/share/
self.
File "/usr/share/
useful_votes)
File "/usr/share/
cur_t = self._get_
File "/usr/share/
return datetime.
File "/usr/lib/
(data_string, format))
ValueError: time data '2012-08-
It seems that the review date string sent from the reviews server is not in the expected format of the datetime.
I have re-installed software-center with the --purge option.
The environment variable "SOFTWARE_
I have managed to do a bodgy fix on /usr/share/
raw_date_str = raw_date_str[:10] + " " + raw_date_str[11:19]
after line 538.
This fix is not ideal but it works. Perhaps someone with better knowledge in programming and this program in specific could find a more elegant fix. I have made a comment in the code describing the additional line.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: software-center 5.2.10
ProcVersionSign
Uname: Linux 3.8.0-35-generic x86_64
NonfreeKernelMo
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
Date: Sun Jan 12 11:04:40 2014
ExecutablePath: /usr/share/
InstallationMedia: This
InterpreterPath: /usr/bin/python2.7
MarkForUpload: True
PackageArchitec
ProcEnviron:
TERM=xterm
SHELL=/bin/bash
PATH=(custom, no user)
LANG=en_AU.UTF-8
LANGUAGE=en_AU:en
SourcePackage: software-center
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Ricardo Kirkner (community): Approve
-
Diff: 103 lines (+61/-2)2 files modifiedsrc/reviewsapp/api/handlers.py (+60/-1)
src/reviewsapp/tests/test_handlers.py (+1/-1)
Changed in software-center (Ubuntu): | |
importance: | Undecided → High |
summary: |
- software-center fails to display reviews + No reviews displayed (ValueError: time data ... does not match format) |
Changed in rnr-server: | |
assignee: | nobody → Michael Nelson (michael.nelson) |
Changed in rnr-server: | |
status: | New → In Progress |
Changed in rnr-server: | |
status: | In Progress → Fix Committed |
Changed in software-center (Ubuntu): | |
status: | Confirmed → Invalid |
The attachment "A bodgy fix to change the raw_datetime_str to the right format." seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]