Skip to content

Not able to import  #2

Open
Open

Description

@harik68

If I use the command

from bsonstream import KeyValueBSONInput

I am getting the folliowing error


ImportError Traceback (most recent call last)
in ()
----> 1 from bsonstream import KeyValueBSONInput

build/bdist.macosx-10.7-x86_64/egg/bsonstream/init.py in ()

ImportError: cannot import name InvalidBSON

What is the solution?

Activity

  1. bauman commented on Aug 18, 2017

    @bauman
    Owner

    sounds like you did

    pip install bson

    which is a 3rd party and unsupported python-bson module. This module requires the fully supported bson module from the python mongo project.

    You should be able to put https://github.com/mongodb/mongo-python-driver/tree/master/bson in your python path

    or install the full pymongo driver from pip

    pip install pymongo

    some linux distributions package the official pymongo bson implementation separate from pymongo itself for exactly this reason. EPEL packages the official supported bson implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions