|
@ -9,11 +9,11 @@ from urlparse import urlparse |
|
|
try: |
|
|
try: |
|
|
import pygeoip |
|
|
import pygeoip |
|
|
except: |
|
|
except: |
|
|
print "\nError importing: pygeoip lib. \n\nOn Debian based systems, please try like root:\n\n $ apt-get install python-geoip\n" |
|
|
print "\nError importing: pygeoip lib. \n\n On Debian based systems:\n\n $ apt-get install python-pip and $ pip install pygeoip \n" |
|
|
sys.exit(2) |
|
|
sys.exit(2) |
|
|
try: |
|
|
try: |
|
|
import sqlite3 |
|
|
import sqlite3 |
|
|
except: |
|
|
except: #this should be a standard package of python 2.5+ |
|
|
print "\nError importing: sqlite3 lib. \n\nOn Debian based systems, please try like root:\n\n $ apt-get install sqlite3\n" |
|
|
print "\nError importing: sqlite3 lib. \n\nOn Debian based systems, please try like root:\n\n $ apt-get install sqlite3\n" |
|
|
sys.exit(2) |
|
|
sys.exit(2) |
|
|
|
|
|
|
|
@ -719,10 +719,10 @@ class bc(object): |
|
|
open('data.xml', 'w') # starting a new xml data container in write mode |
|
|
open('data.xml', 'w') # starting a new xml data container in write mode |
|
|
traces = self.try_running(self.traces, "\nInternal error tracerouting.") |
|
|
traces = self.try_running(self.traces, "\nInternal error tracerouting.") |
|
|
# open same browser of history access on a new tab |
|
|
# open same browser of history access on a new tab |
|
|
try: |
|
|
# try: |
|
|
webbrowser.open('http://127.0.0.1:8080', new=0) # open on same tab? |
|
|
# webbrowser.open('http://127.0.0.1:8080', new=2) # open on same tab? |
|
|
except: |
|
|
# except: |
|
|
print "Error: Browser is not responding correctly.\n" |
|
|
# print "Error: Browser is not responding correctly.\n" |
|
|
time.sleep(5) # free process time or goodbye :-) |
|
|
time.sleep(5) # free process time or goodbye :-) |
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
if __name__ == "__main__": |
|
|