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

Issues with caravel command (Windows 10) #333

Closed
jragonesi opened this issue Apr 12, 2016 · 14 comments · May be fixed by EC-Snyk/incubator-superset#81 or ajesse11x/incubator-superset#119
Closed

Issues with caravel command (Windows 10) #333

jragonesi opened this issue Apr 12, 2016 · 14 comments · May be fixed by EC-Snyk/incubator-superset#81 or ajesse11x/incubator-superset#119
Labels
#bug:cant-reproduce Bugs that cannot be reproduced

Comments

@jragonesi
Copy link

Has anyone had success running caravel from the command prompt on Windows 10? I was able to run the installation successfully with pip but could not initialize the database. The command prompt gives the error below, unrecognized command. I verified the environmental variables had the correct path. I changed the caravel script file to a .exe so that I could run it at the command prompt. I received an error (below) stating the file was not compatible with a 64 bit system. Has anyone had success with this phase of the installation in Windows?

C:>caravel db upgrade
'caravel' is not recognized as an internal or external command,
operable program or batch file.

C:>caravel db upgrade
This version of C:\Users\Work Station\Anaconda3\Scripts\caravel is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.

@mistercrunch mistercrunch added help wanted #bug:cant-reproduce Bugs that cannot be reproduced labels Apr 12, 2016
@gbrian
Copy link
Contributor

gbrian commented Apr 12, 2016

Try python caravel db upgrade

@jragonesi
Copy link
Author

thanks, i had to drill down to the bin directory:

C:\Anaconda3\Lib\site-packages\caravel\bin

once i was there the python command worked as it should. much appreciated.

@andrewhn
Copy link
Contributor

I had the same issue on win 10. Seems the scripts argument in the setup.py file isn't working for some reason, where it is on Linux. Possibly upstream?

@cons0l3
Copy link

cons0l3 commented Apr 13, 2016

The setup.py should be switched from using "scripts" to using automatic script creation via entry_points. I have tried it locally, but not going to open a PR. maybe someone from the core team can implement the fix.

@dmenin
Copy link

dmenin commented May 6, 2016

Here's how I solved it:

Go to the installation folder (in my case):
C:\Anaconda2\Lib\site-packages\caravel\bin>

and type:
python caravel db upgrade

@green3g
Copy link

green3g commented Jul 5, 2016

I too was having problems with this, but as @dmenin mentioned, I was able to navigate into virtualenv\scripts and type python caravel db upgrade.

I'm stuck here though, it runs a bunch of flask_appbuilder.base commands and stalls out on

Running upgrade -> 4e6a09bad7a8, Init. Is this happening to anyone else?

@bmogili-involve
Copy link

bmogili-involve commented Jul 19, 2016

I cannot install caravel on my windows system. Please let me know how would we do it?

@gbrian
Copy link
Contributor

gbrian commented Jul 29, 2016

@bmogili-involve which error?
BTW for running in Windows use "runserver -d" and optional a port, reason is gunicorn is not available for windows.

Hope this helps

@JoeBrody
Copy link

Went into my installation folder
C:\Users\Me\Documents\GitHub\caravel-master\caravel-master\caravel\bin
Entered Command:
python caravel db upgrade

Got this message:
Traceback (most recent call last):
File "caravel", line 8, in
import celery
ImportError: No module named 'celery'

Any ideas on this?

@green3g
Copy link

green3g commented Aug 30, 2016

@JoeBrody pip install celery should fix that.

@xrmx
Copy link
Contributor

xrmx commented Aug 30, 2016

I don't think there's much actionable here, closing.

@xrmx xrmx closed this as completed Aug 30, 2016
@github35
Copy link

I spent two days to solve sasl depency problem on Windows. If anyone had the same problem, please refer to this link: http://stackoverflow.com/questions/26505882/unable-to-install-sasl-0-1-3-python-package-on-windows-machine

@EvanGerry
Copy link

EvanGerry commented May 24, 2017

modify cli.py method(runserver) modify debug to True
then run superset server do not use gunicorn start 👍

def runserver(debug, no_reload, address, port, timeout, workers, socket):
    """Starts a Superset web server."""
    debug = debug or config.get("DEBUG")
    """modify debug to True"""
    if True:
        app.run(
            host='0.0.0.0',
            port=int(port),
            threaded=True,
            debug=True,
            use_reloader=no_reload)
    else:
        addr_str = " unix:{socket} " if socket else" {address}:{port} "
        cmd = (
            "gunicorn "
            "-w {workers} "
            "--timeout {timeout} "
            "-b " + addr_str +
            "--limit-request-line 0 "
            "--limit-request-field_size 0 "
            "superset:app").format(**locals())
        print("Starting server with command: " + cmd)
        Popen(cmd, shell=True).wait()

@mistercrunch
Copy link
Member

Isn't it the same as running superset runserver -d ? BTW I wouldn't recommend running the debug server in production.

graceguo-supercat pushed a commit to graceguo-supercat/superset that referenced this issue Oct 4, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 17, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 17, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 24, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 24, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 25, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 25, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 26, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug:cant-reproduce Bugs that cannot be reproduced
Projects
None yet