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

Documentation says use Python 3 but apparently code is using Python 2 #223

Open
lfmunoz opened this issue Nov 21, 2020 · 0 comments
Open

Comments

@lfmunoz
Copy link

lfmunoz commented Nov 21, 2020

Documentation here:

https://linux-kernel-labs.github.io/refs/heads/master/info/vm.html#vm-link

Says use python3

Running make docs

Gives error

SyntaxError: Missing parentheses in call to 'print'

This is a common error when using Python 3 on Python 2 code

➜ make docs                                                                                                                                                                                          
make -C /home/luis/github/TMP/kernel/linux DOCBOOKS= SPHINXDIRS="teaching" htmldocs                                                                                                                  
make[1]: Entering directory '/home/luis/github/TMP/kernel/linux'                                                                                                                                     
  HOSTCC  scripts/basic/fixdep
  SPHINX  htmldocs --> file:///home/luis/github/TMP/kernel/linux/Documentation/output/teaching
  PARSE   include/uapi/linux/dvb/audio.h
  PARSE   include/uapi/linux/dvb/ca.h
  PARSE   include/uapi/linux/dvb/dmx.h
  PARSE   include/uapi/linux/dvb/frontend.h
  PARSE   include/uapi/linux/dvb/net.h
  PARSE   include/uapi/linux/dvb/video.h
  PARSE   include/uapi/linux/videodev2.h
  PARSE   include/uapi/linux/media.h
  PARSE   include/uapi/linux/cec.h
  PARSE   include/uapi/linux/lirc.h
Running Sphinx v1.7.9
Warning: The Sphinx 'sphinx_rtd_theme' HTML theme was not found. Make sure you have the theme installed to produce pretty HTML output. Falling back to the default theme.
load additional sphinx-config: /home/luis/github/TMP/kernel/linux/Documentation/teaching/conf.py

Exception occurred:
  File "/home/luis/anaconda3/lib/python3.5/site-packages/sphinx/registry.py", line 315, in load_extension
    mod = __import__(extname, None, None, ['setup'])
  File "/home/luis/github/TMP/kernel/linux/Documentation/sphinx/ditaa.py", line 79
    print self.arguments
             ^
SyntaxError: Missing parentheses in call to 'print'
The full traceback has been saved in /tmp/sphinx-err-ck7oub5u.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!
Documentation/Makefile:68: recipe for target 'htmldocs' failed
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

1 participant