# Troubleshooting ## LLVM crash on ARM64 systems On some ARM64 systems, certain versions of Numba/LLVM may terminate with an `incomplete machine model` error. This is an [upstream Numba/LLVM issue](https://github.com/numba/numba/issues/10388), rather than a MethylSeg error. ### Conda environments As a workaround, configure Numba to use a generic CPU target in the active Conda environment: ```bash conda env config vars set NUMBA_CPU_NAME=generic conda deactivate conda activate ``` MethylSeg commands and Python scripts launched from the activated environment should then run normally. ### Python scripts Alternatively, set the CPU target directly in Python. This must occur before importing MethylSeg, Numba, or any package that imports Numba: ```python import os os.environ["NUMBA_CPU_NAME"] = "generic" import methylseg ``` ### VS Code Jupyter notebooks If you are using vscode jypyter nodebooks, we reccommend creating a dedicated kernel: ```bash conda activate python -m pip install ipykernel python -m ipykernel install \ --prefix "$CONDA_PREFIX" \ --name methylseg-arm64 \ --display-name "Python (MethylSeg ARM64)" jupyter kernelspec list ``` Open the `kernel.json` file listed for `methylseg-arm64` and add the following top-level entry: ```json "env": { "NUMBA_CPU_NAME": "generic" } ``` For example: ```json { "argv": [ "/path/to/environment/bin/python", "-m", "ipykernel_launcher", "-f", "{connection_file}" ], "display_name": "Python (MethylSeg ARM64)", "language": "python", "env": { "NUMBA_CPU_NAME": "generic" } } ``` Reload VS Code and select **Jupyter Kernel → Python (MethylSeg ARM64)**. The custom kernel appears under Jupyter kernels rather than under Python environments.