superset icon indicating copy to clipboard operation
superset copied to clipboard

ERROR about "fabmanager create-admin --app caravel"

Open Chen-DaYi opened this issue 10 years ago • 5 comments

when i create an admin user: fabmanager create-admin --app caravel。 i get:

c:\anaconda2\lib\site-packages\flask_cache__init__.py:152: UserWarning: Flask-Cache: CACHE_TYPE is set to null, caching is effectively disabled. warnings.warn("Flask-Cache: CACHE_TYPE is set to null, " 2016-07-04 17:19:01,871:ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (sqlite3.OperationalError) unable to open database file

Chen-DaYi avatar Jul 04 '16 09:07 Chen-DaYi

@SevnChen caravel is supposed to run on unix like systems and not on windows

xrmx avatar Jul 04 '16 09:07 xrmx

@xrmx on the Caravel documantation http://airbnb.io/caravel/installation.html say:

Windows isn’t officially supported at this point, but if you want to attempt it, download get-pip.py, and run python get-pip.py which may need admin access. Then run the following:

i dont understand and have not run the next:

C:> \path\to\vcvarsall.bat x86_amd64

C:> set LIB=C:\OpenSSL-1.0.1f-64bit\lib;%LIB%

C:> set INCLUDE=C:\OpenSSL-1.0.1f-64bit\include;%INCLUDE%

but i successfully install cryptography and caravel.

Chen-DaYi avatar Jul 04 '16 09:07 Chen-DaYi

@SevnChen sure, but "it isn't officiallly supported" means you have to help yourself in fixing issues and not just open issues :) But again i cannot see how this can work easily if gunicorn does not work on windows.

xrmx avatar Jul 04 '16 10:07 xrmx

The sqlite error is because the caravel_config does not specify a valid windows path for the db file. Try something like sqlite:///C:\\path\\to\\database.db

If you haven't setup your caravel_config.py file you'll probably need to specify the pythonpath enironment variable so that it can be found.

The cryptography instructions are out of date. You can just pip install cryptography now on windows. It already includes binaries, which it seems like you already did.

Hope this helps.

aljones avatar Jul 14 '16 17:07 aljones

Closing after updating doc regarding cryptography installation and sqlalchemy uri.

xrmx avatar Aug 10 '16 15:08 xrmx