<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/67414>67414</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Using the MLIR python interface
</td>
</tr>
<tr>
<th>Labels</th>
<td>
mlir
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
HendrikKlug-synthara
</td>
</tr>
</table>
<pre>
Hello I'm trying to get started with the MLIR Python bindings, following [this](https://mlir.llvm.org/docs/Bindings/Python/) tutorial, but I couldn't get past the venv setup since the path for the following command does not exists:
`export PYTHONPATH=$(cd build && pwd)/tools/mlir/python_packages/mlir_core`
running `python -c "from mlir import ir"` gives me this;
```shell
ImportError: cannot import name 'ir' from 'mlir' (~/.venv/mlirdev/lib/python3.11/site-packages/mlir/__init__.py)
```
`python -c "import mlir"` runs fine.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxck0uPpDYUhX_NZXNVCC6PKhYsulNB3cqrFU0WWZWMbcAZYyPbVE9t8tsjXI9JjWQBNr7H3znyZd6r0UjZQvUK1TFha5isa9-kEU59_UWv485fTJiYY0lvxaV9k1pbfAfazxjcRZkRg8VRBvSBuSAFfqowYZgk_vbr-5_4cQmTNdgrI5QZPdBPOFit7edWCdVrmJSH6gh0mEJYPBQvQB1QN2vlUq3Pc2rdCNQJyz1Q9_rQ6a7KcXeDYQ3WKaY3_X4N-I7crloYoH2IdAvzIVKdpTmjl2Fd0CvDZVxcWJhwsC5OvvNxO8_MCBRWejQ2oPymfIiQ2RGy-7PO5LfFuoAff395--P3j5cvb1AcgUqgAxfYr0oLBKqBalw-BVAD1AVrtb8ZBeqW6Oa0MP6VjfL-48Stk1Bn_z_OrcbE8OrsWoQ7jkA0ODvjVoRqjjSbLkGd4ajO0uO8WVUeitcH9nX4SWp9XXuPlT87Zx0UL8iZ2Vzf9AybJQLtN909xuO2a6Cvc6DDv0BduuV7oxdy-9Kqf_gr0jwH6rwKcveDVaDudFJGhdMpXS5bRs8R38bz4lMAN8yrWDTuVuNxUEam14pEtIVoioYlss3rptpT1dRFMrWCif2QVYL1dTn0vRyagcvDoWi4KPK6zBPVUkZF1lCdZ1VDlFJe9Fld8qLhw6EuGigzOTOlH3c2Ud6vsq33ZV4mmvVS-9hkRHfA6pi4dtu-69fRQ5np7XJ9FwgqaNn-5WOP3fvp5liZIN3AuExWp9vn1hlVmNY-5Xbe0tfn-2u3OPuP5AGoi2xb8hHvvwAAAP__5NtHnQ">