Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 799752 - x11-wm/xpra is missing dependencies
Summary: x11-wm/xpra is missing dependencies
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-01 16:34 UTC by Solene
Modified: 2021-07-19 10:33 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Solene 2021-07-01 16:34:44 UTC
When running xpra, it creates a log file with this content

2021-07-01 18:33:00,517 Error: cannot enable SSH socket upgrades:
2021-07-01 18:33:00,517  No module named 'paramiko'
2021-07-01 18:33:00,518 cannot access python uinput module:
2021-07-01 18:33:00,518  No module named 'uinput'

paramiko error can be fixed by installing dev-python/paramiko but uinput doesn't seem to be in portage.

I've not been able to run xpra
Comment 1 James Le Cuirot gentoo-dev 2021-07-06 21:49:33 UTC
Which xpra version was this?

Although I think something should be done here, both of these dependencies are optional and xpra should function without them.

I don't know exactly what uinput provides but the FAQ literally says you can ignore that error and xpra has worked perfectly well for me without it.

xpra is supposed to use Paramiko by default but fall back to plain OpenSSH otherwise. I don't use it over SSH and happen to have Paramiko installed anyway so I cannot confirm this but my guess is you were unable to get it working for other reasons.
Comment 2 Solene 2021-07-06 21:54:39 UTC
hi, thanks for looking into this.

I use xpra 4.2 with USE="client clipboard cups dbus ffmpeg jpeg lz4 opengl pulseaudio -brotli% -csc -doc% -ibus% -lzo -minimal% -pillow -pinentry% -server -sound -test -vpx -webcam -webp"

I'm trying it by ssh-ing into my gentoo system and running "xpra start" then I get this output

Entering daemon mode; any further errors will be reported to:
  /run/user/1000/xpra/S9797.log

maybe I'm doing it wrong?
Comment 3 James Le Cuirot gentoo-dev 2021-07-06 22:05:10 UTC
You need to have xpra installed on both the client and server, but you don't need to SSH to the server side before starting xpra. It does that for you. From the client side:

xpra start ssh://USERNAME@HOST/ --start-child=xterm

See https://github.com/Xpra-org/xpra/blob/master/docs/Usage/README.md for more examples. If you're still having trouble, join #xpra on irc.libera.chat.
Comment 4 Solene 2021-07-19 07:36:05 UTC
(In reply to James Le Cuirot from comment #3)
> You need to have xpra installed on both the client and server, but you don't
> need to SSH to the server side before starting xpra. It does that for you.
> From the client side:
> 
> xpra start ssh://USERNAME@HOST/ --start-child=xterm
> 
> See https://github.com/Xpra-org/xpra/blob/master/docs/Usage/README.md for
> more examples. If you're still having trouble, join #xpra on irc.libera.chat.

I did that and the xpra output from the initiating server was giving a path to an xpra log (on the gentoo side where xpra should launch programs) which contains

2021-07-19 09:23:01,845 Error: cannot enable SSH socket upgrades:
2021-07-19 09:23:01,845  No module named 'paramiko'
failure on /tmp/.X11-unix/X7196: [Errno 2] No such file or directory: '/tmp/.X11-unix/X7196'
2021-07-19 09:23:01,846 cannot access python uinput module:
2021-07-19 09:23:01,846  No module named 'uinput'
xpra initialization error:
 failed to execute xvfb command ['Xvfb-for-Xpra-S7196', '+extension', 'GLX', '+extension', 'Composite', '-screen', '0', '8192x4096x24+32', '-nolisten', 'tcp', '-noreset', '-auth', '/home/solene/.Xauthority', '-dpi', '96', '-displayfd', '7']: [Errno 2] No such file or directory: 'Xvfb'

here is the output on the client side (running NixOS) trying to run Sakura terminal

> xpra start ssh://192.168.1.16/ --start-child=sakura

2021-07-19 09:32:28,742 GStreamer version 1.18.4 for Python 3.8.9 64-bit
2021-07-19 09:32:28,775 Warning: failed to load the GTK3 notification class
2021-07-19 09:32:28,775  Namespace Notify not available
2021-07-19 09:32:28,778 created unix domain socket '/run/user/1000/xpra/clients/my-little-laptop'
2021-07-19 09:32:28,900 No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
2021-07-19 09:32:29,070 Warning: vendor 'Intel' is greylisted,
2021-07-19 09:32:29,070  you may want to turn off OpenGL if you encounter bugs
2021-07-19 09:32:29,073 OpenGL enabled with Mesa Intel(R) UHD Graphics (CML GT2)
2021-07-19 09:32:29,558 Connected (version 2.0, client OpenSSH_8.6)
2021-07-19 09:32:35,396 loaded RSA private key from '/home/solene/.ssh/id_rsa'
2021-07-19 09:32:35,417 Authentication (publickey) successful!
2021-07-19 09:32:35,544 Warning: libqrencode not found
2021-07-19 09:32:35,736  SSH: "Warning: the 'start-child' option is used,"
2021-07-19 09:32:35,736  SSH: " but 'exit-with-children' is not enabled,"
2021-07-19 09:32:35,736  SSH: " use 'start' instead"
2021-07-19 09:32:35,736  SSH: 'Entering daemon mode; any further errors will be reported to:'
2021-07-19 09:32:35,736  SSH: '  /run/user/1000/xpra/S8250.log'
2021-07-19 09:32:35,764  keyboard settings: rules=evdev, model=pc104, layout=fr
2021-07-19 09:32:35,879  desktop size is 1920x1080 with 1 screen:
2021-07-19 09:32:35,879   :0.0 (508x285 mm - DPI: 96x96) workarea: 1920x1053 at 0x27
2021-07-19 09:32:35,879     CMN eDP-1 (309x173 mm - DPI: 158x159)
2021-07-19 09:32:55,704  SSH: 'Error: displayfd failed'
2021-07-19 09:32:55,706  SSH: ' did not provide a display number using displayfd'
2021-07-19 09:33:05,505 connection timed out
2021-07-19 09:33:05,516 SSH EOF on stderr of run-xpra
2021-07-19 09:33:05,522 removing unix domain socket '/run/user/1000/xpra/clients/my-little-laptop'

(timestamps doesn't match because I forgot to save the logs of the client)
Comment 5 James Le Cuirot gentoo-dev 2021-07-19 08:22:45 UTC
(In reply to Solene from comment #4)
> xpra initialization error:
>  failed to execute xvfb command ['Xvfb-for-Xpra-S7196', '+extension', 'GLX',
> '+extension', 'Composite', '-screen', '0', '8192x4096x24+32', '-nolisten',
> 'tcp', '-noreset', '-auth', '/home/solene/.Xauthority', '-dpi', '96',
> '-displayfd', '7']: [Errno 2] No such file or directory: 'Xvfb'

Do you have the server USE flag enabled on the server side? That pulls in x11-base/xorg-server[-minimal,xvfb] as a dependency but it looks like you don't have that.
Comment 6 Solene 2021-07-19 10:33:47 UTC
Indeed, I didn't build xpra with server USE, I recompiled it with "server" added to the USE list and I'm going a bit further.

I can start a program in xpra and expose it on TCP and I'm able to attach to it using my xpra client. I use this command line: "xpra start -start=xterm --bind-tcp=0.0.0.0:8789"

I can't run/attach to xpra using "xpra start ssh://solene@my-server/ --start-child=xterm", I see the process is getting spawned on the server but I can't access it. The GUI is displaying "Connecting to server" for some time before doing a timeout.

Also, on the server, if I use "xpra list{,-sessions,-windows}" the output is that nothing is running.

I tried to use the xpra ssh command locally from the gentoo computer, and it doesn't attach either.

Here is the logs of: [1] backend programs getting spawned by ssh [2] xpra using ssh locally


[1]
2021-07-19 12:22:32,975 Error: cannot enable SSH socket upgrades:
2021-07-19 12:22:32,976  No module named 'paramiko'
failure on /tmp/.X11-unix/X6310: [Errno 2] No such file or directory: '/tmp/.X11-unix/X6310'
2021-07-19 12:22:32,977 cannot access python uinput module:
2021-07-19 12:22:32,978  No module named 'uinput'
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Could not resolve keysym XF86BrightnessAuto
> Warning:          Could not resolve keysym XF86DisplayOff
> Warning:          Could not resolve keysym XF86Info
> Warning:          Could not resolve keysym XF86AspectRatio
> Warning:          Could not resolve keysym XF86DVD
> Warning:          Could not resolve keysym XF86Audio
> Warning:          Could not resolve keysym XF86ChannelUp
> Warning:          Could not resolve keysym XF86ChannelDown
> Warning:          Could not resolve keysym XF86Break
> Warning:          Could not resolve keysym XF86VideoPhone
> Warning:          Could not resolve keysym XF86ZoomReset
> Warning:          Could not resolve keysym XF86Editor
> Warning:          Could not resolve keysym XF86GraphicsEditor
> Warning:          Could not resolve keysym XF86Presentation
> Warning:          Could not resolve keysym XF86Database
> Warning:          Could not resolve keysym XF86Voicemail
> Warning:          Could not resolve keysym XF86Addressbook
> Warning:          Could not resolve keysym XF86DisplayToggle
> Warning:          Could not resolve keysym XF86SpellCheck
> Warning:          Could not resolve keysym XF86ContextMenu
> Warning:          Could not resolve keysym XF86MediaRepeat
> Warning:          Could not resolve keysym XF8610ChannelsUp
> Warning:          Could not resolve keysym XF8610ChannelsDown
> Warning:          Could not resolve keysym XF86Images
> Warning:          Could not resolve keysym XF86NotificationCenter
> Warning:          Could not resolve keysym XF86PickupPhone
> Warning:          Could not resolve keysym XF86HangupPhone
> Warning:          Could not resolve keysym XF86Fn
> Warning:          Could not resolve keysym XF86Fn_Esc
> Warning:          Could not resolve keysym XF86FnRightShift
> Warning:          Could not resolve keysym XF86Numeric0
> Warning:          Could not resolve keysym XF86Numeric1
> Warning:          Could not resolve keysym XF86Numeric2
> Warning:          Could not resolve keysym XF86Numeric3
> Warning:          Could not resolve keysym XF86Numeric4
> Warning:          Could not resolve keysym XF86Numeric5
> Warning:          Could not resolve keysym XF86Numeric6
> Warning:          Could not resolve keysym XF86Numeric7
> Warning:          Could not resolve keysym XF86Numeric8
> Warning:          Could not resolve keysym XF86Numeric9
> Warning:          Could not resolve keysym XF86NumericStar
> Warning:          Could not resolve keysym XF86NumericPound
> Warning:          Could not resolve keysym XF86NumericA
> Warning:          Could not resolve keysym XF86NumericB
> Warning:          Could not resolve keysym XF86NumericC
> Warning:          Could not resolve keysym XF86NumericD
> Warning:          Could not resolve keysym XF86CameraFocus
> Warning:          Could not resolve keysym XF86WPSButton
> Warning:          Could not resolve keysym XF86CameraZoomIn
> Warning:          Could not resolve keysym XF86CameraZoomOut
> Warning:          Could not resolve keysym XF86CameraUp
> Warning:          Could not resolve keysym XF86CameraDown
> Warning:          Could not resolve keysym XF86CameraLeft
> Warning:          Could not resolve keysym XF86CameraRight
> Warning:          Could not resolve keysym XF86AttendantOn
> Warning:          Could not resolve keysym XF86AttendantOff
> Warning:          Could not resolve keysym XF86AttendantToggle
> Warning:          Could not resolve keysym XF86LightsToggle
> Warning:          Could not resolve keysym XF86ALSToggle
> Warning:          Could not resolve keysym XF86Buttonconfig
> Warning:          Could not resolve keysym XF86Taskmanager
> Warning:          Could not resolve keysym XF86Journal
> Warning:          Could not resolve keysym XF86ControlPanel
> Warning:          Could not resolve keysym XF86AppSelect
> Warning:          Could not resolve keysym XF86Screensaver
> Warning:          Could not resolve keysym XF86VoiceCommand
> Warning:          Could not resolve keysym XF86Assistant
> Warning:          Could not resolve keysym XF86BrightnessMin
> Warning:          Could not resolve keysym XF86BrightnessMax
> Warning:          Could not resolve keysym XF86KbdInputAssistPrev
> Warning:          Could not resolve keysym XF86KbdInputAssistNext
> Warning:          Could not resolve keysym XF86KbdInputAssistPrevgroup
> Warning:          Could not resolve keysym XF86KbdInputAssistNextgroup
> Warning:          Could not resolve keysym XF86KbdInputAssistAccept
> Warning:          Could not resolve keysym XF86KbdInputAssistCancel
> Warning:          Could not resolve keysym XF86RightUp
> Warning:          Could not resolve keysym XF86RightDown
> Warning:          Could not resolve keysym XF86LeftUp
> Warning:          Could not resolve keysym XF86LeftDown
> Warning:          Could not resolve keysym XF86RootMenu
> Warning:          Could not resolve keysym XF86MediaTopMenu
> Warning:          Could not resolve keysym XF86Numeric11
> Warning:          Could not resolve keysym XF86Numeric12
> Warning:          Could not resolve keysym XF86AudioDesc
> Warning:          Could not resolve keysym XF863DMode
> Warning:          Could not resolve keysym XF86NextFavorite
> Warning:          Could not resolve keysym XF86StopRecord
> Warning:          Could not resolve keysym XF86PauseRecord
> Warning:          Could not resolve keysym XF86VOD
> Warning:          Could not resolve keysym XF86Unmute
> Warning:          Could not resolve keysym XF86FastReverse
> Warning:          Could not resolve keysym XF86SlowReverse
> Warning:          Could not resolve keysym XF86Data
> Warning:          Could not resolve keysym XF86OnScreenKeyboard
> Warning:          Could not resolve keysym XF86PrivacyScreenToggle
> Warning:          Could not resolve keysym XF86SelectiveScreenshot
> Warning:          Could not resolve keysym XF86Macro1
> Warning:          Could not resolve keysym XF86Macro2
> Warning:          Could not resolve keysym XF86Macro3
> Warning:          Could not resolve keysym XF86Macro4
> Warning:          Could not resolve keysym XF86Macro5
> Warning:          Could not resolve keysym XF86Macro6
> Warning:          Could not resolve keysym XF86Macro7
> Warning:          Could not resolve keysym XF86Macro8
> Warning:          Could not resolve keysym XF86Macro9
> Warning:          Could not resolve keysym XF86Macro10
> Warning:          Could not resolve keysym XF86Macro11
> Warning:          Could not resolve keysym XF86Macro12
> Warning:          Could not resolve keysym XF86Macro13
> Warning:          Could not resolve keysym XF86Macro14
> Warning:          Could not resolve keysym XF86Macro15
> Warning:          Could not resolve keysym XF86Macro16
> Warning:          Could not resolve keysym XF86Macro17
> Warning:          Could not resolve keysym XF86Macro18
> Warning:          Could not resolve keysym XF86Macro19
> Warning:          Could not resolve keysym XF86Macro20
> Warning:          Could not resolve keysym XF86Macro21
> Warning:          Could not resolve keysym XF86Macro22
> Warning:          Could not resolve keysym XF86Macro23
> Warning:          Could not resolve keysym XF86Macro24
> Warning:          Could not resolve keysym XF86Macro25
> Warning:          Could not resolve keysym XF86Macro26
> Warning:          Could not resolve keysym XF86Macro27
> Warning:          Could not resolve keysym XF86Macro28
> Warning:          Could not resolve keysym XF86Macro29
> Warning:          Could not resolve keysym XF86Macro30
> Warning:          Could not resolve keysym XF86MacroRecordStart
> Warning:          Could not resolve keysym XF86MacroRecordStop
> Warning:          Could not resolve keysym XF86MacroPresetCycle
> Warning:          Could not resolve keysym XF86MacroPreset1
> Warning:          Could not resolve keysym XF86MacroPreset2
> Warning:          Could not resolve keysym XF86MacroPreset3
> Warning:          Could not resolve keysym XF86KbdLcdMenu1
> Warning:          Could not resolve keysym XF86KbdLcdMenu2
> Warning:          Could not resolve keysym XF86KbdLcdMenu3
> Warning:          Could not resolve keysym XF86KbdLcdMenu4
> Warning:          Could not resolve keysym XF86KbdLcdMenu5
Errors from xkbcomp are not fatal to the X server
2021-07-19 12:22:34,307 Warning: missing sound module
2021-07-19 12:22:34,394 pointer device emulation using XTest
2021-07-19 12:22:34,473 Error: cannot find the html web root
2021-07-19 12:22:34,473  '/usr/share/xpra/www' does not exist
2021-07-19 12:22:34,473  install the html-xpra package
2021-07-19 12:22:34,490 cannot create group socket '/run/xpra/t470-1'
2021-07-19 12:22:34,490  [Errno 13] Permission non accordée
2021-07-19 12:22:34,490 Warning: no local server sockets,
2021-07-19 12:22:34,490  forward-xdg-open cannot be enabled
2021-07-19 12:22:34,490  non-embedded ssh connections will not be available
2021-07-19 12:22:34,490 Warning: no local sockets defined,
2021-07-19 12:22:34,490  disabling printer forwarding
2021-07-19 12:22:34,522 D-Bus notification forwarding is available
2021-07-19 12:22:34,564 watching for applications menu changes in:
2021-07-19 12:22:34,564  '/usr/share/applications'
2021-07-19 12:22:34,571 started command 'xterm' with pid 6360
2021-07-19 12:22:34,631 Error parsing xdg menu data:
2021-07-19 12:22:34,631  ParsingError in file '/etc/xdg/menus/kde-applications.menu', File not found
2021-07-19 12:22:34,632  this is either a bug in python-xdg,
2021-07-19 12:22:34,632  or an invalid system menu configuration
2021-07-19 12:22:34,781 Error parsing xdg menu data:
2021-07-19 12:22:34,781  ParsingError in file '/etc/xdg/menus/kde-applications.menu', File not found
2021-07-19 12:22:34,781  this is either a bug in python-xdg,
2021-07-19 12:22:34,781  or an invalid system menu configuration

(Xpra:6313): Gtk-CRITICAL **: 12:22:34.829: gtk_widget_realize: assertion 'widget->priv->anchored || GTK_IS_INVISIBLE (widget)' failed
2021-07-19 12:22:34,833 7.7GB of system memory
2021-07-19 12:22:34,977 xpra is ready.
2021-07-19 12:22:34,977 xpra X11 seamless version 4.2.1-r0 64-bit
2021-07-19 12:22:34,978  uid=1000 (solene), gid=1000 (solene)
2021-07-19 12:22:34,978  running with pid 6313 on Linux unknown unknown unknown
2021-07-19 12:22:34,978  connected to X11 display :1 with 24 bit colors
2021-07-19 12:22:35,565 OpenGL is supported on display ':1'
2021-07-19 12:22:35,566  using 'llvmpipe (LLVM 12.0.1, 256 bits)' renderer


[2] (xpra start ssh://localhost --start=xterm)
2021-07-19 12:31:21,728 Warning: missing sound module
2021-07-19 12:31:21,865 Xpra GTK3 X11 client version 4.2.1-r0 64-bit
2021-07-19 12:31:21,871  running on Linux unknown unknown unknown
2021-07-19 12:31:21,871  window manager is 'Xfwm4'
2021-07-19 12:31:22,448 Error: cannot enable SSH socket upgrades:
2021-07-19 12:31:22,448  No module named 'paramiko'
2021-07-19 12:31:22,449 created unix domain socket '/run/user/1000/xpra/clients/t470-7695'
/usr/lib/python3.9/site-packages/PIL/Image.py:3022: UserWarning: image file could not be identified because WEBP support not installed
  warnings.warn(message)
2021-07-19 12:31:22,473 Pillow error decoding webp with data=524946465c000000..
2021-07-19 12:31:22,473  cannot identify image file <_io.BytesIO object at 0x7fcb3b9a5180>
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/xpra/codecs/pillow/decoder.py", line 197, in selftest
    img = PIL.Image.open(buf)
  File "/usr/lib/python3.9/site-packages/PIL/Image.py", line 3023, in open
    raise UnidentifiedImageError(
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7fcb3b9a5180>
2021-07-19 12:31:22,639 OpenGL_accelerate module loaded
2021-07-19 12:31:22,645 Using accelerated ArrayDatatype
2021-07-19 12:31:22,779 Warning: vendor 'Intel Open Source Technology Center' is greylisted,
2021-07-19 12:31:22,779  you may want to turn off OpenGL if you encounter bugs
2021-07-19 12:31:22,853 OpenGL accelerate missing: numpy_formathandler
2021-07-19 12:31:22,853 OpenGL enabled with Mesa DRI Intel(R) HD Graphics 620 (KBL GT2)
2021-07-19 12:31:22,974  keyboard settings: rules=evdev, model=pc105, layout=fr
2021-07-19 12:31:22,978  desktop size is 1920x1080 with 1 screen:
2021-07-19 12:31:22,978   :0.0 (508x285 mm - DPI: 96x96) workarea: 1920x1053 at 0x27
2021-07-19 12:31:22,978     AUO eDP1 (310x170 mm - DPI: 157x161)
Entering daemon mode; any further errors will be reported to:
  /run/user/1000/xpra/S7748.log
Actual display used: :4
Actual log file name is now: /run/user/1000/xpra/:4.log
xpra initialization error:
 failed to identify the new server display!
2021-07-19 12:32:53,250 Error: failed to receive anything, not an xpra server?
2021-07-19 12:32:53,250   could also be the wrong protocol, username, password or port
2021-07-19 12:32:53,250   or the session was not found
2021-07-19 12:32:53,250 Connection lost
2021-07-19 12:32:53,259 removing unix domain socket '/run/user/1000/xpra/clients/t470-7695'