There is a bit of a bug with pygame unfortunately with how it handles not having a graphical display.
This affects use over SSH or other terminal logins.
What you can try is editing the diddyJoy.py script.
Look for the line:
#pygame.display.set_mode((1,1))
and delete the # so it looks like:
pygame.display.set_mode((1,1))
It is a bit confusing, on some installs making this change stops things working correctly.
This is a bug relating to pygame itself sadly.
If that does not work on its own you should be able to run the script in a VNC session.
This will allow access to the graphical system and make pygame happy.
As I mentioned before VNC gets around the problem because it has a graphical output.
SSH has no graphical output so the script needs to disable it manually.
The script should work with the line above either in use (no # at start) or commented out (starting with the # symbol).
Since you had to update the Raspberry Pi software I would try both to see which works with SSH.
piborg
Thu, 09/01/2016 - 11:19
Permalink
Pygame SSH bug
There is a bit of a bug with pygame unfortunately with how it handles not having a graphical display.
This affects use over SSH or other terminal logins.
What you can try is editing the
diddyJoy.py
script.Look for the line:
and delete the
#
so it looks like:It is a bit confusing, on some installs making this change stops things working correctly.
This is a bug relating to pygame itself sadly.
If that does not work on its own you should be able to run the script in a VNC session.
This will allow access to the graphical system and make pygame happy.
cocoda74
Thu, 09/01/2016 - 13:28
Permalink
Now it solved
Hy
I tried your Tip and now it funktion, thanks a lot!
cocoda74
Fri, 09/02/2016 - 16:28
Permalink
Load over SSH
Hello
Is there no possibility to use the script over SSH without Problem?
piborg
Fri, 09/02/2016 - 16:53
Permalink
SSH problem
I thought we had solved this issue.
Does the fix no longer work?
cocoda74
Fri, 09/02/2016 - 17:08
Permalink
i tried it with vnc and with
i tried it with vnc and with that it function! I thought if it function with vnc it does also with ssh!
piborg
Sat, 09/03/2016 - 09:03
Permalink
VNC gets around the problem
As I mentioned before VNC gets around the problem because it has a graphical output.
SSH has no graphical output so the script needs to disable it manually.
The script should work with the line above either in use (no
#
at start) or commented out (starting with the#
symbol).Since you had to update the Raspberry Pi software I would try both to see which works with SSH.