enthought / enthought/chaco

Importing chaco without X server running causes a crash.

Open
#520 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
305
Forks
97
PR merge metrics
No merged PRs in 30d

Description

**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`

```python
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.