구차니
2022. 3. 14. 19:13
$ pdb chcker.py > /home/minimonk/src/py/chcker.py(1)<module>() -> import numpy as np (Pdb) run Restarting chcker.py with arguments: > /home/minimonk/src/py/chcker.py(1)<module>() -> import numpy as np (Pdb) list 1 -> import numpy as np 2 import cv2 3 import glob 4 # termination criteria 5 criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 30, 0.001) 6 # prepare object points, like (0,0,0), (1,0,0), (2,0,0) ....,(6,5,0) 7 objp = np.zeros((6*7,3), np.float32) 8 objp[:,:2] = np.mgrid[0:7,0:6].T.reshape(-1,2) 9 # Arrays to store object points and image points from all the images. 10 objpoints = [] # 3d point in real world space 11 imgpoints = [] # 2d points in image plane. (Pdb) n > /home/minimonk/src/py/chcker.py(2)<module>() -> import cv2 (Pdb) n ImportError: 'No module named cv2' > /home/minimonk/src/py/chcker.py(2)<module>() -> import cv2 (Pdb) q |
$ whereis pdb pdb: /usr/bin/pdb2.7 /usr/bin/pdb /usr/bin/pdb3.6 /usr/share/man/man1/pdb.1.gz $ ls -al /usr/bin/pdb* lrwxrwxrwx 1 root root 6 4월 16 2018 /usr/bin/pdb -> pdb2.7 lrwxrwxrwx 1 root root 23 2월 28 2021 /usr/bin/pdb2.7 -> ../lib/python2.7/pdb.py lrwxrwxrwx 1 root root 6 1월 28 12:37 /usr/bin/pdb3 -> pdb3.6 lrwxrwxrwx 1 root root 23 12월 9 06:08 /usr/bin/pdb3.6 -> ../lib/python3.6/pdb.py $ ls -al /usr/lib/python3. python3.6/ python3.7/ python3.8/ $ ls -al /usr/lib/python3.6/pdb.py -rwxr-xr-x 1 root root 61310 12월 9 06:08 /usr/lib/python3.6/pdb.py |