Comment 10 for bug 395741

Revision history for this message
Matt Layman (mblayman) wrote : Re: Ubuntu one client does not launch

I am also experiencing this situation and I believe that I know why.

The two other logs report the same ConfigParser missing section exception (my log does this too). The ConfigParser object, self.config, comes from the ubuntuone.oauthdesktop.config get_config method. In get_config, the ConfigParser is created from a file location of <xdg_dir>/ubuntuone/oauth_urls. The problem is that oauth_urls is not anywhere on the system (and just to be certain, I did a `sudo find / -name oauth_urls` and got no results).

So I checked which packages got installed from the apturl installation. The three packages were ubuntuone-client-gnome, python-ubuntuone-client, and python-ubuntuone-storageprotocol. I checked the properties of all three packages, and not one of them installs the oauth_urls file which can be found in the source tree at ./data/oauth_urls.

Therefore, what I would guess what happened is that when a ConfigParser object was created using the oauth_urls pathname, an exception was raised that was caught by ConfigParser.Exception, which led to the return of an empty ConfigParser object due to the except clause. Thus, we, as users, received the section exception because self.config didn't represent any config file. The lines of code that I'm referring to are 44-49 of ./ubuntuone/oauthdesktop/config.py

Of course, I could be wrong, but I think that's what's happening. :) I would speculate that ubuntuone-client or ubuntuone-client-tools installs the oauth_urls file and makes this problem go away. Also, a developer running from trunk wouldn't see it because they get their file directly from a relative path in the source tree.