Graphics forwarding required?

when I try to import deeplabcut, I get the following error: “ImportError: Cannot load backend ‘TkAgg’ which requires the ‘tk’ interactive framework, as ‘headless’ is currently running.”

This goes away when I enable graphics forwarding (I am running through my university’s computing cluster), so I think it has something to do with the fact that DLC is expecting me to have a GUI. I have done the labeling on my personal computer and want to run training on the cluster, so I don’t think I need a GUI. I would rather not have to run everything interactively.

Note: I saw in another DLC forum to check the version of matplotlib to solve this. I tried that and had the version specified (3.0.3).

Hey! Try importing deeplabcut in light mode, by setting the environment variable as follows:

import os
os.environ['DLClight'] = 'True'
import deeplabcut

That worked! Thanks!