8000 Doesn't build with Python 3.12, imp module is deprecated · Issue #35 · libfirm/libfirm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Doesn't build with Python 3.12, imp module is deprecated #35
Open
@andreasbaumann

Description

@andreasbaumann

Building on Archlinux (from the libfirm-git AUR package), Python is 3.12.4:

GEN build/gen/ir/ir/gen_proj_names.h                                                
/data/INSTALL/libfirm-git/src/libfirm/scripts/filters.py:9: SyntaxWarning: invalid escape sequence '\s'                                                                 
  args = re.split('\s*\n\s*', string)                                               
Traceback (most recent call last):                                                  
  File "/data/INSTALL/libfirm-git/src/libfirm/./scripts/gen_ir.py", line 71, in <module>                                                                                
    main(sys.argv)                                                                  
  File "/data/INSTALL/libfirm-git/src/libfirm/./scripts/gen_ir.py", line 48, in main
    spec.loader.exec_module(module)                                                 
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module           
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed      
  File "/data/INSTALL/libfirm-git/src/libfirm/scripts/ir_spec.py", line 7, in <module>                                                                                  
    from irops import Node, abstract, op, Attribute, prepare_nodes                  
  File "/data/INSTALL/libfirm-git/src/libfirm/scripts/irops.py", line 4, in <module>
    import imp                                                                      
ModuleNotFoundError: No module named 'imp'                                          
make: *** [Makefile:140: build/gen/ir/ir/gen_proj_names.h] Error 1                  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0