Hi,

In django I tried to use matplotlib and 
I run into this exception

...
  icon_img = Tk.PhotoImage(file=icon_fname)
  File "/usr/lib/python3.5/tkinter/__init__.py", line 3397, in __init__
    Image.__init__(self, 'photo', name, cnf, master, **kw)
  File "/usr/lib/python3.5/tkinter/__init__.py", line 3353, in __init__
    self.tk.call(('image', 'create', imgtype, name,) + options)
RuntimeError: main thread is not in main loop

How can I solve it?
regards

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/32b15bb4-d83c-4eff-91ee-253191875b87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to