OpenCV-Python cv2.CV_CAP_PROP_POS_FRAMES error

You're looking for this:

post_frame = cap.get(cv2.CAP_PROP_POS_FRAMES)

Try typing this instead:

post_frame = cap.get(1) #CAP_PROP_POS_FRAMES = 1

If you type help('cv2') in the Python shell you will find some modifications to the syntax. These are not all the Data. Just an illustration.

CAP_PROP_PAN = 33
CAP_PROP_POS_AVI_RATIO = 2
CAP_PROP_POS_FRAMES = 1
CAP_PROP_POS_MSEC = 0
CAP_PROP_PVAPI_BINNINGX = 304
CAP_PROP_PVAPI_BINNINGY = 305
CAP_PROP_PVAPI_DECIMATIONHORIZONTAL = 302