Incubator-superset: build Caravel from sources

Created on 3 Nov 2016  Â·  18Comments  Â·  Source: apache/incubator-superset

Make sure these boxes are checked before submitting your issue - thank you!

  • [x] I have checked the caravel logs for python stacktraces and included it here as text if any
  • [x] I have reproduced the issue with at least the latest released version of caravel
  • [x] I have checked the issue tracker for the same issue and I haven't found one similar

Caravel version

0.12.0

Expected results

want to show the dashboards or slices, but nothing

Actual results

nothing

Steps to reproduce

cd $CARAVEL_HOME/caravel/assets
npm install
npm run prod
cd $CARAVEL_HOME
python setup.py install

Most helpful comment

@ascott fixed both issues here:
https://github.com/mistercrunch/caravel/commit/902f9544d2fbf03c69537df67cb3f7bf2aa9ab65
and
https://github.com/mistercrunch/caravel/commit/e64e1b2e73597d940179297b60bc6a0f8a6a2bef#diff-89f4a08914347e2e8a144079a0bb2642R54

This is part of a larger PR where we are renaming the project. Had to nuke my node_modules at some point and hit the same issues you guys were having

All 18 comments

the same problem as yours

I'm sorry but i don't see any issue here, read the tutorial if your problem is how to load demo data http://airbnb.io/caravel/installation.html#caravel-installation-and-initialization

@xrmx
when i install the caravel, everything is ok. but now i want to build it by source code, i follow those steps:

  • npm install
  • npm run prod
  • python setup.py install

no errors has been found in those steps, then i run it, but the dashboards and slices has nothing to show. there was a problem in chrome's console:

web_worker.js?e7d2:5Uncaught TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided.(…)

@ujhujuh And how i was supposed to know that if you don't mention the actual error in your bug report?

@ujhujuh , i encounter the same problem as you

@ujhujuh , i encounter the same problem as you, after install and run server, the page is blank, and the chrome console throws a error:
image

alias: { webworkify: 'webworkify-webpack',
'mapbox-gl/js/geo/transform':APP_DIR + '/node_modules/mapbox-gl/js/geo/transform',
'mapbox-gl':'mapbox-gl/dist/mapbox-gl.js')

edit inside webpack.config.js may solve the problem
https://github.com/uber/react-map-gl/issues/112

@toabey ,slice worked well, but dashboard like this:
a

and now the sqllab doesn't work:
b

@toabey ,the dashboard is still blank ,and browser console show the error:

dataTables.bootstrap.js?fffa:47Uncaught TypeError: Cannot read property 'defaults' of undefined(anonymous function)
image

@toabey ,thanks to your tips, solved my problem, but the dashboard is still blank ,and browser console show the error, all related about dataTable, i find that in the dist js files, for example, in dist/dashboard.xx.js, the datatable.net.bs is loaded as AMD:
image

the if statement get a true const, but in datatable.net.bs's node modules, the if statement is a express as "typeof define === 'function' && define.amd", the npm run dev replace the express as 'true' in output dist js, i attemp to modify it as false in dist js file, and then it works well, but i don't know what cause the issue. i find other js error almost the same related to datatable in webpack:
image

got the same error after login.
webpack fail to load datatable
here's some clues to this problem

https://gist.github.com/swemaniac/2fbe5d6d5e425b7c046168b6d6e74e95
https://www.datatables.net/blog/2015-11-09#AMD

@ascott fixed both issues here:
https://github.com/mistercrunch/caravel/commit/902f9544d2fbf03c69537df67cb3f7bf2aa9ab65
and
https://github.com/mistercrunch/caravel/commit/e64e1b2e73597d940179297b60bc6a0f8a6a2bef#diff-89f4a08914347e2e8a144079a0bb2642R54

This is part of a larger PR where we are renaming the project. Had to nuke my node_modules at some point and hit the same issues you guys were having

I encountered the same error when I install Superset and tried to load caravel.db...

@github35 can you try off of the current master ?

@mistercrunch I installed 0.13.0 and encountered another problem -- I only have css-theme.0.12.0.entry and other 0.12.0 files in dist folder. So it's not working from my side.

0.13.1 works. Thank you!!

@mistercrunch ,0.13.1 just fix the problem, it is great!

Nice!

Was this page helpful?
0 / 5 - 0 ratings