ethical-haquer / Galaxy-Flasher

A GUI for Samsung Flash Tools
GNU General Public License v3.0
49 stars 3 forks source link

Tkinter.tclerror on start #6

Closed shagles closed 10 months ago

shagles commented 10 months ago

When i run python3 Thor_GUI.py I get a _tkinter.tclerror "no display name and no $DISPLAY environment variable." I'm sure it's something I'm doing, but I can't find a solution anywhere that works.

image

ethical-haquer commented 10 months ago

When i run python3 Thor_GUI.py I get a _tkinter.tclerror "no display name and no $DISPLAY environment variable." I'm sure it's something I'm doing, but I can't find a solution anywhere that works.

image

Interesting! What OS are you using? You're using a Raspberry Pi, I presume? What is the output of this command:

echo $DISPLAY
shagles commented 10 months ago

I'm using Raspbian right now. Yeah, Pi 3b+. In ssh that outputs a blank line. In VNC it outputs :0.

ethical-haquer commented 10 months ago

I'm using Raspbian right now. Yeah, Pi 3b+.

:+1: Nice, I have a couple Pis too.

In ssh that outputs a blank line. In VNC it outputs :0.

Have a look at this question on Stack Overflow, and the corresponding answer. Looking at the second answer, I can also add some code to Thor GUI so it can do this by itself if needed. Let me know if this fixes the error!

EDIT: Congrats on your first bug report!

shagles commented 10 months ago

That seemed to take care of that error. Now I'm getting Platform Not Supported. Looks like i have the 32 bit version on this Pi so no go there for now.

Thanks! I'm getting back into some Linux stuff, and just starting out on Pi's and GitHub.

ethical-haquer commented 10 months ago

That seemed to take care of that error. Now I'm getting Platform Not Supported. Looks like i have the 32 bit version on this Pi so no go there for now.

Yeah, I only packaged Thor for arm64 and x64. I'll have to install a 32 bit OS on my Pi to build for arm32. Sorry about that!

Thanks! I'm getting back into some Linux stuff, and just starting out on Pi's and GitHub.

:+1: And you're also testing out some Android ROMs? :wink:

shagles commented 10 months ago

All good. I'll just put a 64 bit distro on something and try again.

Yeah trying to root an old galaxy S4 to install nethunter for s&g's.

ethical-haquer commented 10 months ago

All good. I'll just put a 64 bit distro on something and try again.

Yeah trying to root an old galaxy S4 to install nethunter for s&g's.

Sounds good, feel free to ask if you need help with rooting, I'm @ethical_haquer on XDA.