Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommanderPi won't start #72

Open
TogaParty opened this issue Jan 13, 2023 · 2 comments
Open

CommanderPi won't start #72

TogaParty opened this issue Jan 13, 2023 · 2 comments

Comments

@TogaParty
Copy link

I tried installing from your install instructions here, as well as installing from Pi Apps (this is the current install). I get an hourglass, then nothing. Per # 39, I have included the output from the requested command.

Looking below, I see _tkinter.TclError: couldn't connect to display ":10.0". I am logged in over a remote session, this is an RPi 4 8GB running 64 bit, I do not have a monitor connected.

pi@FoundryVTTPPE:~ $ sudo python3 ${HOME}/CommanderPi/src/main.py ${HOME}
Here is home_path /home/pi
Here is app-1 Version 1.0
Exist and read
Country code is:
country US: DFS-FCC
Here is ad: pieeprom-2022-03-10.bin
Apr 29 2021
/home/pi/CommanderPi/src
File is exist!
path is /home/pi/CommanderPi/src
No protocol specified
No protocol specified
Traceback (most recent call last):
File "/home/pi/CommanderPi/src/main.py", line 26, in
main()
File "/home/pi/CommanderPi/src/main.py", line 22, in main
start = g.Window()
File "/home/pi/CommanderPi/src/gui.py", line 673, in init
master = tk.Tk()
File "/usr/lib/python3.7/tkinter/init.py", line 2023, in init
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: couldn't connect to display ":10.0"

@TogaParty
Copy link
Author

The following command fixes this particular issue. If you can include it in your scripts, it might save some users some time, but I'm a linux noob, so I don't know what risk that might pose.

sudo cp ~/.Xauthority ~root/

@miguelangelramirez
Copy link

The above line of code works, it does revert for some reason once you reboot. I fixed it by adding that line to src/start.sh before running src/main.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants