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

Readthedocs is unhappy with the extension #4

Open
astronomyk opened this issue Mar 29, 2019 · 1 comment
Open

Readthedocs is unhappy with the extension #4

astronomyk opened this issue Mar 29, 2019 · 1 comment

Comments

@astronomyk
Copy link
Contributor

Hi,

Thanks for writing the package!

Just an FYI. When running on the read-the-docs system and on my own system (py3.6 / sphinx 1.6.7) I get the following error:

"/home/docs/checkouts/readthedocs.org/user_builds/anisocado/envs/latest/lib/python3.7/site-packages/sphinx_execute_code/__init__.py", line 81

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

I guess this was missed during the upgrade to py3.

Cheers,
K

Full traceback from readthedocs:

Running Sphinx v1.6.7
making output directory...
loading translations [en]... done
/home/docs/checkouts/readthedocs.org/user_builds/anisocado/envs/latest/lib/python3.7/site-packages/sphinx/util/compat.py:40: RemovedInSphinx17Warning: sphinx.util.compat.Directive is deprecated and will be removed in Sphinx 1.7, please use docutils' instead.
  RemovedInSphinx17Warning)

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/anisocado/envs/latest/lib/python3.7/site-packages/sphinx/cmdline.py", line 305, in main
    opts.warningiserror, opts.tags, opts.verbosity, opts.jobs)
  File "/home/docs/checkouts/readthedocs.org/user_builds/anisocado/envs/latest/lib/python3.7/site-packages/sphinx/application.py", line 196, in __init__
    self.setup_extension(extension)
  File "/home/docs/checkouts/readthedocs.org/user_builds/anisocado/envs/latest/lib/python3.7/site-packages/sphinx/application.py", line 456, in setup_extension
    self.registry.load_extension(self, extname)
  File "/home/docs/checkouts/readthedocs.org/user_builds/anisocado/envs/latest/lib/python3.7/site-packages/sphinx/registry.py", line 196, in load_extension
    mod = __import__(extname, None, None, ['setup'])
  File "/home/docs/checkouts/readthedocs.org/user_builds/anisocado/envs/latest/lib/python3.7/site-packages/sphinx_execute_code/__init__.py", line 81
    exec code
            ^
SyntaxError: Missing parentheses in call to 'exec'

Exception occurred:
  File "/home/docs/checkouts/readthedocs.org/user_builds/anisocado/envs/latest/lib/python3.7/site-packages/sphinx/registry.py", line 196, in load_extension
    mod = __import__(extname, None, None, ['setup'])
  File "/home/docs/checkouts/readthedocs.org/user_builds/anisocado/envs/latest/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 /tmp/sphinx-err-ui9iv69y.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!
@spacemanspiff2007
Copy link

@jpsenior :
Could you push the package to pypi, please?

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

2 participants