Xpra: Ticket #2508: apt-get update xpra error

Are you aware of this?

Setting up python3-xpra (3.0.3-20191206r24599-1) ...
Sorry: IndentationError: unexpected indent (pass_dialog.py, line 81)
dpkg: error processing package python3-xpra (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of xpra:
 xpra depends on python2-xpra | python3-xpra; however:
  Package python2-xpra is not installed.
  Package python3-xpra is not configured yet.
dpkg: error processing package xpra (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python3-xpra
 xpra
  GNU nano 2.5.3                                     File: /usr/lib/python3/dist-packages/xpra/client/gtk_base/pass_dialog.py
            l.modify_font(pango.FontDescription(font))
            al = gtk.Alignment(xalign=xalign, yalign=0.5, xscale=0.0, yscale=0)
            al.add(l)
            vbox.add(al)
        #window title is visible so this would be redundant:
        #al(title, "sans 18", 0.5)
        al(prompt, "sans 14")
        self.password_input = gtk.Entry()
        self.password_input.set_max_length(255)
        self.password_input.set_width_chars(32)
        self.password_input.connect('activate', self.activate)
        self.password_input.set_visibility(False)
        vbox.add(self.password_input)
        # Buttons:
        self.exit_code = 0
        hbox = gtk.HBox(False, 0)
        al = gtk.Alignment(xalign=1, yalign=0.5, xscale=0, yscale=0)
        al.add(hbox)
        vbox.pack_start(al)
        for label, isdefault, cb in (
            ("Confirm", True, self.activate),
            ("Cancel", False, self.quit),
            ):
            b = self.btn(label, isdefault, cb)
        return True ############## Line 81 ##############
            hbox.pack_start(b)
        add_close_accel(self.window, self.quit)
        vbox.show_all()
        self.window.add(vbox)
    def btn(self, label, isdefault=False, cb=None):
        btn = gtk.Button(label)
        settings = btn.get_settings()
        settings.set_property('gtk-button-images', True)
        btn.set_size_request(100, 48)
        btn.connect("clicked", cb)
        btn.set_can_focus(True)
        btn.set_can_default(isdefault)
        if isdefault:
            self.window.set_default(btn)
            self.window.set_focus(btn)
        return btn
    def show(self):
        log("show()")
        self.window.show_all()
        def show():
            force_focus()
            self.present()
            self.password_input.grab_focus()
        glib.idle_add(show)


Mon, 09 Dec 2019 15:31:17 GMT - Antoine Martin: status changed; resolution set

Are you aware of this?

I wasn't, thanks for bringing it up! It is fixed in r24683.

Did you install this 3.0.3-RC from the beta repo?


Mon, 09 Dec 2019 15:32:59 GMT - stdedos:

No idea :/

$ grep -Trin xpra /etc/apt
/etc/apt/sources.list.d/xpra.list.save:   1    :deb https://xpra.org/ xenial main
/etc/apt/sources.list.d/xpra.list.save:   2    :deb https://xpra.org/beta/ xenial main
/etc/apt/sources.list.d/xpra.list:   1 :deb https://xpra.org/ xenial main
/etc/apt/sources.list.d/xpra.list:   2 :deb https://xpra.org/beta/ xenial main

Mon, 09 Dec 2019 15:35:50 GMT - Antoine Martin:

No idea :/

Ah, right, you're running xenial! It isn't supported in v4, so the latest you get are the 3.0.x RC builds.


Mon, 09 Dec 2019 15:37:32 GMT - stdedos:

Replying to Antoine Martin:

Ah, right, you're running xenial! It isn't supported in v4, so the latest you get are the 3.0.x RC builds.

I guess it is getting more and more pressuring to switch to Bionic, isn't it? (or wait a couple of months and go directly to 20.04)


Sat, 23 Jan 2021 05:53:11 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2508