Python 3 Syntax Error
Issue #75
invalid
The line except UnicodeDecodeError, e:
here is not valid Python 3 and produces the following error.
scopatz@localhost ~/fuelcycle.org source $ make html
sphinx-build -b html -d ./gh-build/doctrees source ./gh-build
Running Sphinx v1.3.1
Cloud Version: 1.7
Exception occurred:
File "/home/scopatz/miniconda/lib/python3.5/site-packages/sphinxcontrib/bibtex/directives.py", line 22, in <module>
from pybtex.database.input import bibtex
File "/home/scopatz/miniconda/lib/python3.5/site-packages/pybtex/database/input/__init__.py", line 53
except UnicodeDecodeError, e:
^
SyntaxError: invalid syntax
The full traceback has been saved in /tmp/sphinx-err-4kg1efz8.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.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make: *** [html] Error 1
Let me know if you need anything else.
Comments (3)
-
reporter -
Pybtex uses Python 2 syntax and 2to3. The sources are automatically converted to Python 3 when
setup.py install
is run with python3. This should work with pip, too.Did you run pip with python3? What was the exact command?
-
- changed status to invalid
OK, please reopen if still relevant.
- Log in to comment
I got pybtex from pip, for what it is worth.