Closed lovemark1234 closed 1 year ago
Just updated the installation steps with a link to the new installation instructions page in the wiki.
Try out the section at the bottom for the AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)
problem and let me know how it turns out!
Just updated the installation steps with a link to the new installation instructions page in the wiki.
Try out the section at the bottom for the
AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)
problem and let me know how it turns out!
Thank ! solved after
pip install --upgrade pip setuptools wheel --user pip install opencv-python pip install -r requirements.txt pip install "opencv-python-headless<4.3"
in backend folder
Traceback (most recent call last): File "backend/main.py", line 5, in
from bot.game import Game
File "C:\Users\marks\Downloads\gf\backend\bot\game.py", line 7, in
import pyautogui
File "C:\Users\marks\AppData\Local\Programs\Python\Python38\lib\site-packages\pyautogui__init.py", line 183, in
import pyscreeze
File "C:\Users\marks\AppData\Local\Programs\Python\Python38\lib\site-packages\pyscreeze__init.py", line 45, in
import cv2, numpy
File "C:\Users\marks\AppData\Local\Programs\Python\Python38\lib\site-packages\cv2\ init.py", line 181, in
bootstrap()
File "C:\Users\marks\AppData\Local\Programs\Python\Python38\lib\site-packages\cv2\ init.py", line 175, in bootstrap
if load_extra_py_code_for_module("cv2", submodule, DEBUG):
File "C:\Users\marks\AppData\Local\Programs\Python\Python38\lib\site-packages\cv2\ init.py", line 28, in load_extra_py_code_for_module
py_module = importlib.import_module(module_name)
File "C:\Users\marks\AppData\Local\Programs\Python\Python38\lib\importlib__init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\marks\AppData\Local\Programs\Python\Python38\lib\site-packages\cv2\gapi\init__.py", line 290, in
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)
Saved message log to: log 2023-01-11 15-58-22.txt Child process finished with code 1
log 2023-01-11 15-58-22.txt