Skip to content

Overriding stdout in IndentPrint causes crashing #130

Description

@danlm

Cause: When running the ui in Python 3.4, Artemis crashes when I enter "h" (for help) or try to delete a run:

CAUGHT: 'IndentPrint' object has no attribute 'errors' Traceback (most recent call last): File "demo_experiments.py", line 101, in <module> demo_linear_regression.browse(display_format="flat") File "artemis/artemis/experiments/experiments.py", line 328, in browse display_format=display_format, **kwargs) File "artemis/artemis/experiments/ui.py", line 77, in browse_experiments browser.launch(command=command) File "artemis/artemis/experiments/ui.py", line 321, in launch out = func_dict[cmd](*args) File "artemis/artemis/experiments/ui.py", line 497, in help _warn_with_prompt(self.HELP_TEXT, prompt = 'Press Enter to exit help.', use_prompt=not self.close_after) File "artemis/artemis/experiments/ui.py", line 51, in _warn_with_prompt resp = input('({}) >> '.format(prompt)) AttributeError: 'IndentPrint' object has no attribute 'errors'

I found that commenting out line 263 in artemis/general/display.py (overriding sys.stdout) gets rid of the crashes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions