You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You get a very obscure error message "MagicException: no magic files loaded" when running the example project out of the box under OSX Mavericks. According to the posted issue, it happens in Linux distros also: ahupp/python-magic#44
Recommend you change python-magic to use 0.4.6.
Internal Server Error: /elfinder/yawd-connector/default/default/
Traceback (most recent call last):
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/core/handlers/base.py", line 114, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/contrib/admin/views/decorators.py", line 17, in _checklogin
return view_func(request, *args, **kwargs)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/utils/decorators.py", line 29, in _wrapper
return bound_func(*args, **kwargs)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/views/decorators/csrf.py", line 57, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/utils/decorators.py", line 25, in bound_func
return func(self, *args2, **kwargs2)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/views.py", line 101, in dispatch
return super(ElfinderConnectorView, self).dispatch(*args, **kwargs)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/views/generic/base.py", line 87, in dispatch
return handler(request, *args, **kwargs)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/views.py", line 108, in get
return self.output(self.get_command(request.GET), request.GET)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/views.py", line 79, in output
return self.render_to_response(self.elfinder.execute(cmd, **args))
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/connector.py", line 153, in execute
result = getattr(self, '_%s' % cmd)(**kwargs)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/connector.py", line 239, in _open
files += self._volumes[id_].tree(exclude=target)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/base.py", line 511, in tree
return dirs + self._get_tree(path, (deep - 1) if deep > 0 else (self._options['treeDeep'] - 1), excluded)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/base.py", line 1312, in _get_tree
stat = self.stat(p)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/base.py", line 1149, in stat
stat = self._stat(path)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/filesystem.py", line 144, in _stat
stat['mime'] = 'directory' if dir_ else self.mimetype(path)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/base.py", line 1211, in mimetype
mime = self._mimetype(path)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/filesystem.py", line 179, in _mimetype
return magic.Magic(mime=True).from_file(path.encode('utf-8')) #unicode filename support
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/python_magic-0.4.3-py2.7.egg/magic.py", line 51, in __init__
magic_load(self.cookie, magic_file)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/python_magic-0.4.3-py2.7.egg/magic.py", line 138, in errorcheck
raise MagicException(err)
MagicException: no magic files loaded
The text was updated successfully, but these errors were encountered:
You get a very obscure error message "MagicException: no magic files loaded" when running the example project out of the box under OSX Mavericks. According to the posted issue, it happens in Linux distros also:
ahupp/python-magic#44
Recommend you change python-magic to use 0.4.6.
The text was updated successfully, but these errors were encountered: