TypeError: expected str, bytes or os.PathLike object, not NoneType

Hello, I am using a Raspberry Pi 5 with the Hailo-8L AI HAT.
Currently, I am using the CLI tools to convert models like .tflite into .hef using the Dataflow Compiler.
However, I keep encountering this error, and I can’t figure out the cause.
I would be truly grateful if you could help me.


I have successfully completed the parsing step,
and I also finished the optimization using a random calibration dataset,
so I now have the optimized.har file.
However, an error occurs during the final compilation step.

Hey @ko_kyung_taek ,

Welcome to the Hailo Communtiy!

You should add to the compilation line --hw-arch hailo8l , the compiler is searching for the target device of the compilation.

Hi,
Can you confirm if you installed DFC using a Python virtual environment?
If not, try:

$ python python -m venv .venv
$ source .venv/bin/activate

and install DFC and HailoRT wheels again. Then run hailo using the virtual env.