Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build Caravel from sources #1534

Closed
3 tasks done
ujhujuh opened this issue Nov 3, 2016 · 18 comments
Closed
3 tasks done

build Caravel from sources #1534

ujhujuh opened this issue Nov 3, 2016 · 18 comments

Comments

@ujhujuh
Copy link

ujhujuh commented Nov 3, 2016

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

  • I have checked the caravel logs for python stacktraces and included it here as text if any
  • I have reproduced the issue with at least the latest released version of caravel
  • 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

@hustxiaofeng
Copy link

the same problem as yours

@xrmx
Copy link
Contributor

xrmx commented Nov 3, 2016

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 xrmx closed this as completed Nov 3, 2016
@xrmx xrmx added the question label Nov 3, 2016
@ujhujuh
Copy link
Author

ujhujuh commented Nov 3, 2016

@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.(…)

@xrmx
Copy link
Contributor

xrmx commented Nov 3, 2016

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

@xrmx xrmx removed the question label Nov 3, 2016
@xrmx xrmx reopened this Nov 3, 2016
@hustxiaofeng
Copy link

@ujhujuh , i encounter the same problem as you

@hustxiaofeng
Copy link

@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

@toabey
Copy link

toabey commented Nov 3, 2016

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
visgl/react-map-gl#112

@ujhujuh
Copy link
Author

ujhujuh commented Nov 4, 2016

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

and now the sqllab doesn't work:
b

@hustxiaofeng
Copy link

hustxiaofeng commented Nov 4, 2016

@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

@hustxiaofeng
Copy link

@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

@tryer3000
Copy link

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

@mistercrunch
Copy link
Member

mistercrunch commented Nov 10, 2016

@ascott fixed both issues here:
mistercrunch@902f954
and
mistercrunch@e64e1b2#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

@github35
Copy link

github35 commented Nov 10, 2016

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

@mistercrunch
Copy link
Member

mistercrunch commented Nov 10, 2016

@github35 can you try off of the current master ?

@github35
Copy link

@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.

@github35
Copy link

0.13.1 works. Thank you!!

@hustxiaofeng
Copy link

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

@mistercrunch
Copy link
Member

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants