Merge lp:~dholbach/ubuntu-accomplishments-daemon/paths-fix into lp:~jonobacon/ubuntu-accomplishments-daemon/ubuntu-accomplishments-daemon
Status: | Superseded |
---|---|
Proposed branch: | lp:~dholbach/ubuntu-accomplishments-daemon/paths-fix |
Merge into: | lp:~jonobacon/ubuntu-accomplishments-daemon/ubuntu-accomplishments-daemon |
Diff against target: |
155 lines (+35/-20) 6 files modified
accomplishments/daemon/api.py (+4/-7) accomplishments/util/paths.py (+11/-0) bin/accomplishments-daemon (+9/-6) debian/copyright (+1/-0) po/accomplishments-daemon.pot (+5/-5) setup.py (+5/-2) |
To merge this branch: | bzr merge lp:~dholbach/ubuntu-accomplishments-daemon/paths-fix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jono Bacon | Needs Information | ||
Review via email: mp+101342@code.launchpad.net |
This proposal supersedes a proposal from 2012-04-10.
This proposal has been superseded by a proposal from 2012-04-11.
Description of the change
This should install the GPG key in the right place and tests where we are
running from (from branch or from system libs) when starting the daemon.
Also checks for .png files in the right place.
Unmerged revisions
- 121. By Daniel Holbach
-
look for media files in media_dir - which depends on where we run the daemon from
- 120. By Daniel Holbach
-
run daemon with -y instead of -noy
- 119. By Daniel Holbach
-
merge from trunk
- 118. By Daniel Holbach
-
check for .png files in the right place depending on where we run the daemon from
- 117. By Daniel Holbach
-
update potfile
- 116. By Daniel Holbach
-
install gpg key into /usr/share/ and test if we are running from branch or not
Hi Daniel,
Firstly, thanks so much for helping. I really appreciate it!
I noticed a few things when reviewing the merge. When I package the daemon and install it run:
accomplishme nts-daemon
it seems to start it with 'twistd -noy'. I saw you added this at the beginning of the source file.
Unfortunately we will need to be able to start the daemon using other twistd command line options (e.g -noy is good for debugging so it runs in the foreground, but when it runs as a daemon we will want to run it with 'twistd -y'.
When I started the daemon (running 'accomplishment s-daemon' ) it ran well but I noticed one bug. When the first few accomplishments are achieved, the first trophy appears correctly in the GUI but any other trophies don't. There is also the following output in the daemon's terminal:
2012-04-10 21:04:09-0700 [-] Looking for accomplishments files in /home/jono/ accomplishments /accomplishment s/ubuntu- community/ en accomplishments /accomplishment s/ubuntu- italian/ it jono/accomplish ments/accomplis hments/ ubuntu- community/ en/*.accomplish ment', '/home/ jono/accomplish ments/accomplis hments/ ubuntu- italian/ it/*.accomplish ment'] python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 362, in callback _startRunCallba cks(result) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 458, in _startRunCallbacks _runCallbacks( ) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 545, in _runCallbacks current. result, *args, **kw) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 1095, in gotResult lbacks( r, g, deferred) python2. 7/dist- packages/ twisted/ internet/ defer.py" , line 1039, in _inlineCallbacks python2. 7/dist- packages/ accomplishments /daemon/ api.py" , line 106, in wait_until_ a_sig_file_ arrives parent. show_unlocked_ accomplishments () python2. 7/dist- packages/ accomplishments /daemon/ api.py" , line 378, in show_unlocked_ accomplishments get_media_ file("unlocked. png")) python2. 7/dist- packages/ accomplishments /daemon/ api.py" , line 346, in get_media_file file('media' , '%s' % (media_file_name,)) python2. 7/dist- packages/ accomplishments /util/_ _init__ .py", line 80, in get_data_file join(get_ data_path( ), *path_segments) python2. 7/dist- packages/ accomplishments /util/_ _init__ .py", line 69, in get_data_path PathNotFound( msg) s.exceptions. PathNotFound: Could not find the project data directory.
2012-04-10 21:04:09-0700 [-] Looking for accomplishments files in /home/jono/
2012-04-10 21:04:09-0700 [-] ['/home/
2012-04-10 21:04:09-0700 [-] Unhandled error in Deferred:
2012-04-10 21:04:09-0700 [-] Unhandled Error
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
current.result = callback(
File "/usr/lib/
_inlineCal
--- <exception caught here> ---
File "/usr/lib/
result = g.send(result)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
media_filename = get_data_
File "/usr/lib/
return os.path.
File "/usr/lib/
raise exceptions.
accomplishment
This obviously points to an issue with the packaging. This is definitely an issue with the packaging as when I run from the source directory as opposed to the packaged daemon the bug isn't triggered.
...