Running isaac sim as standalone using default python environment but getting tkinter error

Im trying to run isaac sim using default python environment with this command: ./python.sh scripts/main.py
i get this error:

Traceback (most recent call last):
File “/media/bullis/Data/bin-picking-project/scripts/main.py”, line 9, in
from gui.tkinter_gui import TkinterGui
File “/media/bullis/Data/bin-picking-project/scripts/gui/tkinter_gui.py”, line 1, in
from tkinter import * # Normal Tkinter.* widgets are not themed!
File “/media/bullis/Data/isaac-sim/pkg/isaac-sim-4.1.0/kit/python/lib/python3.10/tkinter/init.py”, line 37, in
import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named ‘_tkinter’

i am using tkinter as a part of my project, it worked previously, but now im getting this error, and cannot find a solution. I am quite sure python env is configured to work with tkinter

thank you

When it was working previously, Which command did you use, ./python.sh or python3?

i was using conda, but currently conda takes to much space so i had to try something else, but that was also on isaac sim version 2023.1.1

OK. ./python.sh environment is not same to the system default environment.
I think you should install tkinter to ./python.sh environment with below command.

./python.sh -m pip install pytk

Please refer to this document.
https://docs.omniverse.nvidia.com/isaacsim/latest/installation/install_python.html#default-python-environment

i meant running natively from python i guess
That did not fix the issue it seems like

i was able to figure out a work around i guess changed this line in python.sh from this:
python_exe=${PYTHONEXE:-“${SCRIPT_DIR}/kit/python/bin/python3”}
to this:
python_exe=${PYTHONEXE:-“/usr/bin/python3”}