mlir-tutorial icon indicating copy to clipboard operation
mlir-tutorial copied to clipboard

Early articles may have problems running lit

Open j2kun opened this issue 2 years ago • 2 comments
trafficstars

If you're following along PR by PR and checking out individual commits to run examples, you may encounter python complaining it can't find the lit module.

In the fourth article in the series I realized bazel was using the system Python, and https://github.com/j2kun/mlir-tutorial/commit/aac84908f7b09ec1b14489bbc0837e697b191630 migrates to a bazel-managed python runtime.

A simple fix is to run pip install lit in your system Python. Or else cherry pick aac84908f7b09ec1b14489bbc0837e697b191630 to your step in the article series.

j2kun avatar Aug 07 '23 18:08 j2kun

A simple fix is to run pip install python in your system Python

python here gave me an error.

MLIR — Running and Testing a Lowering correctly suggests pip install lit.

stanciuadrian avatar May 01 '24 15:05 stanciuadrian

A simple fix is to run pip install python in your system Python

python here gave me an error.

MLIR — Running and Testing a Lowering correctly suggests pip install lit.

Sorry! Stupid typo fixed in place above.

j2kun avatar May 01 '24 15:05 j2kun