mrsarm / mongotail

Command line tool to log all MongoDB queries in a "tail"able way
https://pypi.org/project/mongotail/
GNU General Public License v3.0
192 stars 17 forks source link

ImportError: cannot import name string_type #22

Closed zishiguo closed 7 years ago

zishiguo commented 7 years ago

who know reason ? image

mrsarm commented 7 years ago

I think this is your problem: https://github.com/py-bson/bson/issues/29

Try to install in a virtualenv mongotail to see what happens.

Another thing you can do is install and execute mongotail with Python 3 instead of Python 2, so if you don't have installed the bson library in Python 3, there will be no conflicts. You ca achieve this with: sudo pip3 install mongotail.

Let me know whether this worked for you or not.

zishiguo commented 7 years ago

@mrsarm thanks, refer to https://stackoverflow.com/questions/32618686/how-to-install-pip-in-centos-7 it has solved!