After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 597382 - running examples/gedit.py fails with NameError
running examples/gedit.py fails with NameError
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: ldtp2
unspecified
Other Linux
: Normal normal
: ---
Assigned To: LDTP Development Mailing List
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2009-10-05 06:50 UTC by Markus Korn
Modified: 2009-10-05 16:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Markus Korn 2009-10-05 06:50:12 UTC
Using the gedit example from the latest checkout of ldtpv2 I get:

markus@thekorn ~/devel/ldtp2 % PYTHONPATH="." python examples/gedit.py
Traceback (most recent call last):
  • File "examples/gedit.py", line 28 in <module>
    ldtp.imagecapture('*gedit', '/tmp/foo.png')
  • File "/home/markus/devel/ldtp2/ldtp/__init__.py", line 53 in imagecapture
    outFile = os.path.expanduser(outFile)
NameError: global name 'os' is not defined

Comment 1 Nagappan Alagappan 2009-10-05 16:33:46 UTC
Markus,

Thanks for the bug report. Fixed in git head.

Thanks