Giter Club home page Giter Club logo

Comments (6)

icemac avatar icemac commented on May 24, 2024 1

Thank you. Switching to Python 3 on RTD fixed the issue.

from zopetoolkit.

mgedmin avatar mgedmin commented on May 24, 2024
Running Sphinx v1.7.9
loading translations [en]... done

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/zopetoolkit/envs/latest/local/lib/python2.7/site-packages/sphinx/cmdline.py", line 303, in main
    args.warningiserror, args.tags, args.verbosity, args.jobs)
  File "/home/docs/checkouts/readthedocs.org/user_builds/zopetoolkit/envs/latest/local/lib/python2.7/site-packages/sphinx/application.py", line 191, in __init__
    self.setup_extension(extension)
  File "/home/docs/checkouts/readthedocs.org/user_builds/zopetoolkit/envs/latest/local/lib/python2.7/site-packages/sphinx/application.py", line 411, in setup_extension
    self.registry.load_extension(self, extname)
  File "/home/docs/checkouts/readthedocs.org/user_builds/zopetoolkit/envs/latest/local/lib/python2.7/site-packages/sphinx/registry.py", line 318, in load_extension
    raise ExtensionError(__('Could not import extension %s') % extname, err)
ExtensionError: Could not import extension ztksphinx (exception: cannot import name Directive)

Extension error:
Could not import extension ztksphinx (exception: cannot import name Directive)

from zopetoolkit.

mgedmin avatar mgedmin commented on May 24, 2024

This is line 2 of zopetoolkit/docs/ztksphinx.py:

from docutils.parsers.rst import Directive

And since line 1 is from docutils import nodes and it didn't fail, we have to assume docutils is installed in the virtualenv.

The readthedocs log shows a pip install docutils==0.13.1, and https://sourceforge.net/p/docutils/code/HEAD/tree/tags/docutils-0.13.1/docutils/parsers/rst/__init__.py shows that Directive is defined in that module in that version, so I'm stumped.

from zopetoolkit.

icemac avatar icemac commented on May 24, 2024

Locally I was able to create the documentation by reproducing the steps done by RTD. That's strange.

from zopetoolkit.

icemac avatar icemac commented on May 24, 2024

@tseaver Could you please add me (icemac) as developer to https://readthedocs.org/projects/zopetoolkit/ to further investigate the problem?

from zopetoolkit.

tseaver avatar tseaver commented on May 24, 2024

@icemac Done.

from zopetoolkit.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.