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

[BUG] Always autoreload and fail even when debug=False and dev_tools_hot_reload=False #3

Open
WestXu opened this issue Aug 18, 2020 · 0 comments

Comments

@WestXu
Copy link

WestXu commented Aug 18, 2020

I run the server with this:

app.run_server(
    debug=False,
    host='0.0.0.0',
    loop=main_thread_loop,
    dev_tools_hot_reload=False,
)

Env:

dash                              1.13.4
dash-bootstrap-components         0.10.0
dash-core-components              1.10.1
dash-daq                          0.5.0
dash-devices                      0.1.2
dash-html-components              1.0.3
dash-pivottable                   0.0.1
dash-renderer                     1.5.1
dash-table                        4.8.1
- OS: WSL
- Browser: Edge chrome

Describe the bug

Whenever I change and save code of dependencies of the dash file, it always seems try to reload and fail:

Traceback (most recent call last):
  File "jat/jat/trade_dash.py", line 605, in <module>
    app.run_server(
  File "/home/lxuwsl/miniconda3/lib/python3.8/site-packages/dash_devices/dash.py", line 1987, in run_server
    self.server.run(host=host, port=port, debug=debug, **flask_run_options)
  File "/home/lxuwsl/miniconda3/lib/python3.8/site-packages/quart/app.py", line 1400, in run
    loop.run_until_complete(serve(self, config))
  File "/home/lxuwsl/miniconda3/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/lxuwsl/miniconda3/lib/python3.8/site-packages/hypercorn/asyncio/__init__.py", line 39, in serve
    await worker_serve(app, config, shutdown_trigger=shutdown_trigger)
  File "/home/lxuwsl/miniconda3/lib/python3.8/site-packages/hypercorn/asyncio/run.py", line 157, in worker_serve
    restart()
  File "/home/lxuwsl/miniconda3/lib/python3.8/site-packages/hypercorn/utils.py", line 168, in restart
    os.execv(executable, [executable] + args)
OSError: [Errno 8] Exec format error

That's weird.

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

1 participant