pyspi.pyx : TypeError : an integer is required

Bug #371825 reported by arky
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
dogtail (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Open dogtail-sniff and select gnome-panel. Follow the gnome-panel tree until you reach the clock applet toggle-button by clicking on inverted triangles.

$ dogtail-sniff
Creating /tmp/dogtail ...
Creating /tmp/dogtail/logs ...
Creating /tmp/dogtail/data ...
Creating logfile at /tmp/dogtail/logs/dogtail-sniff_20090504-232123_debug ...
Detecting distribution: Ubuntu (or derived distribution)
Traceback (most recent call last):
  File "/usr/bin/dogtail-sniff", line 178, in selectionChanged
    if node: node.blink()
  File "/usr/lib/pymodules/python2.6/dogtail/tree.py", line 1021, in blink
    if not self.extents:
  File "/usr/lib/pymodules/python2.6/dogtail/tree.py", line 523, in __getattr__
    return self.__component.getExtents()
  File "pyspi.pyx", line 747, in atspi.Component.getExtents
TypeError: an integer is required

Traceback (most recent call last):
  File "/usr/bin/dogtail-sniff", line 178, in selectionChanged
    if node: node.blink()
  File "/usr/lib/pymodules/python2.6/dogtail/tree.py", line 1021, in blink
    if not self.extents:
  File "/usr/lib/pymodules/python2.6/dogtail/tree.py", line 523, in __getattr__
    return self.__component.getExtents()
  File "pyspi.pyx", line 747, in atspi.Component.getExtents
TypeError: an integer is required

Traceback (most recent call last):
  File "/usr/bin/dogtail-sniff", line 178, in selectionChanged
    if node: node.blink()
  File "/usr/lib/pymodules/python2.6/dogtail/tree.py", line 1021, in blink
    if not self.extents:
  File "/usr/lib/pymodules/python2.6/dogtail/tree.py", line 523, in __getattr__
    return self.__component.getExtents()
  File "pyspi.pyx", line 747, in atspi.Component.getExtents
TypeError: an integer is required

Traceback (most recent call last):
  File "/usr/bin/dogtail-sniff", line 178, in selectionChanged
    if node: node.blink()
  File "/usr/lib/pymodules/python2.6/dogtail/tree.py", line 1021, in blink
    if not self.extents:
  File "/usr/lib/pymodules/python2.6/dogtail/tree.py", line 523, in __getattr__
    return self.__component.getExtents()
  File "pyspi.pyx", line 747, in atspi.Component.getExtents
TypeError: an integer is required

Traceback (most recent call last):
  File "/usr/bin/dogtail-sniff", line 178, in selectionChanged
    if node: node.blink()
  File "/usr/lib/pymodules/python2.6/dogtail/tree.py", line 1021, in blink
    if not self.extents:
  File "/usr/lib/pymodules/python2.6/dogtail/tree.py", line 523, in __getattr__
    return self.__component.getExtents()
  File "pyspi.pyx", line 747, in atspi.Component.getExtents
TypeError: an integer is required

Traceback (most recent call last):
  File "/usr/bin/dogtail-sniff", line 178, in selectionChanged
    if node: node.blink()
  File "/usr/lib/pymodules/python2.6/dogtail/tree.py", line 1021, in blink
    if not self.extents:
  File "/usr/lib/pymodules/python2.6/dogtail/tree.py", line 523, in __getattr__
    return self.__component.getExtents()
  File "pyspi.pyx", line 747, in atspi.Component.getExtents
TypeError: an integer is required

ProblemType: Bug
Architecture: i386
Date: Tue May 5 00:30:16 2009
DistroRelease: Ubuntu 9.10
Package: python-dogtail 0.6.1-3ubuntu3
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: dogtail
Uname: Linux 2.6.28-11-generic i686

Revision history for this message
arky (arky) wrote :
Revision history for this message
arky (arky) wrote :

$ apt-cache policy python-dogtail
python-dogtail:
  Installed: 0.6.1-3ubuntu3
  Candidate: 0.6.1-3ubuntu3
  Version table:
 *** 0.6.1-3ubuntu3 0
        500 http://us.archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

Revision history for this message
Ian Lawrence (ianlawrence) wrote :

this can also be triggered by running dogtail-recorder in a terminal and trying to record some actions.

tags: added: a11y
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dogtail (Ubuntu):
status: New → Confirmed
Revision history for this message
Edward Rosario (geteddy333) wrote :

I need to get the location of an object/node(an icon) present inside a Window and print it.
I used,
ext = node.extents
print 'X, Y co-ordinates %d %d' %(ext[0] , ext[1])

I got the Error, pyspi.pyx : TypeError : an integer is required

Below is the full error description,

Traceback (most recent call last):
  File "test1.py", line 29, in <module>
    ext = mdm.extents()
  File "/usr/lib/pymodules/python2.7/dogtail/tree.py", line 523, in __getattr__
    return self.__component.getExtents()
  File "pyspi.pyx", line 747, in atspi.Component.getExtents
TypeError: an integer is required

Revision history for this message
Edward Rosario (geteddy333) wrote :

I need to get the location of an object/node(an icon) present inside a Window and print it.
I used,
ext = node.extents
print 'X, Y co-ordinates %d %d' %(ext[0] , ext[1])

I got the Error, pyspi.pyx : TypeError : an integer is required

Below is the full error description,

Traceback (most recent call last):
  File "test1.py", line 29, in <module>
    ext = node.extents
  File "/usr/lib/pymodules/python2.7/dogtail/tree.py", line 523, in __getattr__
    return self.__component.getExtents()
  File "pyspi.pyx", line 747, in atspi.Component.getExtents
TypeError: an integer is required

Revision history for this message
Edward Rosario (geteddy333) wrote :

The issue is observed on Ubuntu 11.04 also.

root@test-Ubuntu1104:/home# apt-cache policy python-dogtail
python-dogtail:
  Installed: 0.6.1-3.1
  Candidate: 0.6.1-3.1
  Version table:
 *** 0.6.1-3.1 0
        500 http://in.archive.ubuntu.com/ubuntu/ natty/universe i386 Packages
        100 /var/lib/dpkg/status

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.