[MacPorts] #68037: xorg-libxcb @1.15: KeyError(s) from python code namecount[tname] during compile (was: xorg-libxcb @1.15: KeyError from python code namecount[tname] during compile)

MacPorts noreply at macports.org
Fri Aug 25 14:02:05 UTC 2023


#68037: xorg-libxcb @1.15: KeyError(s) from python code namecount[tname] during
compile
--------------------------+------------------------
  Reporter:  jgrg         |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  xcb libxcb
      Port:  xorg-libxcb  |
--------------------------+------------------------
Description changed by jgrg:

Old description:

> I've compiled MacPorts from source for installing in my home directory.
>
> Compiling `xorg-libxcb` fails with a KeyError from python:
>
> {{{
> Traceback (most recent call last):
>   File
> "/Users/jgrg/MacPorts/var/macports/build/_Users_jgrg_MacPorts_var_macports_sources_rsync.macports
> .org_macports_release_tarballs_ports_x11_xorg-libxcb/xorg-
> libxcb/work/libxcb-1.15/src/./c_client.py", line 3394, in <module>
>   File
> "//Users/jgrg/MacPorts/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
> /site-packages/xcbgen/state.py", line 131, in generate
> /Users/jgrg/MacPorts/bin/python3.11 ./c_client.py   -c "libxcb 1.15" -l
> "X Version 11" \
>         -s "3" -p
> //Users/jgrg/MacPorts/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
> /site-packages \
>          \
>         //Users/jgrg/MacPorts/share/xcb/record.xml
>     item.out(name)
>   File
> "/Users/jgrg/MacPorts/var/macports/build/_Users_jgrg_MacPorts_var_macports_sources_rsync.macports
> .org_macports_release_tarballs_ports_x11_xorg-libxcb/xorg-
> libxcb/work/libxcb-1.15/src/./c_client.py", line 3198, in c_request
>     module.generate()
>   File
> "//Users/jgrg/MacPorts/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
> /site-packages/xcbgen/state.py", line 131, in generate
>     item.out(name)
>   File
> "/Users/jgrg/MacPorts/var/macports/build/_Users_jgrg_MacPorts_var_macports_sources_rsync.macports
> .org_macports_release_tarballs_ports_x11_xorg-libxcb/xorg-
> libxcb/work/libxcb-1.15/src/./c_client.py", line 3198, in c_request
>     _c_request_helper(self, name, void=True, regular=False)
>   File
> "/Users/jgrg/MacPorts/var/macports/build/_Users_jgrg_MacPorts_var_macports_sources_rsync.macports
> .org_macports_release_tarballs_ports_x11_xorg-libxcb/xorg-
> libxcb/work/libxcb-1.15/src/./c_client.py", line 2273, in
> _c_request_helper
>     _c_request_helper(self, name, void=True, regular=False)
>   File
> "/Users/jgrg/MacPorts/var/macports/build/_Users_jgrg_MacPorts_var_macports_sources_rsync.macports
> .org_macports_release_tarballs_ports_x11_xorg-libxcb/xorg-
> libxcb/work/libxcb-1.15/src/./c_client.py", line 2273, in
> _c_request_helper
>     if namecount[tname] > 1:
>        ~~~~~~~~~^^^^^^^
> KeyError: 'xcb_redirect_t'
>     if namecount[tname] > 1:
>        ~~~~~~~~~^^^^^^^
> KeyError: 'xcb_report_level_t'
> make[1]: *** [damage.c] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make[1]: *** [composite.c] Error 1
> }}}

New description:

 I've compiled MacPorts from source for installing in my home directory.

 Compiling `xorg-libxcb` fails with KeyError(s) from python:

 {{{
 Traceback (most recent call last):
   File
 "/Users/jgrg/MacPorts/var/macports/build/_Users_jgrg_MacPorts_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_x11_xorg-libxcb/xorg-
 libxcb/work/libxcb-1.15/src/./c_client.py", line 3394, in <module>
   File
 "//Users/jgrg/MacPorts/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
 /site-packages/xcbgen/state.py", line 131, in generate
 /Users/jgrg/MacPorts/bin/python3.11 ./c_client.py   -c "libxcb 1.15" -l "X
 Version 11" \
         -s "3" -p
 //Users/jgrg/MacPorts/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
 /site-packages \
          \
         //Users/jgrg/MacPorts/share/xcb/record.xml
     item.out(name)
   File
 "/Users/jgrg/MacPorts/var/macports/build/_Users_jgrg_MacPorts_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_x11_xorg-libxcb/xorg-
 libxcb/work/libxcb-1.15/src/./c_client.py", line 3198, in c_request
     module.generate()
   File
 "//Users/jgrg/MacPorts/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
 /site-packages/xcbgen/state.py", line 131, in generate
     item.out(name)
   File
 "/Users/jgrg/MacPorts/var/macports/build/_Users_jgrg_MacPorts_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_x11_xorg-libxcb/xorg-
 libxcb/work/libxcb-1.15/src/./c_client.py", line 3198, in c_request
     _c_request_helper(self, name, void=True, regular=False)
   File
 "/Users/jgrg/MacPorts/var/macports/build/_Users_jgrg_MacPorts_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_x11_xorg-libxcb/xorg-
 libxcb/work/libxcb-1.15/src/./c_client.py", line 2273, in
 _c_request_helper
     _c_request_helper(self, name, void=True, regular=False)
   File
 "/Users/jgrg/MacPorts/var/macports/build/_Users_jgrg_MacPorts_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_x11_xorg-libxcb/xorg-
 libxcb/work/libxcb-1.15/src/./c_client.py", line 2273, in
 _c_request_helper
     if namecount[tname] > 1:
        ~~~~~~~~~^^^^^^^
 KeyError: 'xcb_redirect_t'
     if namecount[tname] > 1:
        ~~~~~~~~~^^^^^^^
 KeyError: 'xcb_report_level_t'
 make[1]: *** [damage.c] Error 1
 make[1]: *** Waiting for unfinished jobs....
 make[1]: *** [composite.c] Error 1
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/68037#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list