Skip to content Skip to sidebar Skip to footer

PyCharm Debugger Fails With AttributeError

I cannot debug a Flask application in PyCharm. The application should run on port 5000: app.run(host='10.1.0.17', port=5000, debug=True). The console output is: C:\Python\python.ex

Solution 1:

The pydev debugger uses the same Pythonpath as the project you are trying to debug. If you have any modules or packages with names of standard modules or packages, the pydev debugger might load your module instead of the standard module.

You probably have a module called queue in your projects directories, which causes this issue, since the python standard library also includes a module with that name.

try renaming your module, or changing your PYTHONPATH

PyCharm has the option to not include the projects root/source roots in the PYTHONPATH in Run > Edit Configurations. This could fix your problem, although you might need to fix some import statements in your project, if any of your import statements relied on this setting.


Post a Comment for "PyCharm Debugger Fails With AttributeError"