Skip to content Skip to sidebar Skip to footer

Process Finished With Exit Code 134 (interrupted By Signal 6: Sigabrt) In Python Opencv

import numpy as np import cv2 cap = cv2.VideoCapture(0) while(True): # Capture frame-by-frame ret, frame = cap.read() # Our operations on the frame come here gra

Solution 1:

  1. Open /Applications/PyCharm.app/Contents/info.plist,
  2. Insert a new line:

    • Key: Privacy - Camera Usage
    • Type: String
    • Value: An application in PyCharm wants to use the camera.
  3. Save it.

  4. Reopen PyCharm.
  5. Run your code.

Solution 2:

I have opened an issue at Jetbrains because of this. But here is a workaround:

Run PyCharm / IntelliJ (whatever Jetbrains App) from an application which already has been approved for camera access. For example I use the Hyper Terminal to run the IDE and everything works.

Solution 3:

By running the python script in vs code (visual studio code) will execute the program without any warning or bugs.

Solution 4:

Open /Applications/PyCharm.app/Contents/info.plist in any text editor. Add these two line before dict & plist tag:

<key>Privacy - Camera Usage</key><string>An application in PyCharm wants to use the camera.</string></dict></plist>

Post a Comment for "Process Finished With Exit Code 134 (interrupted By Signal 6: Sigabrt) In Python Opencv"