Skip to content

Importing chaco without X server running causes a crash. #520

@midhun-pm

Description

@midhun-pm

Problem Description
Trying to import chaco without X server running on Linux causes python to terminate.

Reproduction Steps:

  1. Ensure that the DISPLAY environment variable has been unset in the terminal.
    unset DISPLAY
  2. Start the Python3.6 interpreter and run
    import chaco.api
import chaco.api

Expected behavior:
Import should not cause a crash.
This is important for example, when using chaco on a remote server without X server running.
Error on trying to display something is acceptable but not a crash when importing.

OS, Python version: Linux, Python3.6

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