Ticket #276 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Umit Crash - ''ScanNotebookPage' object has no attribute 'hosts''

Reported by: michal@… Owned by: gpolo
Priority: medium Milestone: Umit 1.0beta1
Component: CrashReport Version: current svn
Keywords: user crash Cc:

Description (last modified by gpolo) (diff)

Crash Report
==========

sys.platform win32
os.name nt
Gtk version 2.14.7
Umit version 1.0beta1

Description


Versions:
---
GTK: 2.14.7
PyGTK: 2.14.2
HIGWidgets: 1.0beta1
Python: 2.6.1 (r261:67517, Dec  4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)]
Nmap: Nmap version 4.85BETA7 ( http://nmap.org )
Operating System: XP 5.1.2600 SP3 Multiprocessor Free
Umit: 1.0beta1
UmitCore: 1.0beta1
UmitGUI: 1.0beta1
---
<type 'exceptions.AttributeError'>
Python 2.6.1: C:\Program Files\Umit\umit.exe
Mon Apr 06 13:14:26 2009

A problem occurred in a Python script.  Here is the sequence of
function calls leading up to the error, in the order they occurred.

 C:\Program Files\Umit\umitGUI\ScanNotebook.pyo in update_host_info(self=<ScanNotebookPage object at 0x1d94b20 (umitGUI+ScanNotebook+ScanNotebookPage at 0x10cbc80)>, widget=<gtk.TreeSelection object at 0x1daf468 (GtkTreeSelection at 0x1787180)>)

<type 'exceptions.AttributeError'>: 'ScanNotebookPage' object has no attribute 'hosts'
    __class__ = <type 'exceptions.AttributeError'>
    __delattr__ = <method-wrapper '__delattr__' of exceptions.AttributeError object at 0x01DAFDA0>
    __dict__ = {}
    __doc__ = 'Attribute not found.'
    __format__ = <built-in method __format__ of exceptions.AttributeError object at 0x01DAFDA0>
    __getattribute__ = <method-wrapper '__getattribute__' of exceptions.AttributeError object at 0x01DAFDA0>
    __getitem__ = <method-wrapper '__getitem__' of exceptions.AttributeError object at 0x01DAFDA0>
    __getslice__ = <method-wrapper '__getslice__' of exceptions.AttributeError object at 0x01DAFDA0>
    __hash__ = <method-wrapper '__hash__' of exceptions.AttributeError object at 0x01DAFDA0>
    __init__ = <method-wrapper '__init__' of exceptions.AttributeError object at 0x01DAFDA0>
    __new__ = <built-in method __new__ of type object at 0x1E1D23F0>
    __reduce__ = <built-in method __reduce__ of exceptions.AttributeError object at 0x01DAFDA0>
    __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.AttributeError object at 0x01DAFDA0>
    __repr__ = <method-wrapper '__repr__' of exceptions.AttributeError object at 0x01DAFDA0>
    __setattr__ = <method-wrapper '__setattr__' of exceptions.AttributeError object at 0x01DAFDA0>
    __setstate__ = <built-in method __setstate__ of exceptions.AttributeError object at 0x01DAFDA0>
    __sizeof__ = <built-in method __sizeof__ of exceptions.AttributeError object at 0x01DAFDA0>
    __str__ = <method-wrapper '__str__' of exceptions.AttributeError object at 0x01DAFDA0>
    __subclasshook__ = <built-in method __subclasshook__ of type object at 0x1E1D23F0>
    __unicode__ = <built-in method __unicode__ of exceptions.AttributeError object at 0x01DAFDA0>
    args = ("'ScanNotebookPage' object has no attribute 'hosts'",)
    message = "'ScanNotebookPage' object has no attribute 'hosts'"

The above is a description of an error in a Python program.  Here is
the original traceback:

Traceback (most recent call last):
  File "umitGUI\ScanNotebook.pyo", line 999, in update_host_info
AttributeError: 'ScanNotebookPage' object has no attribute 'hosts'


Change History

Changed 4 years ago by gpolo

  • owner changed from boltrix to gpolo
  • status changed from new to assigned
  • description modified (diff)

To reproduce this you have to start a scan and then click on the hosts treeview (there will be an icon followed by the text "Scanning").

To fix this self.hosts has to be defined outside self.parse, fixing it.

Changed 4 years ago by gpolo

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r4469. There was a similar problem involving the services treeview, it got fixed too.

Note: See TracTickets for help on using tickets.