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

doc build failures: ipython version ? ipython directive #1761

Closed
josef-pkt opened this issue Jun 15, 2014 · 7 comments

Comments

Projects
None yet
3 participants
@josef-pkt
Copy link
Member

commented Jun 15, 2014

Several Linux distributions are running into "build" failures, they seem to build the doc first and never get to building the package itself

is there a specific ipython version requirement for
AttributeError: 'IPythonInputSplitter' object has no attribute 'source_raw_reset'

e.g. https://www.mail-archive.com/freebsd-pkg-fallout@freebsd.org/msg153659.html

building [html]: targets for 66 source files that are out of date
updating environment: 1739 added, 0 changed, 0 removed
reading sources... [  0%] anova
Traceback (most recent call last):
  File "setup.py", line 507, in <module>
    **setuptools_kwargs)
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/site-packages/sphinx/setup_command.py", line 161, in run
    app.build(force_all=self.all_files)
  File "/usr/lib/python2.7/site-packages/sphinx/application.py", line 212, in build
    self.builder.build_update()
  File "/usr/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 214, in build_update
    'out of date' % len(to_build))
  File "/usr/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 234, in build
    purple, length):
  File "/usr/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 134, in status_iterator
    for item in iterable:
  File "/usr/lib/python2.7/site-packages/sphinx/environment.py", line 477, in update_generator
    self.read_doc(docname, app=app)
  File "/usr/lib/python2.7/site-packages/sphinx/environment.py", line 624, in read_doc
    pub.publish()
  File "/usr/lib/python2.7/site-packages/docutils/core.py", line 217, in publish
    self.settings)
  File "/usr/lib/python2.7/site-packages/docutils/readers/__init__.py", line 72, in read
    self.parse()
  File "/usr/lib/python2.7/site-packages/docutils/readers/__init__.py", line 78, in parse
    self.parser.parse(self.input, document)
  File "/usr/lib/python2.7/site-packages/docutils/parsers/rst/__init__.py", line 172, in parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
  File "/usr/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 170, in run
    input_source=document['source'])
  File "/usr/lib/python2.7/site-packages/docutils/statemachine.py", line 239, in run
    context, state, transitions)
  File "/usr/lib/python2.7/site-packages/docutils/statemachine.py", line 460, in check_line
    return method(match, context, next_state)
  File "/usr/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2726, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "/usr/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 327, in section
    self.new_subsection(title, lineno, messages)
  File "/usr/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 395, in new_subsection
    node=section_node, match_titles=True)
  File "/usr/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 282, in nested_parse
    node=node, match_titles=match_titles)
  File "/usr/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib/python2.7/site-packages/docutils/statemachine.py", line 239, in run
    context, state, transitions)
  File "/usr/lib/python2.7/site-packages/docutils/statemachine.py", line 460, in check_line
    return method(match, context, next_state)
  File "/usr/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2726, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "/usr/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 327, in section
    self.new_subsection(title, lineno, messages)
  File "/usr/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 395, in new_subsection
    node=section_node, match_titles=True)
  File "/usr/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 282, in nested_parse
    node=node, match_titles=match_titles)
  File "/usr/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib/python2.7/site-packages/docutils/statemachine.py", line 239, in run
    context, state, transitions)
  File "/usr/lib/python2.7/site-packages/docutils/statemachine.py", line 460, in check_line
    return method(match, context, next_state)
  File "/usr/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2299, in explicit_markup
    nodelist, blank_finish = self.explicit_construct(match)
  File "/usr/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2311, in explicit_construct
    return method(self, expmatch)
  File "/usr/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2054, in directive
    directive_class, match, type_name, option_presets)
  File "/usr/lib/python2.7/site-packages/docutils/parsers/rst/states.py", line 2103, in run_directive
    result = directive_instance.run()
  File "/builddir/build/BUILD/statsmodels-0.5.0/docs/sphinxext/ipython_directive.py", line 612, in run
    rgxin, rgxout, promptin, promptout = self.setup()
  File "/builddir/build/BUILD/statsmodels-0.5.0/docs/sphinxext/ipython_directive.py", line 589, in setup
    store_history=False)
  File "/builddir/build/BUILD/statsmodels-0.5.0/docs/sphinxext/ipython_directive.py", line 260, in process_input_line
    source_raw = splitter.source_raw_reset()[1]
AttributeError: 'IPythonInputSplitter' object has no attribute 'source_raw_reset'
error: Bad exit status from /var/tmp/rpm-tmp.GGna28 (%build)
    Bad exit status from /var/tmp/rpm-tmp.GGna28 (%build)
@josef-pkt

This comment has been minimized.

Copy link
Member Author

commented Jun 15, 2014

I have no clue about these parts.

@sergiopasra

This comment has been minimized.

Copy link

commented Jun 16, 2014

I'm seeing this problem in Fedora, in the transition from ipython 0.13 in Fedora 20 to ipython 2.1 in Fedora 21

@josef-pkt

This comment has been minimized.

Copy link
Member Author

commented Jun 16, 2014

Thanks, that gives us a version number where something must have changed.

@jseabold

This comment has been minimized.

Copy link
Member

commented Jun 16, 2014

Duplicate of #1428.

@jseabold jseabold closed this Jun 16, 2014

@josef-pkt

This comment has been minimized.

Copy link
Member Author

commented Jun 21, 2014

Can Linux distributors just apply the two line patch in #1429?
then it wouldn't hold them up from running the test suite and see if everything else is still fine.

@jseabold

This comment has been minimized.

Copy link
Member

commented Jun 22, 2014

We should really just cut a 0.5.1. Shamefully late on this. I can do it this week. We should also advertise wider for a release manager to help with releases. Our release schedule is shambolic. Still waiting for features rather than cutting release with nice additions. There's still not a good reason to stick to this once a year and when we have all the code review for big features done schedule.

@sergiopasra

This comment has been minimized.

Copy link

commented Jun 22, 2014

@josef-pkt Yes, that's what I've done in Fedora

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.