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

ImportError: No module named fcntl #1235

Closed
attibalazs opened this issue Oct 3, 2016 · 7 comments
Closed

ImportError: No module named fcntl #1235

attibalazs opened this issue Oct 3, 2016 · 7 comments

Comments

@attibalazs
Copy link

attibalazs commented Oct 3, 2016

Hi,

I`m using windows 7 64bit, and following the instructions from your install guide: http://airbnb.io/caravel/installation.html

I run into an error when i try to start the server
python caravel runserver -p 8088

Any help is much appreciated, thank you.

C:\Python27\Python27\lib\site-packages\flask_appbuilder\forms.py:235: FlaskWTFDeprecationWarning: "flask_wtf.Form" has been renamed to "FlaskForm" and will be removed in 1.0.
  return type('DynamicForm', (DynamicForm,), form_props)
2016-10-03 14:53:08,405:INFO:flask_appbuilder.base:Registering class CssTemplateModelView on menu CSS Templates
Traceback (most recent call last):
  File "c:\python27\python27\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\python27\python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Python27\Python27\Scripts\gunicorn.exe\__main__.py", line 5, in <module>
  File "c:\python27\python27\lib\site-packages\gunicorn\app\wsgiapp.py", line 10, in <module>
    from gunicorn.app.base import Application
  File "c:\python27\python27\lib\site-packages\gunicorn\app\base.py", line 12, in <module>
    from gunicorn import util
  File "c:\python27\python27\lib\site-packages\gunicorn\util.py", line 9, in <module>
    import fcntl
ImportError: No module named fcntl
@xrmx
Copy link
Contributor

xrmx commented Oct 3, 2016

As written in the documentation windows is not a supported platform. As you have found out gunicorn does not work on windows. My advice would be to install it on a linux machine. Or you can use the development web server which of course is not advised to run in production.

@xrmx xrmx closed this as completed Oct 3, 2016
@xrmx xrmx added the question label Oct 3, 2016
@attibalazs
Copy link
Author

ok, thanks

@nekia
Copy link

nekia commented Oct 3, 2017

I could avoid this error on windos env by using debug mode options.

superset runserver -d

@naveenjafer
Copy link

@nekia How exactly did you get it running??

@nekia
Copy link

nekia commented Nov 7, 2017

@naveenjafer As far as my quick check, every example dashboard (Misc Charts/Births/World's Bank Data) seems to be running properly.

@naveenjafer
Copy link

@nekia what I meant is, where do I set these debug mode options? I am new to gunicorn. Thanks

@nekia
Copy link

nekia commented Nov 7, 2017

@naveenjafer I just put '-d' option with runserver command for using development web server ( starting web server in debug mode) as I mentioned #1235 (comment) .

$ superset runserver -?
usage: superset runserver [-?] [-s SOCKET] [-t TIMEOUT] [-w WORKERS] [-p PORT]
                          [-a ADDRESS] [-n] [-d]

Starts a Superset web server.

optional arguments:
  -?, --help            show this help message and exit
  -s SOCKET, --socket SOCKET
                        Path to a UNIX socket as an alternative to
                        address:port, e.g. /var/run/superset.sock. Will
                        override the address and port values.
  -t TIMEOUT, --timeout TIMEOUT
                        Specify the timeout (seconds) for the gunicorn web
                        server
  -w WORKERS, --workers WORKERS
                        Number of gunicorn web server workers to fire up
  -p PORT, --port PORT  Specify the port on which to run the web server
  -a ADDRESS, --address ADDRESS
                        Specify the address to which to bind the web server
  -n, --no-reload       Don't use the reloader in debug mode
  -d, --debug           Start the web server in debug mode

$ superset runserver -d -p 9099
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Starting Superset server in DEBUG mode
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

2017-11-07 19:49:57,031:INFO:werkzeug: * Running on http://0.0.0.0:9099/ (Press CTRL+C to quit)
2017-11-07 19:49:57,032:INFO:werkzeug: * Restarting with stat
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Starting Superset server in DEBUG mode
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

2017-11-07 19:49:59,518:WARNING:werkzeug: * Debugger is active!
2017-11-07 19:49:59,538:INFO:werkzeug: * Debugger PIN: 423-263-045

And please check the following note about using development web server.
http://superset.apache.org/installation.html#a-proper-wsgi-http-server

@dpgaspar dpgaspar mentioned this issue Jan 23, 2020
12 tasks
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 25, 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
None yet
Projects
None yet
Development

No branches or pull requests

4 participants