Xpra: Ticket #303: invalid literal Value error when attaching with 32 bit xp via cmd

Trying to connect to an xpra session using a 32 bit windows xp client (0.9.0) with the cmd shell with the following command:

xpra_cmd.exe attach tcp:10.0.32.196:1200

The client generates the following error:

xpra client 0.9.0
Traceback
   File "xpra_cmd.py", line 12 in (module)
...
Value Error: invalid literal for int() with base 10: '10.0.32.196'

The launch GUI works fine.



Fri, 22 Mar 2013 03:37:46 GMT - Antoine Martin: owner changed

Please include the full stacktrace - it is missing the most important part.

Please also try running with -d all


Sat, 23 Mar 2013 02:39:59 GMT - Antoine Martin: priority changed; milestone set


Mon, 25 Mar 2013 20:00:02 GMT - alas: status changed; resolution set

I can't seem to reproduce this bug when using --opengl=off . I'm going to assume it was an opengl issue and close this.


Wed, 27 Mar 2013 21:12:13 GMT - Antoine Martin:

The opengl probing does not happen until much later, after the connection has been established.

And I managed to reproduce it, not with the command line posted in this ticket but with this one (an invalid one):

$ xpra attach tcp:127.0.0.1
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
xpra client version 0.9.0
Traceback (most recent call last):
  File "/bin/xpra", line 6, in <module>
    sys.exit(xpra.scripts.main.main(__file__, sys.argv))
  File "xpra/scripts/main.py", line 404, in main
    return run_client(parser, options, args, mode)
  File "xpra/scripts/main.py", line 630, in run_client
    conn = connect_or_fail(pick_display(parser, opts, extra_args))
  File "xpra/scripts/main.py", line 502, in pick_display
    return parse_display_name(parser.error, opts, extra_args[0])
  File "xpra/scripts/main.py", line 476, in parse_display_name
    port = int(parts[-1])
ValueError: invalid literal for int() with base 10: '127.0.0.1'

This is "fixed" in r3043: we show a better error message:

error: invalid tcp connection string, use tcp/HOST/PORT or tcp:host:port

Sat, 23 Jan 2021 04:51:08 GMT - migration script:

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