Odd segmentation fault if torch is imported

This code will produce a segmentation fault if is torch is imported

from skimage.data import astronaut
from matplotlib import pyplot as plt
import torch

f = plt.figure()

If you comment out import torch it will work fine.
If you change the extension to PNG, it will also work fine.

I have no idea what’s going on.

1 Like

Reverse the order of imports for now

1 Like

Thank you.
This was seriously driving me nuts. Like something would have start flying very soon, e.g. a wireless mouse.