{"action":"created","issue":{"url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/929","labels_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/929/labels{/name}","comments_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/929/comments","events_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/929/events","html_url":"https://github.com/MongoEngine/mongoengine/issues/929","id":66451948,"number":929,"title":"Installing mongoengine 0.9.0 messes up pymongo's bson package","user":{"login":"eli-b","id":834999,"avatar_url":"https://avatars.githubusercontent.com/u/834999?v=3","gravatar_id":"","url":"https://api.github.com/users/eli-b","html_url":"https://github.com/eli-b","followers_url":"https://api.github.com/users/eli-b/followers","following_url":"https://api.github.com/users/eli-b/following{/other_user}","gists_url":"https://api.github.com/users/eli-b/gists{/gist_id}","starred_url":"https://api.github.com/users/eli-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eli-b/subscriptions","organizations_url":"https://api.github.com/users/eli-b/orgs","repos_url":"https://api.github.com/users/eli-b/repos","events_url":"https://api.github.com/users/eli-b/events{/privacy}","received_events_url":"https://api.github.com/users/eli-b/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-05T15:51:05Z","updated_at":"2015-04-08T09:28:13Z","closed_at":"2015-04-08T09:28:05Z","body":"Running\r\n```\r\npip install mongoengine==0.9.0\r\n```\r\nwhen an older version of mongoengine is already installed and pymongo==2.7.2 is already installed\r\ncauses this line to fail:\r\n```\r\nfrom bson.errors import *\r\n```\r\nwith the following error:\r\n```\r\nImportError: No module named bson.errors\r\n```\r\n\r\nRunning\r\n```\r\npip uninstall pymongo\r\npip install pymongo==2.7.2\r\n```\r\nfixes the problem.\r\nAnother workaround is to start your virtualenv from scratch. This may take a long time when many requirements need to be built from source but it's sometimes the only option on services like Heroku or CircleCI.\r\n\r\nI looked at ```setup.py``` but didn't immediately see anything wrong there."},"comment":{"url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/comments/90859844","html_url":"https://github.com/MongoEngine/mongoengine/issues/929#issuecomment-90859844","issue_url":"https://api.github.com/repos/MongoEngine/mongoengine/issues/929","id":90859844,"user":{"login":"rozza","id":420,"avatar_url":"https://avatars.githubusercontent.com/u/420?v=3","gravatar_id":"","url":"https://api.github.com/users/rozza","html_url":"https://github.com/rozza","followers_url":"https://api.github.com/users/rozza/followers","following_url":"https://api.github.com/users/rozza/following{/other_user}","gists_url":"https://api.github.com/users/rozza/gists{/gist_id}","starred_url":"https://api.github.com/users/rozza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rozza/subscriptions","organizations_url":"https://api.github.com/users/rozza/orgs","repos_url":"https://api.github.com/users/rozza/repos","events_url":"https://api.github.com/users/rozza/events{/privacy}","received_events_url":"https://api.github.com/users/rozza/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T09:28:13Z","updated_at":"2015-04-08T09:28:13Z","body":"See: #919 "}}