Skip to content

failed to import any qt binding #24

Open
@zachvalenta

Description

Seems like the same phenomenon as #22.

(venv) $ graph samples/bar.csv --bar
Traceback (most recent call last):
  File "/Users/zach/Desktop/graph-cli/venv/bin/graph", line 10, in <module>
    sys.exit(main.main())
  File "/Users/zach/Desktop/graph-cli/venv/lib/python3.6/site-packages/graph_cli/main.py", line 17, in main
    create_graph(graphs)
  File "/Users/zach/Desktop/graph-cli/venv/lib/python3.6/site-packages/graph_cli/graph.py", line 218, in create_graph
    import matplotlib.pyplot as plt
  File "/Users/zach/Desktop/graph-cli/venv/lib/python3.6/site-packages/matplotlib/pyplot.py", line 2355, in <module>
    switch_backend(rcParams["backend"])
  File "/Users/zach/Desktop/graph-cli/venv/lib/python3.6/site-packages/matplotlib/pyplot.py", line 221, in switch_backend
    backend_mod = importlib.import_module(backend_name)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/Users/zach/Desktop/graph-cli/venv/lib/python3.6/site-packages/matplotlib/backends/backend_qt4agg.py", line 5, in <module>
    from .backend_qt5agg import (
  File "/Users/zach/Desktop/graph-cli/venv/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 11, in <module>
    from .backend_qt5 import (
  File "/Users/zach/Desktop/graph-cli/venv/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 15, in <module>
    import matplotlib.backends.qt_editor.figureoptions as figureoptions
  File "/Users/zach/Desktop/graph-cli/venv/lib/python3.6/site-packages/matplotlib/backends/qt_editor/figureoptions.py", line 13, in <module>
    from matplotlib.backends.qt_compat import QtGui
  File "/Users/zach/Desktop/graph-cli/venv/lib/python3.6/site-packages/matplotlib/backends/qt_compat.py", line 158, in <module>
    raise ImportError("Failed to import any qt binding")
ImportError: Failed to import any qt binding

(venv) $ python --version
Python 3.6.1

Activity

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

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions