ericholscher/sphinx-tutorial

exception prevents command make.html from importing module 'main' from module 'crawler'

Opened this issue · 0 comments

I had to modify one line in 'pycon-sphinx-tutorial/src/crawler/main.py' to deal with an import exception:
'from utils import log, shouldignore'. To import the module 'main' so that Crawler Python API is displayed correctly one could either comment out the line or put it inside a try/except block:

try:
from utils import log, shouldignore
except ImportError:
pass

The command 'make html' now runs without WARNING and the page displays as intended, 'tho this will presumably affect the log and shouldignore flags elsewhere in the tutorial.