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

IndexError: list index out of range #374

Closed
nalumachurakesh opened this issue Aug 18, 2020 · 3 comments
Closed

IndexError: list index out of range #374

nalumachurakesh opened this issue Aug 18, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@nalumachurakesh
Copy link

nalumachurakesh commented Aug 18, 2020

Getting an error saying "IndexError: list index out of range" when I run the python application in Visual Studio 2019. Following is the stack trace:

  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\microsoft\python\core\debugpy\__main__.py", line 45, in <module>
    cli.main()
  File "c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\microsoft\python\core\debugpy/..\debugpy\server\cli.py", line 430, in main
    run()
  File "c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\microsoft\python\core\debugpy/..\debugpy\server\cli.py", line 267, in run_file
    runpy.run_path(options.target, run_name=compat.force_str("__main__"))
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 265, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\nalumr01\Documents\Git\ORWatch\server.py", line 2, in <module>
    from bottle import route, template, static_file, default_app, request, response, run, redirect, error
  File "C:\Users\nalumr01\Documents\Git\ORWatch\bottle.py", line 3958, in <module>
    if __name__ == '__main__':
  File "_pydevd_bundle/pydevd_cython.pyx", line 1260, in _pydevd_bundle.pydevd_cython.SafeCallWrapper.__call__
  File "_pydevd_bundle/pydevd_cython.pyx", line 344, in _pydevd_bundle.pydevd_cython.PyDBFrame.trace_exception
  File "_pydevd_bundle/pydevd_cython.pyx", line 231, in _pydevd_bundle.pydevd_cython.is_unhandled_exception
  File "c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\extensions\microsoft\python\core\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_collect_bytecode_info.py", line 167, in collect_try_except_info
    def collect_try_except_info(co, use_func_first_line=False):
IndexError: list index out of range

Please help me to resolve it. Thanks.

@int19h int19h added the bug Something isn't working label Aug 18, 2020
@fabioz
Copy link
Collaborator

fabioz commented Aug 21, 2020

@nalumachurakesh can you share your bottle.py script?

@nalumachurakesh
Copy link
Author

nalumachurakesh commented Aug 21, 2020

@fabioz Please click here to access the bottle.py script

@fabioz
Copy link
Collaborator

fabioz commented Aug 21, 2020

Thanks. I'm able to reproduce it with that (I'll investigate here).

fabioz added a commit to fabioz/debugpy that referenced this issue Aug 27, 2020
@fabioz fabioz closed this as completed in 7512ab0 Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants