Exception occurred: .../sphinxcontrib/phpdomain.py, line 457

Anonymous avatarAnonymous created an issue

Hi, I was trying to build the User Guide for CodeIgniter (a PHP framework) but I get an error...

The terminal output was as follows:

$ make html
sphinx-build -b html -d build/doctrees   source build/html
Making output directory...
Running Sphinx v1.2b1
loading pickled environment... failed: [Errno 2] No such file or directory: '/media/Files/Development/github/Web-Frameworks/CodeIgniter/user_guide_src/build/doctrees/environment.pickle'
building [html]: targets for 147 source files that are out of date
updating environment: 147 added, 0 changed, 0 removed
reading sources... [100%] tutorial/static_pages                                                                                                                                                
/media/Files/Development/github/Web-Frameworks/CodeIgniter/user_guide_src/source/changelog.rst:220: WARNING: Bullet list ends without a blank line; unexpected unindent.
/media/Files/Development/github/Web-Frameworks/CodeIgniter/user_guide_src/source/changelog.rst:221: WARNING: Block quote ends without a blank line; unexpected unindent.
/media/Files/Development/github/Web-Frameworks/CodeIgniter/user_guide_src/source/general/errors.rst:35: WARNING: duplicate object description of show_error, other instance in /media/Files/Development/github/Web-Frameworks/CodeIgniter/user_guide_src/source/general/common_functions.rst
/media/Files/Development/github/Web-Frameworks/CodeIgniter/user_guide_src/source/general/errors.rst:58: WARNING: duplicate object description of show_404, other instance in /media/Files/Development/github/Web-Frameworks/CodeIgniter/user_guide_src/source/general/common_functions.rst
/media/Files/Development/github/Web-Frameworks/CodeIgniter/user_guide_src/source/general/errors.rst:80: WARNING: duplicate object description of log_message, other instance in /media/Files/Development/github/Web-Frameworks/CodeIgniter/user_guide_src/source/general/common_functions.rst
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... 
Exception occurred:
  File "/usr/lib/python3.3/site-packages/sphinxcontrib_phpdomain-0.1.4-py3.3.egg/sphinxcontrib/phpdomain.py", line 457, in generate
    modules = sorted(self.domain.data['namespaces'].iteritems(),
AttributeError: 'dict' object has no attribute 'iteritems'
The full traceback has been saved in /tmp/sphinx-err-bpq9bb.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 <http://groups.google.com/group/sphinx-users/>,
or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
make: *** [html] Error 1

I have never used Sphinx before and have no knowledge of Python either! ....sorry

Comments (1)

  1. Takayuki Shimizukawa
    Exception occurred:
      File "/usr/lib/python3.3/site-packages/sphinxcontrib_phpdomain-0.1.4-py3.3.egg/sphinxcontrib/phpdomain.py", line 457, in generate
        modules = sorted(self.domain.data['namespaces'].iteritems(),
    AttributeError: 'dict' object has no attribute 'iteritems'
    

    Error says dict object has no attribute iteritems. Python3's dict does not have iteritems method. I think sphinxcontrib-phpdomain did not support Python3.

    Please use the Sphinx with Python2. Or please contact the sphinxcontrib-phpdomain's author.

  2. 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 ProjectModifiedEvent.java.
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.