sphinx-execute-code
sphinx-execute-code copied to clipboard
Python3 support
Could it be possible to support Python3 ?
Sure, would be happy to. I'll let you know when this is done and pypi updated.
This package looks perfect for me, but I also would need python 3 support.
Any update on progress towards this?
Done with #3
I think the code is not still python3 compatible
Running Sphinx v2.1.2
Exception occurred: File "/Users/joaquin/miniconda3/lib/python3.7/site-packages/sphinx/registry.py", line 473, in load_extension mod = import(extname, None, None, ['setup']) File "/Users/joaquin/miniconda3/lib/python3.7/site-packages/sphinx_execute_code/init.py", line 81 exec code ^ SyntaxError: Missing parentheses in call to 'exec' The full traceback has been saved in /var/folders/hq/3c54vd0s21911s3rjjj2csj00000gn/T/sphinx-err-xi7nygqb.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 2
I get this issue
exec code
^
SyntaxError: Missing parentheses in call to 'exec'
I assume this is a python 2/3 issue?
@wlievens use my fork: https://github.com/cwirz/sphinx-execute-code
Exception occurred: File "/home/wzy/.local/lib/python3.10/site-packages/sphinx_execute_code/init.py", line 77, in execute_code output = StringIO.StringIO() AttributeError: type object '_io.StringIO' has no attribute 'StringIO'
Cannot work in python3.10?
@Freed-Wu my version should work #3
Thanks for your reply. :smile: But I found my requirement is beyond this package so I have to create a new package for myself.