virtualbackground icon indicating copy to clipboard operation
virtualbackground copied to clipboard

ImportError: cannot import name 'run'

Open rrichajalota opened this issue 4 years ago • 3 comments

Hello,

After running the installation instructions, I tried running python viba.py but it throws the following error.

  File "viba.py", line 3, in <module>
    from asyncio import run, get_running_loop, sleep, gather
ImportError: cannot import name 'run'

Any suggestions for fixing it?

OS: Ubuntu 18.04

rrichajalota avatar Dec 10 '20 12:12 rrichajalota

Oh! It turns out that asyncio.run was added in python 3.7, so the project then requires python 3.7 or higher. I will add this to the README :)

fisadev avatar Dec 10 '20 17:12 fisadev

As for suggestions, I would try to install python 3.7 or 3.8, but I don't know if they are available in ubuntu 18.04 official repos. You might need to install it by hand, or using a ppa.

fisadev avatar Dec 10 '20 17:12 fisadev

Hi @fisadev, it works with python3.8 but now I face another issue. When I run python viba.py --use-gpu --real-cam-device /dev/video2 --fake-cam-device /dev/video20, I only see a black screen on running a webcam application. In Cheese, it says 'There was an error playing video from the webcam' and on MS Teams, I only see a black screen. Any idea, why?

rrichajalota avatar Dec 19 '20 10:12 rrichajalota