Ticket #248 (closed defect: none)

Opened 4 years ago

Last modified 4 years ago

Umit Crash - 'File '/home/teramoto/.umit/umitng.db' does not exist or could not be found!'

Reported by: aaa 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 linux2
os.name posix
Gtk version 2.14.4
Umit version 1.0beta1

Description


Versions:
---
GTK: 2.14.4
PyGTK: 2.15.3
HIGWidgets: 1.0beta1
Python: 2.5.2 (r252:60911, Oct  5 2008, 19:24:49) 
[GCC 4.3.2]
Nmap: Nmap version 4.62 ( http://nmap.org )
Operating System: Linux teramoto-laptop 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:20 UTC 2008 i686
Umit: 1.0beta1
UmitCore: 1.0beta1
UmitGUI: 1.0beta1
---
<type 'exceptions.Exception'>
Python 2.5.2: /usr/bin/python
Thu Mar 26 00:32:54 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.

 /usr/lib/python2.5/site-packages/umitGUI/App.py in __create_show_main_window(self=<umitGUI.App.App instance at 0xb7c223cc>)
   58             self.main_window = InventoryViewer()
   59         else:
   60             from umitGUI.MainWindow import MainWindow
   61             self.main_window = MainWindow()
   62 
umitGUI undefined
MainWindow undefined

 /usr/lib/python2.5/site-packages/umitGUI/MainWindow.py in <module>()
   62 from umitCore.UmitDB import Scans, UmitDB
   63 from umitCore.Utils import amiroot, is_maemo
   64 from umitCore.DataDecay import remove_old_data
   65 import umitCore.Scheduler as Scheduler
   66 
umitCore undefined
remove_old_data undefined

 /usr/lib/python2.5/site-packages/umitCore/DataDecay.py in <module>()
   27 from umitDB.Remove import ScanRemover
   28 
   29 umitdb = Path.umitdb_ng
   30 umit_conf = Path.get_umit_conf()
   31 
umitdb undefined
Path = None
Path.umitdb_ng undefined

 /usr/lib/python2.5/site-packages/umitCore/Paths.py in __getattr__(self=<umitCore.Paths.Paths object at 0xb7c1ea2c>, name='umitdb_ng')
  247             elif name in self.config_files_list:
  248                 return return_if_exists(os.path.join(
  249                     self.__dict__['config_dir'], base_paths[name]))
  250 
  251             elif name in self.empty_config_files_list:
self = <umitCore.Paths.Paths object at 0xb7c1ea2c>
self.__dict__ = {'_Paths__runpath': '/usr/bin', 'config_dir': '/home/teramoto/.umit', 'config_file': '/home/teramoto/.umit/umit.conf', 'config_file_set': True, 'docs_dir': '/usr/share/doc/umit', 'icons_dir': '/usr/share/icons/umit', 'locale_dir': '/usr/share/locale', 'misc_dir': '/usr/share/umit/misc', 'pixmaps_dir': '/usr/share/pixmaps/umit'}
global base_paths = {'basic_search_sequence': ['/home/teramoto/.umit', '/opt/umit', '/home/teramoto', '/home/teramoto/\xe3\x83\x87\xe3\x82\xb9\xe3\x82\xaf\xe3\x83\x88\xe3\x83\x83\xe3\x83\x97/umit-1.0beta1'], 'config_dir': '.umit', 'config_file': 'umit.conf', 'config_search_sequence': ['/home/teramoto/.umit', '/home/teramoto/\xe3\x83\x87\xe3\x82\xb9\xe3\x82\xaf\xe3\x83\x88\xe3\x83\x83\xe3\x83\x97/umit-1.0beta1', '/etc'], 'i18n_dir': '/usr/share/locale', 'i18n_message_file': 'umit.mo', 'i18n_search_sequence': ['/usr/share/locale', '/usr/share/locale', '/home/teramoto', '/home/teramoto/\xe3\x83\x87\xe3\x82\xb9\xe3\x82\xaf\xe3\x83\x88\xe3\x83\x83\xe3\x83\x97/umit-1.0beta1'], 'options': 'options.xml', 'os_classification': 'os_classification.dmp', 'os_db': 'nmap-os-db', ...}
name = 'umitdb_ng'

 /usr/lib/python2.5/site-packages/umitCore/Paths.py in return_if_exists(path='/home/teramoto/.umit/umitng.db', create=False)
  347         f.close()
  348         return path
  349     raise Exception("File '%s' does not exist or could not be found!" % path)
  350 
  351 ############
builtinException = <type 'exceptions.Exception'>
path = '/home/teramoto/.umit/umitng.db'
<type 'exceptions.Exception'>: File '/home/teramoto/.umit/umitng.db' does not exist or could not be found!
    __class__ = <type 'exceptions.Exception'>
    __delattr__ = <method-wrapper '__delattr__' of exceptions.Exception object at 0x9167a2c>
    __dict__ = {}
    __doc__ = 'Common base class for all non-exit exceptions.'
    __getattribute__ = <method-wrapper '__getattribute__' of exceptions.Exception object at 0x9167a2c>
    __getitem__ = <method-wrapper '__getitem__' of exceptions.Exception object at 0x9167a2c>
    __getslice__ = <method-wrapper '__getslice__' of exceptions.Exception object at 0x9167a2c>
    __hash__ = <method-wrapper '__hash__' of exceptions.Exception object at 0x9167a2c>
    __init__ = <method-wrapper '__init__' of exceptions.Exception object at 0x9167a2c>
    __new__ = <built-in method __new__ of type object at 0x8145ea0>
    __reduce__ = <built-in method __reduce__ of exceptions.Exception object at 0x9167a2c>
    __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.Exception object at 0x9167a2c>
    __repr__ = <method-wrapper '__repr__' of exceptions.Exception object at 0x9167a2c>
    __setattr__ = <method-wrapper '__setattr__' of exceptions.Exception object at 0x9167a2c>
    __setstate__ = <built-in method __setstate__ of exceptions.Exception object at 0x9167a2c>
    __str__ = <method-wrapper '__str__' of exceptions.Exception object at 0x9167a2c>
    args = ("File '/home/teramoto/.umit/umitng.db' does not exist or could not be found!",)
    message = "File '/home/teramoto/.umit/umitng.db' does not exist or could not be found!"

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

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/umitGUI/App.py", line 60, in __create_show_main_window
    from umitGUI.MainWindow import MainWindow
  File "/usr/lib/python2.5/site-packages/umitGUI/MainWindow.py", line 64, in <module>
    from umitCore.DataDecay import remove_old_data
  File "/usr/lib/python2.5/site-packages/umitCore/DataDecay.py", line 29, in <module>
    umitdb = Path.umitdb_ng
  File "/usr/lib/python2.5/site-packages/umitCore/Paths.py", line 249, in __getattr__
    self.__dict__['config_dir'], base_paths[name]))
  File "/usr/lib/python2.5/site-packages/umitCore/Paths.py", line 349, in return_if_exists
    raise Exception("File '%s' does not exist or could not be found!" % path)
Exception: File '/home/teramoto/.umit/umitng.db' does not exist or could not be found!


Change History

Changed 4 years ago by gpolo

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

Please remove your ~/.umit, or rename it to something else and then try running umit again. I believe you had an older ~/.umit but umit didn't copy the new file there.

Changed 4 years ago by gpolo

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

Ticket #212 will take care of this.

Note: See TracTickets for help on using tickets.