bcbnz / python-rofi

A Python module to make simple GUIs with Rofi
MIT License
111 stars 20 forks source link

Failed to set locale #6

Closed LiHRaM closed 7 years ago

LiHRaM commented 7 years ago

Hey. I've got this simple script I want to run with rofi.

#!/usr/bin/python3
from rofi import Rofi

r = Rofi(4)
options = ['Shutdown', 'Suspend', 'Hibernate', 'Lock']
index, key = r.select("Desired action?", options)

However, whenever I try to run the program, I just get the following error: Failed to set locale.

If you type up the same code, can you reproduce? In fact, I can't run any of the rofi commands which raise a menu.

LiHRaM commented 7 years ago

Sorry guys. This was a VSCode terminal issue. I tried running it in my Xterm and it worked fine.