LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-10-2023, 12:06 PM   #1
1nuxg33k
Member
 
Registered: Feb 2019
Location: PNW
Distribution: Debian, LFS
Posts: 87

Rep: Reputation: 33
Polybar not building


I'm trying to build polybar and getting some python errors and I can't seem to figure out why. I have all of the dependencies for polybar.

Code:
make
[  1%] sphinx-build man: see doc/builder-man.log
[  1%] Built target doc_man
[  1%] sphinx-build html: see doc/builder-html.log
[  1%] Built target doc_html
[  1%] Built target doc
[  2%] Generating generated-sources/include/xpp/proto/xkb.hpp
Traceback (most recent call last):
  File "/root/gitbuilds/polybar/lib/xpp/generators/cpp_client.py", line 3125, in <module>
    module.generate()
  File "/usr/local/lib/python3.11/site-packages/xcbgen/state.py", line 101, in generate
    item.out(name)
  File "/root/gitbuilds/polybar/lib/xpp/generators/cpp_client.py", line 2924, in c_request
    _c_type_setup(self, name, ('request',))
  File "/root/gitbuilds/polybar/lib/xpp/generators/cpp_client.py", line 377, in _c_type_setup
    _c_type_setup(field.type, field.field_type, ())
  File "/root/gitbuilds/polybar/lib/xpp/generators/cpp_client.py", line 452, in _c_type_setup
    _c_serialize('serialize', self)
  File "/root/gitbuilds/polybar/lib/xpp/generators/cpp_client.py", line 1231, in _c_serialize
    count = _c_serialize_helper(context, self, code_lines, temp_vars, prefix=prefix)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/gitbuilds/polybar/lib/xpp/generators/cpp_client.py", line 1092, in _c_serialize_helper
    count += _c_serialize_helper_switch(context, self, complex_name,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/gitbuilds/polybar/lib/xpp/generators/cpp_client.py", line 729, in _c_serialize_helper_switch
    len_expr = len(b.type.expr)
               ^^^^^^^^^^^^^^^^
TypeError: object of type 'Expression' has no len()
make[2]: *** [lib/xpp/CMakeFiles/xpp.dir/build.make:82: lib/xpp/generated-sources/include/xpp/proto/xkb.hpp] Error 1
make[2]: *** Deleting file 'lib/xpp/generated-sources/include/xpp/proto/xkb.hpp'
make[1]: *** [CMakeFiles/Makefile2:493: lib/xpp/CMakeFiles/xpp.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
This is for i3-wm. Searching the webs seems like other people got polybar to work but they're 4 year old threads.
 
Old 02-11-2023, 06:45 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
this means usually some part of your build system is outdated (or just incompatible with some other parts).
Let's say the python version you use (3.11) contains a modified Expression class, not the one used by polybar. But obviously it is just a wild guess.
 
Old 02-19-2023, 04:09 PM   #3
1nuxg33k
Member
 
Registered: Feb 2019
Location: PNW
Distribution: Debian, LFS
Posts: 87

Original Poster
Rep: Reputation: 33
Something went wrong with the build. I ran into multiple issues trying to compile other programs. Rebuilt the system and everything is working.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i show app tray in polybar i3-gaps? i tried browsing internet and couldn't find any answer or code to it plz help dinex Linux - Desktop 1 01-30-2021 09:59 AM
[SOLVED] Polybar (SBo) fails to compile Aeterna Slackware 11 08-05-2019 12:11 PM
[SOLVED] libgdiplus and polybar in -current with sbopkg tramtrist Slackware 2 02-11-2019 11:48 AM
LXer: Polybar: A Better WM Panel for your Linux system LXer Syndicated Linux News 0 07-25-2017 05:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration