8000 Process finished with exit code -1 due to matplotlib configuration · Issue #12696 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Process finished with exit code -1 due to matplotlib configuration #12696
Closed
@idohi

Description

@idohi

Bug report

Bug summary
Running code that include import pandas on debug mode (I am using pycharm 2018.2 community eddition). The result is Process finished with exit code -1 .
After correspondence with "JetBrain" development team I have got the following work around, that fix the problem:
Add the following commands to matplotlib configuration file (the file can be found by the command matplotlib.matplotlib_fname() ) :

import matplotlib
matplotlib.use("TkAgg")

Is there properly solution like new matplotlib version with a fix for this issue?

Code for reproduction

import pandas as pd

def main():
    x = 1
    return
if __name__ == '__main__':
    main()

Actual outcome

Process finished with exit code -1

Code with work a round

import pandas as pd
import matplotlib
matplotlib.use("TkAgg")

def main():
    x = 1
    return
if __name__ == '__main__':
    main()

Expected outcome

Process finished with exit code 0

Matplotlib version

  • Operating system: Windows 10
  • Matplotlib version: 2.2.3
  • Matplotlib backend (print(matplotlib.get_backend())): Qt5Agg
  • Python version: 2.7.15
  • Jupyter version (if applicable):
  • Other libraries: matplotlib installed thru anaconda windows installer

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

      0