Broke something after a Python update. Tearing hair out trying to fix.
Posted: Fri Apr 21, 2023 11:43 am
Quick version:
I have ES running with YoloV3 for years with no issues. I moved home and broke something, the error was related to one of the scripts pulling an IP from my old address. It wasn't anywhere in the configs, so I assumed a bug and since I could use an update, updated everything anyway.
Worked OK, some faults, decided to update some more. Now I have an error in one of the scripts.
Assumed this was a Python error, and while attempting to reinstall Python, completely killed ubuntu. Had to rebuild most of the system and I'm back at the same error again in "zm_detect.py".
I know this shows CV2 here, however I can change to any other model and get this exact same error.
What am I missing?
Thanks
I have ES running with YoloV3 for years with no issues. I moved home and broke something, the error was related to one of the scripts pulling an IP from my old address. It wasn't anywhere in the configs, so I assumed a bug and since I could use an update, updated everything anyway.
Worked OK, some faults, decided to update some more. Now I have an error in one of the scripts.
Assumed this was a Python error, and while attempting to reinstall Python, completely killed ubuntu. Had to rebuild most of the system and I'm back at the same error again in "zm_detect.py".
Code: Select all
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 15, in <module>
import imutils
File "/usr/local/lib/python3.8/dist-packages/imutils/__init__.py", line 8, in <module>
from .convenience import translate
File "/usr/local/lib/python3.8/dist-packages/imutils/convenience.py", line 6, in <module>
import cv2
File "/usr/local/lib/python3.8/dist-packages/cv2/__init__.py", line 181, in <module>
bootstrap()
File "/usr/local/lib/python3.8/dist-packages/cv2/__init__.py", line 175, in bootstrap
if __load_extra_py_code_for_module("cv2", submodule, DEBUG):
File "/usr/local/lib/python3.8/dist-packages/cv2/__init__.py", line 28, in __load_extra_py_code_for_module
py_module = importlib.import_module(module_name)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/local/lib/python3.8/dist-packages/cv2/gapi/__init__.py", line 301, in <module>
cv.gapi.wip.GStreamerPipeline = cv.gapi_wip_gst_GStreamerPipeline
AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)
What am I missing?
Thanks