Skip to content

tkinter error on Heroku #26

@ltfschoen

Description

@ltfschoen

If deploy Visualisation.py to Heroku uncommented, then import seaborn, import matplotlib.pyplot as plt each cause error:
ImportError: No module named _tkinter.

Adding to Aptfile the following does not make any difference to error:

python-tk
python3-tk
tk8.6
tk8.6-dev
tcl8.6
tcl8.6-dev
tk
tk-dev
tkinter-pypy

Importing the following extras in Visualisation.py does not make any difference to the error:

import Tkinter as tk # Python 2
import tkinter as tk # Python 3
import matplotlib
matplotlib.use('Agg')

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions