Ticket #101 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

Umit Crash - 'name '_' is not defined'

Reported by: iain@… Owned by: getxsick
Priority: high Milestone: Umit 1.0beta1
Component: CrashReport Version: current svn
Keywords: user crash Cc:

Description (last modified by getxsick) (diff)

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

sys.platform linux2
os.name posix
Gtk version 2.12.8
Umit version 0.9.5

Description


Versions:
---
GTK: 2.12.8
PyGTK: 2.14.1
HIGWidgets: 0.9.5
Python: 2.5.1 (r251:54863, May  4 2007, 16:52:23) 
[GCC 4.1.2]
Nmap: Nmap version 4.20 ( http://insecure.org )
Operating System: Linux curly 2.6.21.5-smp #4 SMP Wed Feb 6 00:33:14 GMT 2008 i686
Umit: 0.9.5
UmitCore: 0.9.5
UmitGUI: 0.9.5
---
<type 'exceptions.NameError'>
Python 2.5.1: /usr/bin/python
Wed Aug 20 22:59:22 2008

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/local/umit/lib/python2.5/site-packages/umitGUI/App.py in __create_show_main_window(self=<umitGUI.App.App instance at 0xb7b0d8ec>)
   52 
   53     def __create_show_main_window(self):
   54         from umitGUI.MainWindow import MainWindow
   55         self.main_window = MainWindow()
   56 
umitGUI undefined
MainWindow undefined

 /usr/local/umit/lib/python2.5/site-packages/umitGUI/MainWindow.py in <module>()
   45 from umitGUI.About import About
   46 from umitGUI.DiffCompare import DiffWindow
   47 from umitGUI.SearchWindow import SearchWindow
   48 from umitGUI.BugReport import BugReport
   49 
umitGUI undefined
SearchWindow undefined

 /usr/local/umit/lib/python2.5/site-packages/umitGUI/SearchWindow.py in <module>()
   23 import gtk
   24 
   25 from umitGUI.SearchGUI import SearchGUI
   26 
   27 from umitCore.I18N import _
umitGUI undefined
SearchGUI undefined

 /usr/local/umit/lib/python2.5/site-packages/umitGUI/SearchGUI.py in <module>()
   39 from umitCore.UmitLogging import log
   40 from umitCore.NmapParser import months
   41 from umitCore.SearchResult import SearchDir, SearchDB, SearchTabs
   42 from umitCore.UmitConf import SearchConfig
   43 
umitCore undefined
SearchDir undefined
SearchDB undefined
SearchTabs undefined

 /usr/local/umit/lib/python2.5/site-packages/umitCore/SearchResult.py in <module>()
   29 from types import StringTypes
   30 
   31 from umitCore.UmitDB import UmitDB
   32 from umitCore.NmapParser import NmapParser
   33 from umitCore.UmitLogging import log
umitCore undefined
UmitDB undefined

 /usr/local/umit/lib/python2.5/site-packages/umitCore/UmitDB.py in <module>()
   33         import sqlite3 as sqlite
   34     except ImportError:
   35         raise ImportError(_("No module named dbapi2.pysqlite2 or sqlite3"))
   36     from sqlite3 import OperationalError
   37 
builtinImportError = <type 'exceptions.ImportError'>
_ undefined
<type 'exceptions.NameError'>: name '_' is not defined

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

Traceback (most recent call last):
  File "/usr/local/umit/lib/python2.5/site-packages/umitGUI/App.py", line 54, in __create_show_main_window
    from umitGUI.MainWindow import MainWindow
  File "/usr/local/umit/lib/python2.5/site-packages/umitGUI/MainWindow.py", line 47, in <module>
    from umitGUI.SearchWindow import SearchWindow
  File "/usr/local/umit/lib/python2.5/site-packages/umitGUI/SearchWindow.py", line 25, in <module>
    from umitGUI.SearchGUI import SearchGUI
  File "/usr/local/umit/lib/python2.5/site-packages/umitGUI/SearchGUI.py", line 41, in <module>
    from umitCore.SearchResult import SearchDir, SearchDB, SearchTabs
  File "/usr/local/umit/lib/python2.5/site-packages/umitCore/SearchResult.py", line 31, in <module>
    from umitCore.UmitDB import UmitDB
  File "/usr/local/umit/lib/python2.5/site-packages/umitCore/UmitDB.py", line 35, in <module>
    raise ImportError(_("No module named dbapi2.pysqlite2 or sqlite3"))
NameError: name '_' is not defined


Change History

Changed 4 years ago by getxsick

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

Changed 4 years ago by getxsick

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

It's being fixed in r3879. Also you have to install pysqlite (or use Python 2.5.x which has pysqlite included in standard library).

Note: See TracTickets for help on using tickets.