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

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


Hi Sujith,

> Kindly run : pip install -r bitbake/toaster-requirements.txt

Magic indeed! That worked.

Thanks!
David

From: sujith h [mailto:sujith.h at gmail.com]
Sent: Wednesday, September 23, 2015 2:25 AM
To: Reyna, David
Cc: toaster at yoctoproject.org
Subject: Re: [Toaster] Toaster: "No module named magic" errors?

Hi David,
Kindly run : pip install -r bitbake/toaster-requirements.txt

The toaster-requirements.txt is updated to install the package which will resolve the error.
Thanks,
Sujith H

On Wed, Sep 23, 2015 at 2:51 PM, Reyna, David <david.reyna at windriver.com<mailto:david.reyna at windriver.com>> wrote:
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



--
_______________________________________________
toaster mailing list
toaster at yoctoproject.org<mailto:toaster at yoctoproject.org>
https://lists.yoctoproject.org/listinfo/toaster



--
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/toaster/attachments/20150923/74e36191/attachment.html>


More information about the toaster mailing list