Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alert error: AttributeError("'module' object has no attribute 'json_util'",) #21

Open
jojoblaze opened this issue Apr 25, 2013 · 2 comments

Comments

@jojoblaze
Copy link

hi, when I log in the app I receive an alert with this message:

error: AttributeError("'module' object has no attribute 'json_util'",)

I have already replaced
from pymongo import json_util
with
from bson import json_util
in the view

what am I missing now?

thanks in advance

@aethemba
Copy link

I've got the same issue. Any clues what's causing this yet?

@aethemba
Copy link

A quick grep showed me that there are more calls to pymongo.json_util in views.py. I replaced those calls with just "json_util" and I was on my way. Hope that helps someone!

On a side note, I did have to replace the calls to binary with the code with this commit to get everyhting working smoothly:
https://github.com/Fiedzia/Fang-of-Mongo/pull/14/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants