Unhandled exception during timezone selection
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I was attempting to install 12.04 from the amd64 LiveCD. During the timezone selection, there is an unhandled ValueError if there is a network connection but not an internet connection. In my case, I was sitting behind an AP that requires authentication via a Java applet (which I install from the internet (for which I need Java (which I install from the internet (for which ... [Curse you Cisco!])))). Therefore, the installer could send out a JSON request, but what it gets back is the authentication page, not a valid JSON document. That leads to this error:
Traceback (most recent call last):
File "/usr/lib/
for result in json.loads(
File "/usr/lib/
return _default_
File "/usr/lib/
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
The installer worked fine once I shut off the network connection, so I think the fix is easy: Put a try/except block around the loop at line 173 of ubi-timezone.py, with "self.geoname_
If you need the logs, let me know. But I hope the problem is rather clear.