0

I'm testing some Kivy stuff to see how it works, and I want to edit and run the Kivy app remotely (using putty).

I'm on Raspbian GNU/Linux 10 (buster)

For simplicity's sake, here is the code I am using:

import kivy
from kivy.app import App
from kivy.uix.label import Label

class MyApp(App):
    def build(self):
        return Label(text="Test text.")

if __name__ == "__main__":
    MyApp().run()

When I run this locally, it works perfectly fine.

When I run it remotely with putty, I get the error * failed to add service - already in use?

9
  • 1
    isn't Kivy a graphical framework? ... how are you expecting it to run in a terminal?
    – jsotola
    Mar 13, 2021 at 5:18
  • 1
    is there really a question mark at the end of the error message?
    – jsotola
    Mar 13, 2021 at 5:20
  • @jsotola I want the gui to open on the remote machine. Due to the devices I'm using being small and the size of my office workspace, I want as little keyboards and mouses laying around, so I'm trying to remote in and start the GUI from my desktop. When I run it locally it's fine, remotely it gets this error. I understand now the scope of my question might be larger than I intended, but how would I run a GUI remotely, as in, I want it to open on the remote computer but the command to open it is sent from my desktop.
    – Mdev
    Mar 15, 2021 at 21:14
  • @jsotola Yes, there really was a question mark at the end. Not sure why that matters
    – Mdev
    Mar 15, 2021 at 21:14
  • it matters because it may indicate that the error message was not copied and pasted, but typed by hand ... many times people have made mistakes while typing in the error message
    – jsotola
    Mar 15, 2021 at 21:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.