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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client-initiated shadow fails with ModuleNotFoundError: No module named 'xpra.gtk' #4171

Closed
stdedos opened this issue Mar 22, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@stdedos
Copy link
Collaborator

stdedos commented Mar 22, 2024

Describe the bug

It comes in a _usr_bin_xpra.1000.crash format - but I guess there is really nothing interesting there 馃槙

Also, it might've been a one-off, but I was really tired and just went to sleep instead of re-trying 馃槗

$ xpra version
xpra initialization error:
 cannot find any live servers to connect to
$ xpra -v
xpra initialization error:
 no such option: -v
$ xpra --version
xpra v5.0.6-r27

PythonArgs: ['/usr/bin/xpra', 'shadow', ':1', '--opengl=no', '--title=@title@ on @@/@server-display@', '--ssh=plink -ssh -agent', '--speaker=off', '--webcam=no', '--headerbar=off', '--min-speed=70', '--pulseaudio=no', '--exit-with-client=yes', '--splash=no', '--encodings=h264,vp9,vp8,mpeg4,mpeg4+mp4,h264+mp4,vp8+webm,vp9+webm,png,png/P,png/L,avif,rgb,rgb24,rgb32,jpeg,jpega,h265,av1,scroll,grayscale,stream', '--key-shortcut=Control+Menu:toggle_keyboard_grab', '--key-shortcut=Shift+Menu:toggle_pointer_grab', '--key-shortcut=Shift+F11:toggle_fullscreen', '--key-shortcut=#+F1:show_menu', '--key-shortcut=#+F2:show_start_new_command', '--key-shortcut=#+F3:show_bug_report', '--key-shortcut=#+F4:quit', '--key-shortcut=#+F5:show_window_info', '--key-shortcut=#+F6:show_shortcuts', '--key-shortcut=#+F7:show_docs', '--key-shortcut=#+F8:toggle_keyboard_grab', '--key-shortcut=#+F9:toggle_pointer_grab', '--key-shortcut=#+F10:magic_key', '--key-shortcut=#+F11:show_session_info', '--key-shortcut=#+F12:toggle_debug', '--key-shortcut=#+plus:scaleup', '--key-shortcut=#+minus:scaledown', '--key-shortcut=#+underscore:scaledown', '--key-shortcut=#+KP_Add:scaleup', '--key-shortcut=#+KP_Subtract:scaledown', '--key-shortcut=#+KP_Multiply:scalereset', '--key-shortcut=#+bar:scalereset', '--key-shortcut=#+question:scalingoff', '--key-shortcut=Control+Menu:toggle_keyboard_grab', '--key-shortcut=Shift+Menu:toggle_pointer_grab', '--key-shortcut=Shift+F11:toggle_fullscreen', '--key-shortcut=#+F1:show_menu', '--key-shortcut=#+F2:show_start_new_command', '--key-shortcut=#+F3:show_bug_report', '--key-shortcut=#+F4:quit', '--key-shortcut=#+F5:show_window_info', '--key-shortcut=#+F6:show_shortcuts', '--key-shortcut=#+F7:show_docs', '--key-shortcut=#+F8:toggle_keyboard_grab', '--key-shortcut=#+F9:toggle_pointer_grab', '--key-shortcut=#+F10:magic_key', '--key-shortcut=#+F11:show_session_info', '--key-shortcut=#+F12:toggle_debug', '--key-shortcut=#+plus:scaleup', '--key-shortcut=#+minus:scaledown', '--key-shortcut=#+underscore:scaledown', '--key-shortcut=#+KP_Add:scaleup', '--key-shortcut=#+KP_Subtract:scaledown', '--key-shortcut=#+KP_Multiply:scalereset', '--key-shortcut=#+bar:scalereset', '--key-shortcut=#+question:scalingoff', '--key-shortcut=Shift+F2:toggle_pointer_grab', '--env=XPRA_PROXY_START_UUID=983363c1b5bb473e970fe4f5b34d33cc', '--daemon=yes', '--systemd-run=no']
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/xpra/server/shadow/gtk_shadow_server_base.py", line 382, in show_about
     from xpra.gtk.dialogs.about import about  # pylint: disable=import-outside-toplevel
 ModuleNotFoundError: No module named 'xpra.gtk'

To Reproduce
Steps to reproduce the behavior:

  1. server command
  2. client command
  3. specific action to trigger the bug

System Information (please complete the following information):

  • Server OS: Ubuntu 20.04.6 LTS
  • Client OS: Microsoft Windows [Version 10.0.18363.836]
  • Xpra Server Version: (see above)
  • Xpra Client Version: (see above)

Additional context
Add any other context about the problem here.
Please see "reporting bugs" in the wiki section.

@stdedos stdedos added the bug Something isn't working label Mar 22, 2024
totaam added a commit that referenced this issue Mar 23, 2024
@totaam
Copy link
Collaborator

totaam commented Mar 23, 2024

$ xpra --version
xpra v5.0.6-r27

This bug does not occur with the current release (5.0.7 at time of writing) and the shadow server does start OK.
Though you do get a similar bug when trying to bring up the about dialog, this is fixed in the commit above.

@totaam totaam closed this as completed Mar 23, 2024
@stdedos
Copy link
Collaborator Author

stdedos commented Mar 23, 2024

This bug does not occur with the current release (5.0.7 at time of writing) and the shadow server does start OK.

Idk; AFAIS there is no "current release" ... released (pun intended):

ua@h [2024-03-23 11:15:13]:~$ sudo apt-get update && sudo apt-get upgrade 
[sudo] password for stdedos: 
Wrong!  You cheating scum!
[sudo] password for stdedos: 
Hit:1 http://fi.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://ppa.launchpad.net/boltgolt/howdy/ubuntu focal InRelease                                                                                                                                      
Get:3 http://download.opensuse.org/repositories/home:/rockowitz/xUbuntu_20.04  InRelease [1527 B]                                                                                                         
Hit:4 http://dell.archive.canonical.com focal InRelease                                                                                                                                                   
Hit:5 https://download.docker.com/linux/ubuntu focal InRelease                                                                                                                                            
Get:6 http://fi.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                                                                                                                                
Hit:7 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease                                                                                                                                      
Hit:8 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                                             
Hit:9 http://ppa.launchpad.net/fkrull/speedcrunch-daily/ubuntu focal InRelease                                                                                                                            
Hit:10 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                                                                                         
Hit:11 https://deb.nodesource.com/node_20.x focal InRelease                                                                                                                                               
Hit:12 https://pkg.cloudflareclient.com focal InRelease                                                                                                                                                   
Hit:13 http://fi.archive.ubuntu.com/ubuntu focal-backports InRelease                                                                                                                                      
Hit:14 http://ppa.launchpad.net/flatpak/stable/ubuntu focal InRelease                                                                                                                                     
Hit:15 https://ppa.launchpadcontent.net/ubuntuhandbook1/ksnip/ubuntu focal InRelease                                                                                                                      
Hit:16 https://xpra.org focal InRelease                                                                                                                                                                   
Hit:17 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease                                                                                                                                       
Hit:19 https://download.vscodium.com/debs vscodium InRelease                                                                                                                                              
Hit:20 http://ppa.launchpad.net/kiwixteam/release/ubuntu focal InRelease                                                                    
Hit:21 https://apt.repos.intel.com/intelpython binary/ InRelease                                                                            
Hit:18 https://xpra.org/beta focal InRelease                                                                          
Hit:22 http://ppa.launchpad.net/linuxgndu/sqlitebrowser/ubuntu focal InRelease                                        
Hit:23 https://download.sublimetext.com apt/stable/ InRelease                                                                
Hit:24 http://ppa.launchpad.net/longsleep/golang-backports/ubuntu focal InRelease                                            
Hit:25 http://ppa.launchpad.net/marin-m/songrec/ubuntu focal InRelease                                                       
Hit:26 http://ppa.launchpad.net/mixxx/mixxx/ubuntu focal InRelease                                                          
Hit:27 https://apt.repos.intel.com/mkl all InRelease                                                  
Hit:28 http://ppa.launchpad.net/neovim-ppa/stable/ubuntu focal InRelease
Hit:29 http://ppa.launchpad.net/phoerious/keepassxc/ubuntu focal InRelease 
Hit:30 http://ppa.launchpad.net/pinta-maintainers/pinta-stable/ubuntu focal InRelease
Hit:31 https://www.synaptics.com/sites/default/files/Ubuntu stable InRelease
Hit:32 http://ppa.launchpad.net/sylvain-pineau/kazam/ubuntu focal InRelease
Hit:33 https://apt.repos.intel.com/ipp all InRelease
Hit:34 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal InRelease
Hit:35 http://ppa.launchpad.net/wireshark-dev/stable/ubuntu focal InRelease
Hit:36 http://ppa.launchpad.net/yuezk/globalprotect-openconnect/ubuntu focal InRelease
Hit:37 https://apt.repos.intel.com/tbb all InRelease
Hit:38 https://apt.repos.intel.com/daal all InRelease
Hit:39 https://apt.repos.intel.com/mpi all InRelease
Fetched 115 kB in 5s (25,5 kB/s)                    
Reading package lists... Done
W: Conflicting distribution: https://apt.repos.intel.com/intelpython binary/ InRelease (expected binary/ but got )
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  globalprotect-openconnect google-chrome-stable python3-update-manager ubuntu-advantage-tools update-manager update-manager-core
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

Was it not triggered to build & deploy, perhaps? 馃槙

@totaam
Copy link
Collaborator

totaam commented Mar 23, 2024

Was it not triggered to build & deploy, perhaps?

The focal builds had failed, I kicked them again by hand and:

E: Could not get lock /var/cache/apt/archives/lock. It is held by process 0
E: Unable to lock directory /var/cache/apt/archives/

Don't you love the smell of random buildbot bugs in the morning?
Wiped the shared lock directory, ran again. Good to go now.

Not-a-bonus: you get a newer dummy driver, which would be nice if Debian had not butchered the Xorg builds to make it unusable... so Xvfb it is on Debian / Ubuntu.

BTW, focal?! 24.04 is out soon...

@stdedos
Copy link
Collaborator Author

stdedos commented Mar 23, 2024

BTW, focal?! 24.04 is out soon...

Yeeeah... I hate OS changes 馃槄
Especially when they mess up with things deep into the "package state"

I guess I'll go "straight" to 24.04.1 or .2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants