Django-pipeline invalid syntax -


i trying setup django-pipeline in test project, however, running bug doesn't have obvious solution. here pipeline configure in settings.py

pipeline = {     'pipeline_enabled': true,     'compilers': ('pipeline_browserify.compiler.browserifycompiler', ),     'css_compressor': 'pipeline.compressors.noopcompressor',      'js_compressor': 'pipeline.compressors.uglifyjs.uglifyjscompressor',     'stylesheets': {       #    'animelist_css': {     #        'source_filenames': ( 'animelist/css/style.css', ),     #        'output_filename': 'animelist/css/animelist_css.css',     #    }     },     'javascript': {       #  'animelist_js': {     #       'source_filenames': (         #    'animelist/js/bower_components/jquery/dist/jquery.min.js',         #    'animelist/js/bower_components/react/jsxtransformer.js',         #    'animelist/js/bower_components/react/react-with-addons.js',         #    'animelist/js/app.browserify.js',        #      ),        #     'output_filename': 'animelist/js/animelist_js.js',       #  }     } } 

as can see configuration, setting allow collectstatic run without problem. however, collectstatic fail if uncomment lines. error shown below have requested collect static files @ destination location specified in settings:

    /var/www/anime/static  overwrite existing files! sure want this?  type 'yes' continue, or 'no' cancel: yes traceback (most recent call last):   file "manage.py", line 10, in <module>     execute_from_command_line(sys.argv)   file "/opt/virtualenvs/django_project/lib64/python3.4/site-    packages/django/core/management/__init__.py", line 338, in     execute_from_command_line     utility.execute()   file "/opt/virtualenvs/django_project/lib64/python3.4/site-packages/django/core/management/__init__.py", line 330, in execute self.fetch_command(subcommand).run_from_argv(self.argv)   file "/opt/virtualenvs/django_project/lib64/python3.4/site-packages/django/core/management/base.py", line 390, in run_from_argv self.execute(*args, **cmd_options)   file "/opt/virtualenvs/django_project/lib64/python3.4/site-packages/django/core/management/base.py", line 441, in execute output = self.handle(*args, **options)   file "/opt/virtualenvs/django_project/lib64/python3.4/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 168, in handle collected = self.collect()   file "/opt/virtualenvs/django_project/lib64/python3.4/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 114, in collect original_path, processed_path, processed in processor:   file "/opt/virtualenvs/django_project/lib64/python3.4/site-packages/pipeline/storage.py", line 33, in post_process packager.pack_javascripts(package)   file "/opt/virtualenvs/django_project/lib64/python3.4/site-packages/pipeline/packager.py", line 112, in pack_javascripts return self.pack(package, self.compressor.compress_js, js_compressed, templates=package.templates, **kwargs)   file "/opt/virtualenvs/django_project/lib64/python3.4/site-packages/pipeline/packager.py", line 105, in pack paths = self.compile(package.paths, force=true)   file "/opt/virtualenvs/django_project/lib64/python3.4/site-packages/pipeline/packager.py", line 99, in compile return self.compiler.compile(paths, force=force)   file "/opt/virtualenvs/django_project/lib64/python3.4/site-packages/pipeline/compilers/__init__.py", line 49, in compile concurrent import futures   file "/opt/virtualenvs/django_project/lib64/python3.4/site-packages/concurrent/futures/__init__.py", line 8, in <module> concurrent.futures._base import (first_completed,   file "/opt/virtualenvs/django_project/lib64/python3.4/site-packages/concurrent/futures/_base.py", line 355     raise type(self._exception), self._exception, self._traceback                            ^ syntaxerror: invalid syntax 

help appreciated.

apparently, error result of installing futures backport in pip3. uninstall futures packages in pip3.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -