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

How to debug httpbin? #306

Closed
0xced opened this issue Oct 14, 2016 · 1 comment
Closed

How to debug httpbin? #306

0xced opened this issue Oct 14, 2016 · 1 comment

Comments

@0xced
Copy link

0xced commented Oct 14, 2016

I’m trying to debug httpbin. I added debug=True in the app.run call but then when I run httpbin with python3.4 -m httpbin.core I get the following error:

 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
 * Restarting with stat
Traceback (most recent call last):
  File "/Users/0xced/Projects/httpbin/httpbin/core.py", line 24, in <module>
    from . import filters
SystemError: Parent module '' not loaded, cannot perform relative import

How can I debug httpbin and have descriptive error messages?

@0xced
Copy link
Author

0xced commented Oct 14, 2016

So it turns out I just hit pallets/werkzeug#461. I tried various things suggested to workaround the problem but ultimately, the only thing that worked was to disable the reloader:

app.run(port=args.port, host=args.host, debug=True, use_reloader=False)

I’d still like to know if there’s a solution to debug httpbin with an active reloader.

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

2 participants