[llvm-bugs] [Bug 43131] New: ImportError: No module named optpmap / IOError: [Errno 2] No such file or directory: '[...]/llvm/build/tools/opt-viewer/style.css'

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 27 15:57:31 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43131

            Bug ID: 43131
           Summary: ImportError: No module named optpmap / IOError: [Errno
                    2] No such file or directory:
                    '[...]/llvm/build/tools/opt-viewer/style.css'
           Product: tools
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: opt-viewer
          Assignee: unassignedbugs at nondot.org
          Reporter: francisvm at yahoo.com
                CC: anemet at apple.com, llvm-bugs at lists.llvm.org

https://reviews.llvm.org/D65983 breaks the opt-viewer:

1) It doesn't copy optpmap.py to the build directory which results in:

$ ~/llvm/llvm/build/tools/opt-viewer/opt-diff.py --output diff a b
For faster parsing, you may want to install libYAML for PyYAML
Traceback (most recent call last):
  File "/Users/francisvm/llvm/llvm/build/tools/opt-viewer/opt-diff.py", line
19, in <module>
    import optrecord
  File "/Users/francisvm/llvm/llvm/build/tools/opt-viewer/optrecord.py", line
29, in <module>
    import optpmap
ImportError: No module named optpmap

2) It doesn't copy style.css either:

$ ~/llvm/llvm/build/tools/opt-viewer/opt-viewer.py diff
For faster parsing, you may want to install libYAML for PyYAML
Reading YAML files...
Rendering index page...
Traceback (most recent call last):
  File "/Users/francisvm/llvm/llvm/build/tools/opt-viewer/opt-viewer.py", line
382, in <module>
    main()
  File "/Users/francisvm/llvm/llvm/build/tools/opt-viewer/opt-viewer.py", line
379, in main
    print_progress)
  File "/Users/francisvm/llvm/llvm/build/tools/opt-viewer/opt-viewer.py", line
290, in generate_report
    "style.css"), output_dir)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py",
line 139, in copy
    copyfile(src, dst)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py",
line 96, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory:
'/Users/francisvm/llvm/llvm/build/tools/opt-viewer/style.css'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190827/b98dd007/attachment.html>


More information about the llvm-bugs mailing list