Skip to content

Instantly share code, notes, and snippets.

@rickstaa
Created August 20, 2020 10:51
Show Gist options
  • Save rickstaa/98013658dbf0e95bef62e1f4c7b66a5d to your computer and use it in GitHub Desktop.
Save rickstaa/98013658dbf0e95bef62e1f4c7b66a5d to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/home/ricks/miniconda3/envs/machine_learning_control/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/ricks/miniconda3/envs/machine_learning_control/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/__main__.py", line 45, in <module>
cli.main()
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/../debugpy/server/cli.py", line 430, in main
run()
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/../debugpy/server/cli.py", line 267, in run_file
runpy.run_path(options.target, run_name=compat.force_str("__main__"))
File "/home/ricks/miniconda3/envs/machine_learning_control/lib/python3.7/runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "/home/ricks/miniconda3/envs/machine_learning_control/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/home/ricks/miniconda3/envs/machine_learning_control/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/ricks/Development/machine_learning_control_ws/src/sandbox/test_debugger.py", line 7, in <module>
print(is_scalar(np.array(2)), "True") # I'm here
File "/home/ricks/Development/machine_learning_control_ws/src/sandbox/test_debugger.py", line 7, in <module>
print(is_scalar(np.array(2)), "True") # I'm here
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 865, in trace_dispatch
self.do_wait_suspend(thread, frame, event, arg)
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 155, in do_wait_suspend
self._args[0].do_wait_suspend(*args, **kwargs)
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/_vendored/pydevd/pydevd.py", line 1846, in do_wait_suspend
keep_suspended = self._do_wait_suspend(thread, frame, event, arg, suspend_type, from_this_thread, frames_tracker)
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/_vendored/pydevd/pydevd.py", line 1880, in _do_wait_suspend
self.process_internal_commands()
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/_vendored/pydevd/pydevd.py", line 1586, in process_internal_commands
int_cmd.do_it(self)
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py", line 496, in do_it
self.method(dbg, *self.args, **self.kwargs)
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py", line 668, in internal_get_variable_json
for child_var in variable.get_children_variables(fmt=fmt, scope=scope):
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_suspended_frames.py", line 166, in get_children_variables
dct = resolver.get_dictionary(self.value)
File "/home/ricks/Development/dev_tools/debugpy/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugin_numpy_types.py", line 80, in get_dictionary
ret['[0:%s] ' % (len(obj))] = list(obj[0:MAX_ITEMS_TO_HANDLE])
IndexError: too many indices for array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment