Closed kerryhatcher closed 3 years ago
It seems something changed recently (and hopefully temporarily) as I haven't experienced this before, but while experimenting package dependencies for the recent PR #7 I caught this error as well. Not sure exactly which package that solved it, but did you see the updated install suggestion in readme.md, namely sudo apt-get install libcairo2-dev libgirepository1.0-dev
. See if that works, otherwise I will try to narrow it down better.
I had tried that before I opened the issue, but just ran it again just to double check and apt reports those are already installed.
Does make me feel better that I'm not just doing something super noobish ;)
Hm, I re-tested a bit and for me sudo apt-get remove libcairo2-dev libgirepository1.0-dev && pip uninstall pycairo camset PyGOjbect && pip install camset --no-cache
gives me an identical error message as you posted above, but sudo apt-get install libcairo2-dev libgirepository1.0-dev && pip install camset --no-cache
works. This is, however, not a clean Ubuntu install so it's possible that I have some other non-default package installed, but I think those should be enough. What is your output of pkg-config --variable pc_path pkg-config
and echo $PKG_CONFIG_PATH
?
It would seem that $PKG_CONFIG_PATH
was not set, it echos a blank line. I noticed that the output of pkg-config --variable pc_path pkg-config
referenced linuxbrew directories. I used brew to setup python and pyenv (along with lots of other non related things).
I tried installing the brew versions of the dependencies and that seemed to do the trick.
brew install cairo pkg-config pygobject3 gtk+3
Once that finished (its a huge install with a crazy number of sub dependencies) both pipx install camset
and pip install camset --no-cache
worked just fine. App seems to work great as well.
If you're open to it I can fork the repo and add some information for Brew users like myself to the docs and open a PR. Just let me know.
Thanks!!!!
Great, glad you managed to get it working! :) And you are more than welcome to send a PR with Brew instructions, I have no experience with that, so it would be helpful!
Attempted install fails with either
pip
orpipx
to install on Ubuntu 20.04. I'm using pyenv to manage my user python.Note: I understand this is an issue with pycairo and not camset however it would benefit users of camset to figure this out and add a workaround or fix to the readme. I've spent a small amount of time attempting to debug the issue (installing dependencies and other ideas I found via Googling). Ended up just using
v4l2-ctl
to solve my immedate need but I'd much rather use Camset in the future.Expected:
pip(x) install camset
to successfully install application.Experienced: