Last active
October 18, 2018 11:24
-
-
Save codersquid/7874019 to your computer and use it in GitHub Desktop.
troubleshooting for FilterError for Pycon/pycon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copy this to local.py and edit. | |
# Do not add local.py to source control. | |
# Pick one: import whatever your appropriate settings are for this environment | |
# (probably ``.dev`` for local development) | |
from .dev import * | |
#from .test import * | |
#from .staging import * | |
#from .production import * | |
# etc.. | |
DEBUG = True | |
TEMPLATE_DEBUG = DEBUG | |
SERVE_MEDIA = True | |
COMPRESS = False | |
COMPRESS_ENABLED = False | |
# Then you can override settings here if you need to. | |
# For example, if you're not running a local Postgres with a database | |
# named ``pycon2014``, you'll need to add your database settings here. | |
# Uncomment to use Django Debug Toolbar: | |
INSTALLED_APPS.append('debug_toolbar') | |
MIDDLEWARE_CLASSES.append('debug_toolbar.middleware.DebugToolbarMiddleware') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[pycon20131205] [pycon@vegetablegargoyle:~/site/pycon:develop(*)]$ vi pycon/settings/base.py | |
[pycon20131205] [pycon@vegetablegargoyle:~/site/pycon:develop(*)]$ ./build-css.sh | |
./build-css.sh: line 1: symposion/static/css/site.css: No such file or directory | |
[pycon20131205] [pycon@vegetablegargoyle:~/site/pycon:develop(*)]$ ff site.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Environment: | |
Request Method: GET | |
Request URL: http://vegetablegargoyle.com:8000/2014/ | |
Django Version: 1.5.4 | |
Python Version: 2.7.5 | |
Installed Applications: | |
['django.contrib.admin', | |
'django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.sites', | |
'django.contrib.messages', | |
'django.contrib.staticfiles', | |
'django.contrib.humanize', | |
'pinax_theme_bootstrap', | |
'django_forms_bootstrap', | |
'compressor', | |
'mailer', | |
'django_openid', | |
'timezones', | |
'metron', | |
'easy_thumbnails', | |
'account', | |
'sitetree', | |
'taggit', | |
'reversion', | |
'biblion', | |
'social_auth', | |
'djangosecure', | |
'raven.contrib.django', | |
'constance', | |
'constance.backends.database', | |
'redis_cache', | |
'south', | |
'uni_form', | |
'gunicorn', | |
'selectable', | |
'symposion.conference', | |
'symposion.cms', | |
'symposion.boxes', | |
'symposion.speakers', | |
'symposion.proposals', | |
'symposion.reviews', | |
'symposion.teams', | |
'symposion.schedule', | |
'markedit', | |
'pycon', | |
'pycon.sponsorship', | |
'pycon.registration', | |
'pycon.schedule', | |
'pycon.profile', | |
'pycon.finaid', | |
'pycon.pycon_api', | |
'pycon.tutorials', | |
'debug_toolbar'] | |
Installed Middleware: | |
['djangosecure.middleware.SecurityMiddleware', | |
'django.contrib.sessions.middleware.SessionMiddleware', | |
'django.middleware.locale.LocaleMiddleware', | |
'django.middleware.common.CommonMiddleware', | |
'django.middleware.csrf.CsrfViewMiddleware', | |
'django.contrib.auth.middleware.AuthenticationMiddleware', | |
'django_openid.consumer.SessionConsumer', | |
'django.contrib.messages.middleware.MessageMiddleware', | |
'reversion.middleware.RevisionMiddleware', | |
'social_auth.middleware.SocialAuthExceptionMiddleware', | |
'debug_toolbar.middleware.DebugToolbarMiddleware'] | |
Template error: | |
In template /home/pycon/site/pycon/pycon/templates/responsive_base.html, error at line 15 | |
module.js:340 | |
throw err; | |
^ | |
Error: Cannot find module 'less' | |
at Function.Module._resolveFilename (module.js:338:15) | |
at Function.Module._load (module.js:280:25) | |
at Module.require (module.js:364:17) | |
at require (module.js:380:17) | |
at Object.<anonymous> (/usr/bin/lessc:9:12) | |
at Module._compile (module.js:456:26) | |
at Object.Module._extensions..js (module.js:474:10) | |
at Module.load (module.js:356:32) | |
at Function.Module._load (module.js:312:12) | |
at Function.Module.runMain (module.js:497:10) | |
5 : | |
6 : {% block style_base %} | |
7 : {% compress css %} | |
8 : <link href="{% static "pinax/css/theme.css" %}" rel="stylesheet" type="text/css"> | |
9 : {% endcompress %} | |
10 : | |
11 : {% if debug %} | |
12 : <link rel="stylesheet/less" type="text/css" media="all" href="{{ STATIC_URL }}less/responsive-site.less" /> | |
13 : <script src="{{ STATIC_URL }}js/less-1.3.3.min.js"></script> | |
14 : {% else %} | |
15 : {% compress css %} | |
16 : <link rel="stylesheet" type="text/less" media="all" href="{{ STATIC_URL }}less/responsive-site.less" /> | |
17 : {% endcompress %} | |
18 : {% endif %} | |
19 : | |
20 : {% compress css %} | |
21 : {% include "markedit/includes/markedit-css.html" %} | |
22 : {% endcompress %} | |
23 : | |
24 : {% block extra_style %}{% endblock %} | |
25 : {% endblock %} | |
Traceback: | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response | |
140. response = response.render() | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/response.py" in render | |
105. self.content = self.rendered_content | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/response.py" in rendered_content | |
82. content = template.render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/base.py" in render | |
140. return self._render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/base.py" in _render | |
134. return self.nodelist.render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/base.py" in render | |
830. bit = self.render_node(node, context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/debug.py" in render_node | |
74. return node.render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render | |
124. return compiled_parent._render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/base.py" in _render | |
134. return self.nodelist.render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/base.py" in render | |
830. bit = self.render_node(node, context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/debug.py" in render_node | |
74. return node.render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render | |
124. return compiled_parent._render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/base.py" in _render | |
134. return self.nodelist.render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/base.py" in render | |
830. bit = self.render_node(node, context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/debug.py" in render_node | |
74. return node.render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render | |
124. return compiled_parent._render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/base.py" in _render | |
134. return self.nodelist.render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/base.py" in render | |
830. bit = self.render_node(node, context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/debug.py" in render_node | |
74. return node.render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render | |
124. return compiled_parent._render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/base.py" in _render | |
134. return self.nodelist.render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/base.py" in render | |
830. bit = self.render_node(node, context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/debug.py" in render_node | |
74. return node.render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render | |
63. result = block.nodelist.render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/base.py" in render | |
830. bit = self.render_node(node, context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/debug.py" in render_node | |
74. return node.render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/defaulttags.py" in render | |
285. return nodelist.render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/base.py" in render | |
830. bit = self.render_node(node, context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/django/template/debug.py" in render_node | |
74. return node.render(context) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/compressor/templatetags/compress.py" in render | |
147. return self.render_compressed(context, self.kind, self.mode, forced=forced) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/compressor/templatetags/compress.py" in render_compressed | |
107. rendered_output = self.render_output(compressor, mode, forced=forced) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/compressor/templatetags/compress.py" in render_output | |
119. return compressor.output(mode, forced=forced) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/compressor/css.py" in output | |
51. ret.append(subnode.output(*args, **kwargs)) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/compressor/css.py" in output | |
53. return super(CssCompressor, self).output(*args, **kwargs) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/compressor/base.py" in output | |
246. content = self.filter_input(forced) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/compressor/base.py" in filter_input | |
194. for hunk in self.hunks(forced): | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/compressor/base.py" in hunks | |
169. precompiled, value = self.precompile(value, **options) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/compressor/base.py" in precompile | |
217. **kwargs) | |
File "/home/pycon/venvs/pycon20131205/local/lib/python2.7/site-packages/compressor/filters/base.py" in input | |
131. raise FilterError(err) | |
Exception Type: FilterError at /2014/ | |
Exception Value: | |
module.js:340 | |
throw err; | |
^ | |
Error: Cannot find module 'less' | |
at Function.Module._resolveFilename (module.js:338:15) | |
at Function.Module._load (module.js:280:25) | |
at Module.require (module.js:364:17) | |
at require (module.js:380:17) | |
at Object.<anonymous> (/usr/bin/lessc:9:12) | |
at Module._compile (module.js:456:26) | |
at Object.Module._extensions..js (module.js:474:10) | |
at Module.load (module.js:356:32) | |
at Function.Module._load (module.js:312:12) | |
at Function.Module.runMain (module.js:497:10) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try:
sudo npm install less-loader --global
sudo npm install less --global