From b9ab192608278daae213ebd94a12c0105e78df17 Mon Sep 17 00:00:00 2001 From: rscmbbng Date: Sat, 28 Sep 2013 13:16:21 +0200 Subject: [PATCH] corrected wrong message on how to install pygeoip --- doc/INSTALL | 6 ++++-- main.py | 12 ++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/doc/INSTALL b/doc/INSTALL index d8a318d..41d0c02 100644 --- a/doc/INSTALL +++ b/doc/INSTALL @@ -26,9 +26,11 @@ BC runs on OSx and Unix systems. It requires the following libraries/dependencie https://pypi.python.org/pypi/lxml/3.2.3 - * On Debian-based systems (ex: Ubuntu), run: + * On Debian-based systems (ex: Ubuntu), first run: - sudo apt-get install python-geoip python-lxml + sudo apt-get install python-pip + + and then run pip install lxml and pip install pygeoip - biplist: https://pypi.python.org/pypi/biplist/0.5 diff --git a/main.py b/main.py index 6f8bcf8..c769f36 100755 --- a/main.py +++ b/main.py @@ -9,11 +9,11 @@ from urlparse import urlparse try: import pygeoip 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) try: 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" sys.exit(2) @@ -719,10 +719,10 @@ class bc(object): open('data.xml', 'w') # starting a new xml data container in write mode traces = self.try_running(self.traces, "\nInternal error tracerouting.") # open same browser of history access on a new tab - try: - webbrowser.open('http://127.0.0.1:8080', new=0) # open on same tab? - except: - print "Error: Browser is not responding correctly.\n" + # try: + # webbrowser.open('http://127.0.0.1:8080', new=2) # open on same tab? + # except: + # print "Error: Browser is not responding correctly.\n" time.sleep(5) # free process time or goodbye :-) if __name__ == "__main__":