Solved Unable to start debugger
-
@Morales1235 said in Unable to start debugger:
Qt Debugger
There is no such thing, QtCreator uses GDB on Linux.
"ImportError: No module named 'opencvtypes'\n"
You need to install Python package containing opencvtypes module.
-
@jsulm said in Unable to start debugger:
You need to install Python package containing opencvtypes module.
Of course I supposed that, but how can I find such thing? Only place i found something about opencvtypes was QtCreator repository, directory debugger, that's why I mentioned 'Qt debugger' and reinstalled Qt Creator.
#Edit
I have manually downloaded opencvmodules.py and pasted into /usr/share/edbugger, where the others *.py files was. -
@Morales1235 I'm not sure which package you need to install. On my Ubuntu machine I see "python-opencv", maybe this one.
-
Hello,
I have a similar problem with the following error message:
>=thread-group-added,id="i1" >~"GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git\n" >~"Copyright (C) 2018 Free Software Foundation, Inc.\n" >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" >~"This GDB was configured as \"aarch64-linux-gnu\".\nType \"show configuration\" for configuration details." >~"\nFor bug reporting instructions, please see:\n" >~"<http://www.gnu.org/software/gdb/bugs/>.\n" >~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n" >~"For help, type \"help\".\n" >~"Type \"apropos word\" to search for commands related to \"word\".\n" >&"show version\n" >~"GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git\n" >~"Copyright (C) 2018 Free Software Foundation, Inc.\n" >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" >~"This GDB was configured as \"aarch64-linux-gnu\".\nType \"show configuration\" for configuration details." >~"\nFor bug reporting instructions, please see:\n" >~"<http://www.gnu.org/software/gdb/bugs/>.\n" >~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n" >~"For help, type \"help\".\n" >~"Type \"apropos word\" to search for commands related to \"word\".\n" >1^done dPARSING VERSION: 1^done dSUPPORTED GDB VERSION GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git dCopyright (C) 2018 Free Software Foundation, Inc. dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> dThis is free software: you are free to change and redistribute it. dThere is NO WARRANTY, to the extent permitted by law. Type "show copying" dand "show warranty" for details. dThis GDB was configured as "aarch64-linux-gnu". dType "show configuration" for configuration details. dFor bug reporting instructions, please see: d<http://www.gnu.org/software/gdb/bugs/>. dFind the GDB manual and other documentation resources online at: d<http://www.gnu.org/software/gdb/documentation/>. dFor help, type "help". dType "apropos word" to search for commands related to "word". dGNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git dCopyright (C) 2018 Free Software Foundation, Inc. dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> dThis is free software: you are free to change and redistribute it. dThere is NO WARRANTY, to the extent permitted by law. Type "show copying" dand "show warranty" for details. dThis GDB was configured as "aarch64-linux-gnu". dType "show configuration" for configuration details. dFor bug reporting instructions, please see: d<http://www.gnu.org/software/gdb/bugs/>. dFind the GDB manual and other documentation resources online at: d<http://www.gnu.org/software/gdb/documentation/>. dFor help, type "help". dType "apropos word" to search for commands related to "word". dUSING GDB VERSION: 80100, BUILD: 0 <14-interpreter-exec console "set target-async off" >&"show debug-file-directory\n" >~"The directory where separate debug symbols are searched for is \"/usr/lib/debug\".\n" >2^done >&"set print object on\n" >=cmd-param-changed,param="print object",value="on" >3^done >&"set breakpoint pending on\n" >=cmd-param-changed,param="breakpoint pending",value="on" >4^done >&"set print elements 10000\n" >=cmd-param-changed,param="print elements",value="10000" >5^done >&"set unwindonsignal on\n" >=cmd-param-changed,param="unwindonsignal",value="on" >6^done >&"set width 0\n" >=cmd-param-changed,param="width",value="4294967295" >7^done >&"set height 0\n" >8^done >&"set substitute-path /var/tmp/qt-src /usr/include/aarch64-linux-gnu\n" >9^done >&"python sys.path.insert(1, '/usr/share/qtcreator/debugger/')\n" >10^done >&"python sys.path.append('/usr/bin/data-directory/python')\n" >11^done >&"python from gdbbridge import *\n" >12^done >&"python theDumper.loadDumpers({\"token\":13})\n" >&"Traceback (most recent call last):\n" >&" File \"<string>\", line 1, in <module>\n" >&" File \"/usr/share/qtcreator/debugger/dumper.py\", line 2483, in loadDumpers\n" >&" msg = self.setupDumpers()\n" >&" File \"/usr/share/qtcreator/debugger/dumper.py\", line 2456, in setupDumpers\n" >&" m = __import__(mod)\n" >&"ModuleNotFoundError: No module named 'opencvtypes'\n" >&"Error while executing Python code.\n" >13^error,msg="Error while executing Python code." dNOTE: ENGINE SETUP FAILED dState changed from EngineSetupRequested(1) to EngineSetupFailed(2) [master] <Debugging has failed dState changed from EngineSetupFailed(2) to DebuggerFinished(22) [master] dQUIT DEBUGGER REQUESTED IN STATE 22 >14^done dCOOKIE FOR TOKEN 14 ALREADY EATEN (DebuggerFinished). TWO RESPONSES FOR ONE COMMAND? d dNON-CRITICAL TIMEOUT dCOMMANDS STILL IN PROGRES
OpenCV 4.3.0 is linked to the project properly, but cannot debug. Is there a solution for this? @jsulm @Morales1235 ?
-
@t3rb3d Is python-opencv installed?
Because of this:&"ModuleNotFoundError: No module named 'opencvtypes'\n"
&"Error while executing Python code.\n" -
@jsulm Yes,
sudo apt install python-opencv
says it is already the newest. -
@t3rb3d Do you have more than one Python installation, like Python 2 and 3?
-
@jsulm Yes, there are more pythons:
ls /usr/bin | grep python
aarch64-linux-gnu-python2.7-config aarch64-linux-gnu-python3.6-config aarch64-linux-gnu-python3.6m-config aarch64-linux-gnu-python3-config aarch64-linux-gnu-python3m-config aarch64-linux-gnu-python-config dh_python2 dh_python3 python python2 python2.7 python2.7-config python2-config python3 python3.6 python3.6-config python3.6m python3.6m-config python3-config python3m python3m-config python-config
And python-opencv is installed for the 2.7 version:
dpkg -L python-opencv
/. /usr /usr/lib /usr/lib/python2.7 /usr/lib/python2.7/dist-packages /usr/lib/python2.7/dist-packages/cv2.aarch64-linux-gnu.so /usr/share /usr/share/doc /usr/share/doc/python-opencv /usr/share/doc/python-opencv/copyright /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/python-opencv /usr/share/doc/python-opencv/changelog.Debian.gz
But I also have built opencv-python from soruce:
ls /usr/local/lib/python2.7/dist-packages/
>> cv2
-
@t3rb3d Try to install it for Python 3
-
It is also installed and still not working!
dpkg -L python3-opencv
/. /usr /usr/lib /usr/lib/python3 /usr/lib/python3/dist-packages /usr/lib/python3/dist-packages/cv2.cpython-36m-aarch64-linux-gnu.so /usr/share /usr/share/doc /usr/share/doc/python3-opencv /usr/share/doc/python3-opencv/copyright /usr/share/doc/python3-opencv/changelog.Debian.gz
Might it be the problem that it is an ARM cpu based system? (NVIDIA Jetson Nano)
@jsulm do you have any idea?