Error in pycharm when debugging
When I start the debugger I am getting the following error:
* Debugger is active!
Traceback (most recent call last):
File "/Users/oliver.murillo/workspace/beam/bethesda-accounts-service/manage.py", line 20, in <module>
manager.run()
File "/Users/oliver.murillo/.virtualenvs/bethesda-accounts/lib/python2.7/site-packages/flask_script/__init__.py", line 412, in run
result = self.handle(sys.argv[0], sys.argv[1:])
File "/Users/oliver.murillo/.virtualenvs/bethesda-accounts/lib/python2.7/site-packages/flask_script/__init__.py", line 383, in handle
res = handle(*args, **config)
File "/Users/oliver.murillo/.virtualenvs/bethesda-accounts/lib/python2.7/site-packages/flask_script/commands.py", line 425, in __call__
**self.server_options)
File "/Users/oliver.murillo/.virtualenvs/bethesda-accounts/lib/python2.7/site-packages/flask/app.py", line 772, in run
run_simple(host, port, self, **options)
File "/Users/oliver.murillo/.virtualenvs/bethesda-accounts/lib/python2.7/site-packages/werkzeug/serving.py", line 647, in run_simple
application = DebuggedApplication(application, use_evalex)
File "/Users/oliver.murillo/.virtualenvs/bethesda-accounts/lib/python2.7/site-packages/werkzeug/debug/__init__.py", line 254, in __init__
if self.pin is None:
File "/Users/oliver.murillo/.virtualenvs/bethesda-accounts/lib/python2.7/site-packages/werkzeug/debug/__init__.py", line 264, in _get_pin
self._pin, self._pin_cookie = get_pin_and_cookie_name(self.app)
File "/Users/oliver.murillo/.virtualenvs/bethesda-accounts/lib/python2.7/site-packages/werkzeug/debug/__init__.py", line 164, in get_pin_and_cookie_name
get_machine_id(),
File "/Users/oliver.murillo/.virtualenvs/bethesda-accounts/lib/python2.7/site-packages/werkzeug/debug/__init__.py", line 99, in get_machine_id
_machine_id = rv = _generate()
File "/Users/oliver.murillo/.virtualenvs/bethesda-accounts/lib/python2.7/site-packages/werkzeug/debug/__init__.py", line 74, in _generate
stdout=PIPE).communicate()[0]
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1231, in _execute_child
self.pid = os.fork()
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydev_monkey.py", line 322, in new_fork
pydevd.settrace_forked()
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 2013, in settrace_forked
host, port = dispatch()
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1997, in dispatch
host = setup['client']
TypeError: <flask_script.commands.Server object at 0x10933eb10>: 'NoneType' object has no attribute '__getitem__'
* Debugger pin code: 154-968-888
So I can't setup any breakpoint, but if I start the app it works correctlly, any idea?
Please sign in to leave a comment.
Hi! It looks like a bug. Could you please provide a sample code for reproducing the issue?