Issue #476 resolved

`make html` spits an error because simplejson is not installed.

Santoso Wijaya avatarSantoso Wijaya created an issue

On a Cygwin environment without simplejson installed, I got the following after upgrading to Sphinx 1.0.1 (this worked previously with 1.0 dev):

sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v1.0.1
loading pickled environment... failed: env version not current

Exception occurred:
  File "/usr/lib/python2.5/site-packages/Sphinx-1.0.1-py2.5.egg/sphinx/util/", line 42, in <module>
    load = json.load
AttributeError: 'NoneType' object has no attribute 'load'
The full traceback has been saved in /tmp/sphinx-err-F1Sjud.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
Either send bugs to the mailing list at <>,
or report them in the tracker at <>. Thanks!
make: *** [html] Error 1

The issue disappears after installing simplejson with easy_install. Shouldn't there be safeguards against this, though?

Here's the content of the temp logfile:

# Sphinx version: 1.0.1
# Docutils version: 0.7 release
# Jinja2 version: 2.5
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Sphinx-1.0.1-py2.5.egg/sphinx/", line 172, in main
    warningiserror, tags)
  File "/usr/lib/python2.5/site-packages/Sphinx-1.0.1-py2.5.egg/sphinx/", line 136, in __init__
  File "/usr/lib/python2.5/site-packages/Sphinx-1.0.1-py2.5.egg/sphinx/", line 196, in _init_builder
    __import__('' + mod, None, None, [cls]), cls)
  File "/usr/lib/python2.5/site-packages/Sphinx-1.0.1-py2.5.egg/sphinx/builders/", line 33, in <module>
    from sphinx.util import jsonimpl, copy_static_entry
  File "/usr/lib/python2.5/site-packages/Sphinx-1.0.1-py2.5.egg/sphinx/util/", line 42, in <module>
    load = json.load
AttributeError: 'NoneType' object has no attribute 'load'

Comments (3)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.