Skip to content
Snippets Groups Projects

fix[BrainScaleS]: support build of genpybind w/ Python@3.10:

Merged Eric Müller requested to merge maybe_fix_BrainScaleS_for_Python310 into master

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Author Maintainer

    @andreasmueller reported this build problem when building on Python@3.10:

    --------------------------------------------------------------------------
    Checking clang resource dir
    /p/usersoftware/swmanage/mueller2/install/linux-rocky8-zen2/gcc-11.3.0/llvm-11.1.0-kncecubytwtxftu74cw4az6pp66irwhv/lib/clang/11.1.0
    from /p/usersoftware/swmanage/mueller2/spack/user-cache/mueller2/spack-stage/spack-stage-pynn-brainscales-6.0-rc1-w5a25s47gujasxjkxaezpnbrgc7tpobx/spack-src/libnux/pylibnux: Check for --genpybind-output-files failed with: Traceback (most recent call last):
      File "/p/usersoftware/swmanage/mueller2/install/linux-rocky8-zen2/gcc-11.3.0/genpybind-ebrains-l7am2xvqahzslel3oi35ebsmdsvub7ib/bin/genpybind", line 4, in <module>
        from genpybind.tool import main; main()
      File "/p/usersoftware/swmanage/mueller2/install/linux-rocky8-zen2/gcc-11.3.0/genpybind-ebrains-l7am2xvqahzslel3oi35ebsmdsvub7ib/lib/python3.10/site-packages/genpybind/tool.py", line 13, in <module>
        from .decls import gather_declarations
      File "/p/usersoftware/swmanage/mueller2/install/linux-rocky8-zen2/gcc-11.3.0/genpybind-ebrains-l7am2xvqahzslel3oi35ebsmdsvub7ib/lib/python3.10/site-packages/genpybind/decls/__init__.py", line 9, in <module>
        from .klasses import Klass
      File "/p/usersoftware/swmanage/mueller2/install/linux-rocky8-zen2/gcc-11.3.0/genpybind-ebrains-l7am2xvqahzslel3oi35ebsmdsvub7ib/lib/python3.10/site-packages/genpybind/decls/klasses.py", line 7, in <module>
        from ..registry import RE_NON_IDENTIFIER
      File "/p/usersoftware/swmanage/mueller2/install/linux-rocky8-zen2/gcc-11.3.0/genpybind-ebrains-l7am2xvqahzslel3oi35ebsmdsvub7ib/lib/python3.10/site-packages/genpybind/registry.py", line 19, in <module>
        class Registry(collections.Mapping):
    AttributeError: module 'collections' has no attribute 'Mapping'
    
    NOTE: confcache is enabled, make sure you supply --disable-confcache to configure from scratch!

    collections.Mapping has been moved to collections.abc.Mapping since ages…

    This MR adds a patch which (might) fix[es] it before we have a new genpybind release.

    Edited by Eric Müller
  • Eric Müller added 1 commit

    added 1 commit

    • 8ee74bc8 - fix[BrainScaleS]: support build of genpybind w/ Python@3.10:

    Compare with previous version

  • Eleni Mathioulaki marked this merge request as ready

    marked this merge request as ready

  • mentioned in commit affede1e

  • mentioned in commit bb2012d8

  • mentioned in commit 7bc77b02

Please register or sign in to reply