Error in Rhino 8 SR31 when using pandas: unknown locale: en-US [7:1]

,

I was able to resolve this with:

rhino_startup.py

import locale

try:
locale.setlocale(locale.LC_ALL, ‘’)
except:
pass

try:
current = locale.setlocale(locale.LC_ALL, None)

if '-' in current:
    locale.setlocale(
        locale.LC_ALL,
        current.replace('-', '_')
    )

except:
pass