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)
Not sure if this has been logged elsewhere, but ensuring that
pyenvuses thesystemPython rather than some virtual environment withpyenv global systemshould help. Do that, then reinstallxcb-protoand try installingpolybaragain.Any idea how to fix that without uninstalling conda? Edit:
conda install -c conda-forge xorg-xcb-protofrom #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-installedconda deactivate on terminal window worked for me
@sirusss Did you read the link I posted? It describes how to get polybar working with anaconda.