polybar: Building from AUR: Missing required python module: xcbgen

I was trying to rebuild polybar with pacaur because the network module wasn’t working. For some reason, after I uninstalled polybar with pacman, and tried to reinstall with pacaur, I keep getting the same error that I’m missing xcbgen. Overall I cannot build polybar anymore.

so I tried sudo pacman -S $(pacman -Ssq xcb) (which installed Haskell and ghc lol) and tried building from github with build.sh but that failed. So I did cmake .. in polybar/build but that had the same result, where it says:

CMake Error at lib/xpp/CMakeLists.txt:55 (message): Missing required python module: xcbgen

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

Not sure if this has been logged elsewhere, but ensuring that pyenv uses the system Python rather than some virtual environment with pyenv global system should help. Do that, then reinstall xcb-proto and try installing polybar again.

Any idea how to fix that without uninstalling conda? Edit: conda install -c conda-forge xorg-xcb-proto from #733 worked for me.

i had a similar problem on arch, and a reinstall of xcb-proto package fixed it

Uninstalling Anaconda resolved the same issue for me. I believe it will help someone else. https://docs.anaconda.com/anaconda/install/uninstall for details

After some testing I have determined that on some setups it’s virtually impossible to build polybar if anaconda is lingering in the PATH, I have rewritten the entry on the known issues page for instructions on how to build polybar without anaconda getting in the way: https://github.com/jaagr/polybar/wiki/Known-Issues#building-with-anaconda-installed

conda deactivate on terminal window worked for me

@sirusss Did you read the link I posted? It describes how to get polybar working with anaconda.