← Back to team overview

xpresser-team team mailing list archive

[Bug 903842] Re: When running the tests in oneiric, scripts fail with an import error

 

** Changed in: xpresser
     Assignee: Gustavo Niemeyer (niemeyer) => (unassigned)

** Changed in: xpresser
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Xpresser,
which is the registrant for Xpresser.
https://bugs.launchpad.net/bugs/903842

Title:
  When running the tests in oneiric, scripts fail with an import error

Status in Xpresser:
  Invalid

Bug description:
  When trying to run any of the tests, the following error is shown:

  [ERROR]
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/twisted/trial/runner.py", line 677, in loadByNames
      things.append(self.findByName(name))
    File "/usr/lib/python2.7/dist-packages/twisted/trial/runner.py", line 486, in findByName
      return filenameToModule(name)
    File "/usr/lib/python2.7/dist-packages/twisted/trial/runner.py", line 85, in filenameToModule
      ret = reflect.namedAny(reflect.filenameToModuleName(fn))
    File "/usr/lib/python2.7/dist-packages/twisted/python/reflect.py", line 464, in namedAny
      topLevelPackage = _importAndCheckStack(trialname)
    File "/home/cwayne/xpresser/xpresser/__init__.py", line 23, in <module>
      from xpresser.xp import Xpresser, ImageNotFound
    File "/home/cwayne/xpresser/xpresser/xp.py", line 22, in <module>
      from xpresser import xutils
    File "/home/cwayne/xpresser/xpresser/xutils.py", line 22, in <module>
      import pyatspi
    File "/usr/lib/python2.7/dist-packages/pyatspi/__init__.py", line 17, in <module>
      from gi.repository import Atspi
    File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 23, in <module>
      from ._gi import _API, Repository
  exceptions.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".',))

To manage notifications about this bug go to:
https://bugs.launchpad.net/xpresser/+bug/903842/+subscriptions