MouseTrap Status

From Foss2Serve
Revision as of 06:06, 11 December 2012 by Aheilman (Talk | contribs)
Jump to: navigation, search

Please state the versions and OS you are currently working with so that versioning errors can be ruled out.

Team Member Name Installed packages
Amber
Package Name Version
Python 2.7.3

Please enter the status of the ongoing project below


Name Date Entry
Amber 12.10.2012 Full install of mousetrap complete. Config file was manipulated to include failed dependency on 'python-opencv' which has been updated and the package is now referred to as 'cv'. Other dependencies are outdated or the names have been changed as well (xlib-python, etc). New errors with 'gobject' have been identified. Here is the recorded error when running mousetrap:


 ImportError: could not import gobject
 (error was: ImportError('When using gi.repository you must not import static modules like "gobject".
 Please change all occurrences of "import gobject" to "from gi.repository import GObject".',))
 ^C[amber@localhost src]$ Traceback (most recent call last)
 File "<string>", line 1, in <module>
 File "mousetrap/app/main.py", line 50, in <module>
   from lib import httpd, dbusd, settings
 File "mousetrap/app/lib/httpd.py", line 31, in <module>
   import mouse
 File "mousetrap/app/lib/mouse.py", line 30, in <module>
   import pyatspi
 File "/usr/lib/python2.7/site-packages/pyatspi/__init__.py", line 17, in <module>
   from gi.repository import Atspi
 File "/usr/lib/python2.7/site-packages/gi/__init__.py", line 23, in <module>
   from ._gi import _API, Repository

Fix: changed import gobject to from gi.repository import GObject like suggested and changed all instances of gobject to GObject

 Changed these files:
 mousetrap/app/main.py
 mousetrap/app/addons/recalc.py
 mousetrap/app/addons/cpu.py
 mousetrap/app/ui/widgets.py
 mousetrap/ocvfw/dev/camera.py
Personal tools
Namespaces
Variants
Actions
Events
Learning Resources
HFOSS Projects
Evaluation
Navigation
Toolbox