Closed adelaneh closed 4 years ago
In file behavenet/plotting/arhmm_utils.py
add the following two lines
import matplotlib
matplotlib.use('agg',warn=False, force=True)
before
import matplotlib.pyplot as plt
@adelaneh thanks for posting this. Do you have any idea why changing the matplotlib backend helps with this problem? The traceback seems opaque, but I would not have expected matplotlib to be involved.
@themattinthehatt I corrected the original comment to reflect the correct error message. I was getting multiple error messages at the time of posting this and ended up copying the wrong one here. Hope this makes it clear now.
When trying to train ARHMM using the following command:
python behavenet/fitting/arhmm_grid_search.py --data_config ~/.behavenet/musall_vistrained_params.json --model_config ~/.behavenet/arhmm_model.json --training_config ~/.behavenet/arhmm_training.json --compute_config ~/.behavenet/arhmm_compute.json
the following error appears: