python-autopilot should have python-evdev as a dependency

Bug #1183955 reported by Daniel d'Andrada
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Autopilot
Fix Released
Low
Unassigned
autopilot (Ubuntu)
Fix Released
Undecided
Unassigned
Raring
Won't Fix
Undecided
Unassigned

Bug Description

If python-evdev is not installed you can get errors like this one:

_StringException: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/qml_phone_shell/tests/testcases.py", line 67, in setUp
    self.touch = Touch.create()
  File "/usr/lib/python2.7/dist-packages/autopilot/input/__init__.py", line 335, in create
    return _pick_backend(backends, preferred_backend)
  File "/usr/lib/python2.7/dist-packages/autopilot/utilities.py", line 53, in _pick_backend
    raise RuntimeError("Unable to instantiate any backends\n%s" % '\n'.join(failure_reasons))
RuntimeError: Unable to instantiate any backends
UInput: ImportError('No module named evdev',)

Related branches

Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

Hi,

I'm afraid there's a good reason for the way it is today: You only need python-evdev on the touch / phablet devices. On the desktop, you can use python-xlib. We wanted a way to make sure we weren'tpulling down more dependancies than we needed (especially on the phone). To this end, you can either install:

autopilot-touch

or

autopilot-desktop

These are metapackages which rely on everything you need for the respective platform.

Cheers,

Changed in autopilot:
status: New → Won't Fix
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

So if I wanna send touch events in my tests that are run on a desktop I need to install autopilot-touch?

Changed in autopilot:
status: Won't Fix → New
Changed in autopilot:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Thomi Richards (thomir)
milestone: none → 1.3.1
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:autopilot at revision 226, scheduled for release in autopilot, milestone 1.3.1

Changed in autopilot:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopilot - 1.3daily13.06.05-0ubuntu2

---------------
autopilot (1.3daily13.06.05-0ubuntu2) saucy; urgency=low

  * autopilot-touch only suggests python-ubuntu-platform-api for now.
    It's not in distro and we need that requirement to be fulfilled to
    have unity 7, 100 scopes and the touch stack to distro.
 -- Didier Roche <email address hidden> Fri, 07 Jun 2013 13:33:46 +0200

Changed in autopilot (Ubuntu):
status: New → Fix Released
Changed in autopilot:
status: Fix Committed → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

raring has seen the end of its life and is no longer receiving any updates. Marking the raring task for this ticket as "Won't Fix".

Changed in autopilot (Ubuntu Raring):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.