[Toaster] Toaster: "No module named magic" errors?

Reyna, David david.reyna at windriver.com
Wed Sep 23 02:21:50 PDT 2015


Hi all,

I just refreshed my pull of YP and toaster, and all of a sudden I am getting "No module named magic" errors.

I searched online, ran "pip install python-magic", restarted Toaster, and now I get:

      AttributeError at /

      'module' object has no attribute 'MAGIC_MIME_TYPE'

      Request Method:   GET
      Request URL:      http://127.0.0.1:8000/
      Django Version:   1.6
      Exception Type:   AttributeError
      Exception Value:

      'module' object has no attribute 'MAGIC_MIME_TYPE'

      Exception Location:       /opt/dreyna/toaster-1.9b/poky/bitbake/lib/toaster/toastergui/views.py in MimeTypeFinder, line 56
      Python Executable:        /opt/dreyna/toaster-1.9b/poky/venv/bin/python
      Python Version:   2.7.6
      Python Path:

      ['./bitbake/bin/../lib',
       '/opt/dreyna/toaster-1.9b/poky/bitbake/lib',
       '/opt/dreyna/toaster-1.9b/poky/bitbake/lib/toaster',
       '/opt/dreyna/toaster-1.9b/poky/venv/lib/python2.7',
       '/opt/dreyna/toaster-1.9b/poky/venv/lib/python2.7/plat-x86_64-linux-gnu',
       '/opt/dreyna/toaster-1.9b/poky/venv/lib/python2.7/lib-tk',
       '/opt/dreyna/toaster-1.9b/poky/venv/lib/python2.7/lib-old',
       '/opt/dreyna/toaster-1.9b/poky/venv/lib/python2.7/lib-dynload',
       '/usr/lib/python2.7',
       '/usr/lib/python2.7/plat-x86_64-linux-gnu',
       '/usr/lib/python2.7/lib-tk',
       '/opt/dreyna/toaster-1.9b/poky/venv/local/lib/python2.7/site-packages',
       '/opt/dreyna/toaster-1.9b/poky/venv/lib/python2.7/site-packages',
       '/opt/dreyna/toaster-1.9b/poky/bitbake/lib/toaster/contrib/django-aggregate-if-master']


I do not know what to do.

- David


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/toaster/attachments/20150923/666cd9ee/attachment.html>


More information about the toaster mailing list