Skip to content

AttributeError: 'module' object has no attribute 'Connection' #13

Description

@fones

I have run python setup.py install without errors, and then python server.py got me this:

$ python server.py
Traceback (most recent call last):
  File "server.py", line 27, in <module>
    from professor import app as application
  File "/Users/fones/Documents/Git/professor/professor/__init__.py", line 44, in <module>
    conn = pymongo.Connection(**app.config.get('MONGODB_CONFIG', {}))
AttributeError: 'module' object has no attribute 'Connection'

I am from Node.js env, so dont know much about Python.
My stack: MacOS 10.11.6, Python 2.7.13, MongoDB v3.2.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions