при импорте pymongo синтаксическая ошибка
кто-нибудь может помочь с этим ?
centos 6.5, python 3.3.4, pymongo 2.7.1, virtualenv
пробывал так
pip uninstall pymongo
pip uninstall bson
pip install pymongo
вот здесь проблема обозначена вроде бы, но что-то не очень понятно, как решается вопрос
http://api.mongodb.org/python/current/python3.html#why-do-i-get-a-syntax-error-importing-pymongo-after-installing-from-source
Python 3.3.4 (default, Feb 11 2014, 09:13:39)
on linux
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import pymongo
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
File “/usr/local/lib/python3.3/site-packages/pymongo/__init__.py”, line 92, in <module>
from pymongo.connection import Connection
File “/usr/local/lib/python3.3/site-packages/pymongo/connection.py”, line 39, in <module>
from pymongo.mongo_client import MongoClient
File “/usr/local/lib/python3.3/site-packages/pymongo/mongo_client.py”, line 46, in <module>
from pymongo import (auth,
File “/usr/local/lib/python3.3/site-packages/pymongo/pool.py”, line 22, in <module>
from pymongo import thread_util
File “/usr/local/lib/python3.3/site-packages/pymongo/thread_util.py”, line 31, in <module>
from gevent.lock import BoundedSemaphore as GeventBoundedSemaphore
File “/usr/local/lib/python3.3/site-packages/gevent/__init__.py”, line 36, in <module>
from gevent.hub import get_hub, iwait, wait
File “/usr/local/lib/python3.3/site-packages/gevent/hub.py”, line 282
except Exception, ex:
^
SyntaxError: invalid syntax