mongodb-labs / edda

A log visualizer for MongoDB - This Repository is NOT a supported MongoDB product
232 stars 28 forks source link

what's the matter with the exception #106

Open realluren opened 12 years ago

realluren commented 12 years ago

[root@aaa edda]# python run_edda.py --help File "run_edda.py", line 175 except IOError as e: ^ SyntaxError: invalid syntax

kaushal commented 12 years ago

Can you make sure you are running the most recent version of edda? Please run the command "edda --version" and if it is lower than 0.7.0, please run "pip install edda --upgrade".

realluren commented 12 years ago

I am in the Intranet and the name resolution error ' Could not fetch URL http://pypi.python.org/simple/edda: <urlopen error (-3, 'Temporary failure in name resolution')>' will occur,so I download the resource of edda and put it on my mongo server.When I run python run_edda.py --help,this exception occurs.

kchodorow commented 12 years ago

What version of Python are you using?

realluren commented 12 years ago

Now it's 2.7.2,but I can't import objectid from bson

kchodorow commented 12 years ago

Do you have pymongo installed?

realluren commented 12 years ago

yeap,I have installed it and can import pymongo

kchodorow commented 12 years ago

If you use the python shell, can you import objectid from bson?

Did you, by any chance, install the bson package separately?

realluren commented 12 years ago

[root@localhost Python-2.7.2]# python2.7 Python 2.7.2 (default, Sep 5 2012, 18:44:27) [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2 Type "help", "copyright", "credits" or "license" for more information.

from bson import objectid
Traceback (most recent call last): File "", line 1, in ImportError: No module named bson

I have installed bson

[root@localhost home]# cd bson-0.3.2 [root@localhost bson-0.3.2]# ll total 24 drwxrwxr-x 2 1005 1007 4096 Oct 31 2010 bson drwxrwxr-x 2 1005 1007 4096 Jan 30 2011 bson.egg-info -rw-rw-r-- 1 1005 1007 306 Jan 30 2011 PKG-INFO -rw-rw-r-- 1 1005 1007 1060 Oct 31 2010 README -rw-rw-r-- 1 1005 1007 59 Jan 30 2011 setup.cfg -rwxrwxr-x 1 1005 1007 689 Jan 30 2011 setup.py [root@localhost bson-0.3.2]# python2.7 setup.py install running install running bdist_egg running egg_info writing requirements to bson.egg-info/requires.txt writing bson.egg-info/PKG-INFO writing top-level names to bson.egg-info/top_level.txt writing dependency_links to bson.egg-info/dependency_links.txt reading manifest file 'bson.egg-info/SOURCES.txt' writing manifest file 'bson.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build/bdist.linux-x86_64/egg creating build/bdist.linux-x86_64/egg/bson copying build/lib/bson/init.py -> build/bdist.linux-x86_64/egg/bson copying build/lib/bson/network.py -> build/bdist.linux-x86_64/egg/bson copying build/lib/bson/codec.py -> build/bdist.linux-x86_64/egg/bson byte-compiling build/bdist.linux-x86_64/egg/bson/init.py to init.pyc byte-compiling build/bdist.linux-x86_64/egg/bson/network.py to network.pyc byte-compiling build/bdist.linux-x86_64/egg/bson/codec.py to codec.pyc creating build/bdist.linux-x86_64/egg/EGG-INFO copying bson.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying bson.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying bson.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying bson.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying bson.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO zip_safe flag not set; analyzing archive contents... creating 'dist/bson-0.3.2-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing bson-0.3.2-py2.7.egg Removing /usr/local/lib/python2.7/site-packages/bson-0.3.2-py2.7.egg Copying bson-0.3.2-py2.7.egg to /usr/local/lib/python2.7/site-packages bson 0.3.2 is already the active version in easy-install.pth

Installed /usr/local/lib/python2.7/site-packages/bson-0.3.2-py2.7.egg Processing dependencies for bson==0.3.2 Searching for pytz>=2010b Reading http://pypi.python.org/simple/pytz/ Reading http://pytz.sourceforge.net Reading http://sourceforge.net/project/showfiles.php?group_id=79122 Reading http://www.stuartbishop.net/Software/pytz

It hung here.Beacuse it can't resolve http://www.stuartbishop.net/Software/pytz and this page is not exist.

kchodorow commented 12 years ago

You have to uninstall the bson package. That is not what you want. Then you have to install pymongo. The bson package conflicts with pymongo, which is what edda requires to run.