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

Python3 support #1

Open
lgarcin opened this issue Sep 11, 2017 · 9 comments
Open

Python3 support #1

lgarcin opened this issue Sep 11, 2017 · 9 comments

Comments

@lgarcin
Copy link

lgarcin commented Sep 11, 2017

Could it be possible to support Python3 ?

@jpsenior
Copy link
Owner

Sure, would be happy to. I'll let you know when this is done and pypi updated.

@rabernat
Copy link

This package looks perfect for me, but I also would need python 3 support.

Any update on progress towards this?

@cwirz
Copy link

cwirz commented May 11, 2018

Done with #3

@joamatab
Copy link

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

@wlievens
Copy link

I get this issue

    exec code
            ^
SyntaxError: Missing parentheses in call to 'exec'

I assume this is a python 2/3 issue?

@cwirz
Copy link

cwirz commented Jun 12, 2020

@wlievens use my fork: https://github.com/cwirz/sphinx-execute-code

@Freed-Wu
Copy link

Freed-Wu commented Dec 9, 2022

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?

@cwirz
Copy link

cwirz commented Dec 9, 2022

@Freed-Wu my version should work #3

@Freed-Wu
Copy link

Thanks for your reply. 😄 But I found my requirement is beyond this package so I have to create a new package for myself.

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

7 participants