Solvedavatarify python Error when run "bash run.sh"

Hi,

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

bash run.sh

But this error occours:

(avatarify) eltonnunes@eltonnunes-home:~/Repository/others/avatarify$ bash run.sh
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..
cam_fomm.py:34: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config = yaml.load(f)
Traceback (most recent call last):
File "cam_fomm.py", 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/pyfakewebcam.py", 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/install.sh

Related Issues:

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