<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - ImportError: No module named optpmap / IOError: [Errno 2] No such file or directory: '[...]/llvm/build/tools/opt-viewer/style.css'"
href="https://bugs.llvm.org/show_bug.cgi?id=43131">43131</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ImportError: No module named optpmap / IOError: [Errno 2] No such file or directory: '[...]/llvm/build/tools/opt-viewer/style.css'
</td>
</tr>
<tr>
<th>Product</th>
<td>tools
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>opt-viewer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>francisvm@yahoo.com
</td>
</tr>
<tr>
<th>CC</th>
<td>anemet@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre><a href="https://reviews.llvm.org/D65983">https://reviews.llvm.org/D65983</a> 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'</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>