-
Notifications
You must be signed in to change notification settings - Fork 60
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
cannot import name json_util #17
Comments
Hi, The module json_util has been deprecated since version 1.9. Use bson.json_util instead. Regards |
Thx for the info. On Thu, Sep 6, 2012 at 7:10 PM, Rodrigo Machado [email protected]:
Charles Moulliard |
I have fixed this on my fork. |
Had the same error and i get this one when i change json_util for bson.json_util : invalid syntax (views.py, line 9) Request Method: GET Exception Value: Python Executable: /usr/bin/python |
@Trigu try |
Hi,
Even if json-utils is installed (pip install json_utils), I still get this error :
ImportError at /fangofmongo/
cannot import name json_util
Request Method: GET
Request URL: http://localhost:8000/fangofmongo/
Django Version: 1.4.1
Exception Type: ImportError
Exception Value:
cannot import name json_util
Exception Location: /Users/chmoulli/Temp/Fang-of-Mongo/fangofmongo/fom/views.py in , line 9
Python Executable: /usr/bin/python
Python Version: 2.7.1
Python Path:
['/Users/chmoulli/Temp/Fang-of-Mongo/fangofmongo',
'/Library/Python/2.7/site-packages/Pygments-1.5-py2.7.egg',
'/Library/Python/2.7/site-packages/nodeenv-0.5.2-py2.7.egg',
'/Library/Python/2.7/site-packages/Markdown-2.1.1-py2.7.egg',
'/Library/Python/2.7/site-packages/elementtree-1.2.7_20070827_preview-py2.7.egg',
'/Library/Python/2.7/site-packages/pip-1.1-py2.7.egg',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC',
'/Library/Python/2.7/site-packages']
What is the python dependency which is missing ?
Regards,
Charles
The text was updated successfully, but these errors were encountered: