ashb commented on issue #4513: [AIRFLOW-3697] Vendorize nvd3 and slugify
URL: https://github.com/apache/airflow/pull/4513#issuecomment-466382014
 
 
   Our CI doesn't display errors from the webserver container. Running it 
locally (with _much_ hacking) I think I finally got to the bottom of it:
   
   ```
   Traceback (most recent call last):
     File "/usr/local/bin/airflow", line 32, in <module>
       args.func(args)
     File "/usr/local/lib/python2.7/dist-packages/airflow/utils/cli.py", line 
74, in wrapper
       return f(*args, **kwargs)
     File "/usr/local/lib/python2.7/dist-packages/airflow/bin/cli.py", line 
848, in webserver
       app = cached_app(conf)
     File "/usr/local/lib/python2.7/dist-packages/airflow/www/app.py", line 
207, in cached_app
       app, _ = create_app(config, session, testing)
     File "/usr/local/lib/python2.7/dist-packages/airflow/www/app.py", line 
164, in create_app
       init_views(appbuilder)
     File "/usr/local/lib/python2.7/dist-packages/airflow/www/app.py", line 92, 
in init_views
       from airflow.www import views
     File "/usr/local/lib/python2.7/dist-packages/airflow/www/views.py", line 
65, in <module>
       from airflow._vendor import nvd3
     File 
"/usr/local/lib/python2.7/dist-packages/airflow/_vendor/nvd3/__init__.py", line 
19, in <module>
       from .lineChart import lineChart
     File 
"/usr/local/lib/python2.7/dist-packages/airflow/_vendor/nvd3/lineChart.py", 
line 12, in <module>
       from .NVD3Chart import NVD3Chart, TemplateMixin
     File 
"/usr/local/lib/python2.7/dist-packages/airflow/_vendor/nvd3/NVD3Chart.py", 
line 29, in <module>
       template_content = jinja2_env.get_template(CONTENT_FILENAME)
     File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 
830, in get_template
       return self._load_template(name, self.make_globals(globals))
     File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 
804, in _load_template
       template = self.loader.load(self, name, globals)
     File "/usr/local/lib/python2.7/dist-packages/jinja2/loaders.py", line 113, 
in load
       source, filename, uptodate = self.get_source(environment, name)
     File "/usr/local/lib/python2.7/dist-packages/jinja2/loaders.py", line 235, 
in get_source
       raise TemplateNotFound(template)
   jinja2.exceptions.TemplateNotFound: ./content.html
   ```
   
   We need to adjust MANIFEST.in so that the template files get included in the 
built dists.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to