Open zhum opened 1 year ago
That's very strange. It looks like pip can't find the package on PYPI. It works for me.
Are you able to install other packages from PYPI? Do you see anything when you go here https://pypi.org/project/webcam-filters/
I would try explicitly setting the index url the --index-url https://pypi.python.org/simple
, or you can also try installing from Git pip install --user git+https://github.com/jashandeep-sohi/webcam-filters.git@v0.3.0
Thank you! The latest one helped. I had to install additional packages (sudo apt install python3-dev libgirepository1.0-dev; pip install gobject PyGObject
, and yes, i have installed python3-gi system package, but...), but now it starts.
But I got another trouble, just like in issue #34 , but without any containers. Here is my output:
$ v4l2-ctl --device /dev/video4 --info
Driver Info:
Driver name : v4l2 loopback
Card type : Virtual Webcam
Bus info : platform:v4l2loopback-000
Driver version : 5.15.74
Capabilities : 0x85200002
Video Output
Read/Write
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x05200002
Video Output
Read/Write
Streaming
Extended Pix Format
$ webcam-filters --input-dev /dev/video0 --output-dev /dev/video4 --background-blur 150
Traceback (most recent call last):
File "/home/szhumatiy/.local/bin/webcam-filters", line 8, in <module>
sys.exit(main())
File "/home/szhumatiy/.local/lib/python3.9/site-packages/webcam_filters/__main__.py", line 5, in main
cli.main(prog_name="webcam-filters")
File "/home/szhumatiy/.local/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/szhumatiy/.local/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/szhumatiy/.local/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/szhumatiy/.local/lib/python3.9/site-packages/webcam_filters/main.py", line 154, in cli
add_filters(
File "/home/szhumatiy/.local/lib/python3.9/site-packages/webcam_filters/gst.py", line 98, in add_filters
for s in caps:
TypeError: 'Caps' object is not iterable
The same in pass-though mode.
It's really hard to get the system dependencies just right. Even if they are not missing (looks like you have them all), they have to be just the right combination of versions. I'll try to debug this when I get the time, but meanwhile you can try using the Docker or Nix way of installing this.
Using pip:
Using pipx:
Via url: