If you have any questions why you received this email, please see the text at the end of this email. Replies to this email are NOT read, please see the text at the end of this email. You can add comments to this bug at: http://bugzilla.gnome.org/show_bug.cgi?id=586698
LDTP | general | Ver: unspecified Summary: tutorial describes incorrect function usage Product: LDTP Version: unspecified Platform: Other OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: general AssignedTo: ldtp-ma...@gnome.bugs ReportedBy: dilin...@collabora.co.uk QAContact: ldtp-dev@lists.freedesktop.org GNOME version: Unspecified GNOME milestone: Unspecified The tutorial at http://download.freedesktop.org/ldtp/doc/ldtp-tutorial.pdf using launchapp("gedit", 1) to launch applications. However, this doesn't appear to actually work. With ldtp 1.6, I get the following: Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from ldtp import * >>> launchapp("gedit", 1) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/pymodules/python2.5/ldtp.py", line 3675, in launchapp arg.insert (0, appName) AttributeError: 'int' object has no attribute 'insert' With ldtp 1.2 (from debian stable), I get the following: Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from ldtp import * >>> launchapp("gedit", 1) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/var/lib/python-support/python2.5/ldtp.py", line 3173, in launchapp os.execvpe (appName, arg, envVar) File "/usr/lib/python2.5/os.py", line 363, in execvpe _execvpe(file, args, env) File "/usr/lib/python2.5/os.py", line 390, in _execvpe func(fullname, *argrest) TypeError: execve() arg 2 must be a tuple or list Note that in both cases, dropping the second argument allows launchapp to succeed. The tutorial should be updated to drop the second arg as well. -- See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received this email, why you can't respond via email, how to stop receiving emails (or reduce the number you receive), and how to contact someone if you are having problems with the system. You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=586698. _______________________________________________ LDTP-dev mailing list LDTP-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/ldtp-dev