Solvedavatarify python Error when run "bash"


I pull the last commit, executed again the and tryed run:


But this error occours:

(avatarify) eltonnunes@eltonnunes-home:~/Repository/others/avatarify$ bash
0: ./avatars/einstein.jpg
1: ./avatars/eminem.jpg
2: ./avatars/jobs.jpg
3: ./avatars/mona.jpg
4: ./avatars/obama.jpg
5: ./avatars/potter.jpg
6: ./avatars/ronaldo.png
7: ./avatars/schwarzenegger.png
load checkpoints.. YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read for full details.
config = yaml.load(f)
Traceback (most recent call last):
File "", line 231, in
stream = pyfakewebcam.FakeWebcam(f'/dev/video{opt.virt_cam}', frame.shape[1], frame.shape[0])
File "/home/eltonnunes/.conda/envs/avatarify/lib/python3.8/site-packages/pyfakewebcam/", line 54, in init
fcntl.ioctl(self._video_device, _v4l2.VIDIOC_S_FMT, self._settings)
OSError: [Errno 22] Invalid argument

Anyone can help ?

My OS: Linux Mint 19.3 Cinnamon

28 Answers

✔️Accepted Answer

Added fix branch. Do:

# remove apt package
sudo modprobe -r v4l2loopback
sudo apt remove v4l2loopback-dkms

# build v4l2loopback from source
# from avatarify directory:
git pull
git checkout fix_v4l2loopback
bash scripts/

Related Issues:

avatarify python Error when run "bash"
Added fix branch Do: Hi I pull the last commit ...