As a final check for my work this term, I decided to run the unit tests and flake8 once again. Both went well on my computer. So I committed and pushed the final version to my github repo.
Then an unexpected event came up: the Travis CI Build failed!
All of the unit tests and flake8 passed in the travis build. However, right after the green message "174 passed, 1 skipped", it threw the error:
"Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion `map->l_init_called' failed!"
Note that the error didn't come from the "1 skipped", since the last successful travis build in master also had "1 skipped".
The issue probably had something to do with the library I was trying to install in Travis.
In .travis.yml, I added the line:
sudo apt-get install python-qt4-phonon phonon-backend-gstreamer
(Note: we cannot install PyQt4's phonon with pip, because I couldn't find PyQt4 phonon in pypi. Instead, there was only PySide's phonon)
So, with this idea in mind, I tried to fix the problem by looking for another way to install phonon. However, I wasn't able to find another way of installation that made phonon work properly.
So in the end, I decided to look for another way to play sound. From the discussion with Thanh on IRC last week, it seems that Snack is a small library that we can use. After some research and experimentation, I got the sound working with Snack. The advantage of this library is that I generated the alert sound by using a sine frequency to make a musical note. This way, we don't need to store an additional binary file (alert.mp3) and its license anymore.
The new dependencies can be installed using:
sudo apt-get install libsnack2
sudo apt-get install libsnack2-dev
sudo apt-get install libsnack2-alsa
sudo apt-get install python-tksnack
Wednesday, April 9, 2014
Thursday, April 3, 2014
Week13 Blog9
Progress I made
Problems
This is the last week before the project deadline and the end of the term, so this will be the last blog. There are no plans for next week.
- Fixed problem found by test case last week, where we have talks A B, all in room 123, B's start time between start and end time of A. In this case the recording for B should not start
- Added alert sound's license
- For the implementation of alert sound, changed from using pygame to Phonon
- Finished the project proposal
Problems
- Before switching to Phonon, tried to search more about using QSound. But it turned out that for QSound to be available in Ubuntu, we need to compile Qt with NAS (from the discussion with Thanh on IRC). For our purposes, using QSound is not the ideal way to do it
This is the last week before the project deadline and the end of the term, so this will be the last blog. There are no plans for next week.
Subscribe to:
Posts (Atom)