** Changed in: software-center (Ubuntu)
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/1268250
Title:
No reviews displayed (ValueError: time data ... does not match format)
Status in Ratings and Reviews server:
Fix Released
Status in “software-center” package in Ubuntu:
Invalid
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/software-center/softwarecenter/backend/reviews/rnr.py",
line 129, in _on_reviews_helper_data
callback(app, self._reviews[app])
File
"/usr/share/software-center/softwarecenter/ui/gtk3/views/appdetailsview.py",
line 1050, in _reviews_ready_callback
self.reviews.configure_reviews_ui()
File
"/usr/share/software-center/softwarecenter/ui/gtk3/widgets/reviews.py", line
284, in configure_reviews_ui
self._fill()
File
"/usr/share/software-center/softwarecenter/ui/gtk3/widgets/reviews.py", line
208, in _fill
self.useful_votes, is_first_for_version)
File
"/usr/share/software-center/softwarecenter/ui/gtk3/widgets/reviews.py", line
467, in __init__
useful_votes)
File
"/usr/share/software-center/softwarecenter/ui/gtk3/widgets/reviews.py", line
615, in _build
cur_t = self._get_datetime_from_review_date(review_data.date_created)
File
"/usr/share/software-center/softwarecenter/ui/gtk3/widgets/reviews.py", line
539, in _get_datetime_from_review_date
return datetime.datetime.strptime(raw_date_str, '%Y-%m-%d %H:%M:%S')
File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime
(data_string, format))
ValueError: time data '2012-08-25T06:16:42.749Z' does not match format
'%Y-%m-%d %H:%M:%S'
It seems that the review date string sent from the reviews server is not in
the expected format of the datetime.datetime.strptime function.
I have re-installed software-center with the --purge option.
The environment variable "SOFTWARE_CENTER_REVIEWS_HOST" is not set.
I have managed to do a bodgy fix on
/usr/share/software-center/softwarecenter/ui/gtk3/widgets/reviews.py by
inserting
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
ProcVersionSignature: Ubuntu 3.8.0-35.50~precise1-generic 3.8.13.13
Uname: Linux 3.8.0-35-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
Date: Sun Jan 12 11:04:40 2014
ExecutablePath: /usr/share/software-center/software-center
InstallationMedia: This
InterpreterPath: /usr/bin/python2.7
MarkForUpload: True
PackageArchitecture: all
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/rnr-server/+bug/1268250/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp