Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

前端 未结 8 802
攒了一身酷
攒了一身酷 2020-12-03 04:45

I\'m trying to execute a Python script, but I am getting the following error:

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
         


        
相关标签:
8条回答
  • 2020-12-03 05:08

    Another possible cause (which I encountered today) is that you're trying to read/write a file which is open. In this case, simply closing the file and rerunning the script solved the issue.

    0 讨论(0)
  • 2020-12-03 05:08

    found on other page. interpreter: python 3.8

    cv2.CascadeClassifier(cv2.data.haarcascades + "haarcascade_frontalface_default.xml")

    this solved issue for me. i was getting SIGSEGV with 2.7, upgraded my python to 3.8 then got different error with OpenCV. and found answer on OpenCV 4.0.0 SystemError: <class 'cv2.CascadeClassifier'> returned a result with an error set.

    but eventually one line of code fixed it.

    0 讨论(0)
提交回复
热议问题