InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]:

Open Florencia007 opened this issue 3 years ago • 6 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

macOS

GPU

cpu

VRAM

4GB

What happened?

Hi, I did all the installation with no problem but when running the browser version I get this error: Any idea how to fix it? Thanks

ImportError: dlopen(/Users/winter/invokeai/.venv/lib/python3.10/site-packages/cv2/cv2.abi3.so, 2): Symbol not found: _VTRegisterSupplementalVideoDecoderIfAvailable Referenced from: /Users/winter/invokeai/.venv/lib/python3.10/site-packages/cv2/.dylibs/libavcodec.59.37.100.dylib (which was built for Mac OS X 11.0) Expected in: /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox in /Users/winter/invokeai/.venv/lib/python3.10/site-packages/cv2/.dylibs/libavcodec.59.37.100.dylib

Screenshots

No response

Additional context

No response

Contact Details

No response

Florencia007 avatar Jan 09 '23 02:01 Florencia007

I have MAC osx 10.15 catalina so that for sure can be the problem, but how do I fix it? I don't want to upgrade

Florencia007 avatar Jan 09 '23 02:01 Florencia007

I have the same problem. I assume the issue is that we don't meet the minimum requirements: An NVIDIA-based graphics card with 4 GB or more VRAM memory.

aidanhiggins avatar Jan 10 '23 15:01 aidanhiggins

try this: the macos system seems too old for the new opencv package pip3 install opencv-python==4.6.0.66

schspa avatar Feb 07 '23 06:02 schspa

Thanks @schspa. I already had that version of opencv-python installed.

aidanhiggins avatar Feb 16 '23 15:02 aidanhiggins

try this: the macos system seems too old for the new opencv package pip3 install opencv-python==4.6.0.66

This works ok for me in MAC OSX 10.15.7 Catalina

HackWorldMoon avatar Feb 16 '23 16:02 HackWorldMoon

This is how I solved it on Catalina 10.15.7 with Python 3.10

I had opencv 4.6.0.66 installed in /usr/local/lib/python3.10/site-packages/cv2/ And invokeAI was using version 4.7 located in /Users/myUser/invokeai/.venv/lib/python3.10/site-packages/cv2/ So I removed that version and copied the folder to invokeAI location

$ rm -rf /Users/myUser/invokeai/.venv/lib/python3.10/site-packages/cv2 $ cp -r /usr/local/lib/python3.10/site-packages/cv2 /Users/myUser/invokeai/.venv/lib/python3.10/site-packages/

And Voilà, works like a charm Of course replace "myUser" with your user folder

cxpreng avatar Feb 19 '23 02:02 cxpreng

@cris-spreng you are a legend! That works perfectly for me. Thank you!

aidanhiggins avatar Feb 21 '23 11:02 aidanhiggins

There has been no activity in this issue for 14 days. If this issue is still being experienced, please reply with an updated confirmation that the issue is still being experienced with the latest release.

github-actions[bot] avatar Mar 12 '23 06:03 github-actions[bot]

This is how I solved it on Catalina 10.15.7 with Python 3.10

I had opencv 4.6.0.66 installed in /usr/local/lib/python3.10/site-packages/cv2/ And invokeAI was using version 4.7 located in /Users/myUser/invokeai/.venv/lib/python3.10/site-packages/cv2/ So I removed that version and copied the folder to invokeAI location

$ rm -rf /Users/myUser/invokeai/.venv/lib/python3.10/site-packages/cv2 $ cp -r /usr/local/lib/python3.10/site-packages/cv2 /Users/myUser/invokeai/.venv/lib/python3.10/site-packages/

And Voilà, works like a charm Of course replace "myUser" with your user folder

thank you, its workd!

Ahkari avatar Mar 16 '23 03:03 Ahkari

There has been no activity in this issue for 14 days. If this issue is still being experienced, please reply with an updated confirmation that the issue is still being experienced with the latest release.

github-actions[bot] avatar Mar 31 '23 06:03 github-actions[bot]

@cxpreng thanks so much. I can't believe it. I spent two weeks trying to figure out. and took 3 days on your post ..... as a totally none-IT girl. I did it. you rock!

ShortCat100 avatar Feb 28 '24 16:02 ShortCat100