Apparently the solution from this problem also solves this issue.
Is seems that loading the ovito Python library changes the locale settings compared to LAMMPS which in turns make it unable to parse floating point values with some of them (french, in my case).