Kivy over SSH/X11 forwarding

494 views
Skip to first unread message

Scott Harvey

unread,
Nov 18, 2017, 8:03:40 AM11/18/17
to Kivy users support
Hi all.

I've got Kivy installed on my two machines. The 'remote' machine is running Linux Mint 18.2/Ubuntu 16.04. The other is a new MacBook Pro. I've set up and run a lot of SSH-based X11 forwarding in the past few months (editing with PyCharm, if it matters) while doing some GUI coding. Nothing was satisfying me, so I figured I'd try Kivy. I have it installed successfully on both machines and can run the 'Hello World' program directly on both ("python3 hello-kivy.py"). But when I try to connect over X11 forwarding, I run into trouble.

By setting the DISPLAY environment variable to :0.0, I can get as far as this when launched from the MacBook:

ssh://bun...@10.0.0.53:22/usr/bin/python3 -u /home/bundito/PycharmProjects/joe/hello-kivy.py
[INFO   ] [Logger      ] Record log in /home/bundito/.kivy/logs/kivy_17-11-18_25.txt
[INFO   ] [Kivy        ] v1.10.1.dev0, git-Unknown, 20171118
[INFO   ] [Python      ] v3.5.2 (default, Sep 14 2017, 22:51:06)
[GCC 5.4.0 20160609]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_pygame, img_gif (img_pil, img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: pygame
[INFO   ] [Window      ] Provider: pygame(['window_egl_rpi'] ignored)
[WARNING] [WinPygame   ] Video: failed (multisamples=2)
[WARNING] [WinPygame   ] trying without antialiasing
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] Backend used <gl>
[INFO   ] [GL          ] OpenGL version <b'2.1 Mesa 17.0.7'>
[INFO   ] [GL          ] OpenGL vendor <b'Intel Open Source Technology Center'>
[INFO   ] [GL          ] OpenGL renderer <b'Mesa DRI Intel(R) Q45/Q43 '>
[INFO   ] [GL          ] OpenGL parsed version: 2, 1
[INFO   ] [GL          ] Shading version <b'1.20'>
[INFO   ] [GL          ] Texture max size <8192>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [OSC         ] using <multiprocessing> for socket
[INFO   ] [Base        ] Start application main loop
[INFO   ] [GL          ] NPOT texture support is available

And then it just sits there.

I'm launching my X11 forwarding with the command of "ssh -X" and once it connects, it launches XQuartz on my MacBook and I can usually see the remote GUI I'm coding. But not with Kivy.

Does anyone have a guess?

Thanks.

Geekademy

unread,
Nov 21, 2017, 12:35:15 PM11/21/17
to kivy-...@googlegroups.com
Kivy uses OpenGL. While I'm not certain there is a technological block in place
to using it remotely via X on Mac, even if it did work you probably wouldn't be
very happy with the results.
Reply all
Reply to author
Forward
0 new messages