I am using a Raspberry Pi and the lite version of the OS. My goal is to run a python script using customtkinter. As I am using the lite-version of the OS, I run the script with xorg and openbox (tutorial: https://forums.raspberrypi.com//viewtopic.php?t=152264)
Executing the file that runs my script in openbox, I get the following error:
ModuleNotFoundError: No module named 'customtkinter'
Customtkinter is installed.
The python script itself is executable, if I try running the .py file itself, I get the following error:
tkinter.TclError: no display name and no $DISPLAY environment variable
That means, the file itself doesn't have the problem of importing customtkinter as the above error is caused in line 35 and I'm importing customtkinter in line 2.
So somehow running the file in openbox causes the problem of not finding the customtkinter module. How can I fix this? PS: There is no problem importing other libraries such as Tkinter