Xpra: Ticket #1439: Trunk servers built from source try to launch with Python 3

Building a trunk machine from source causes /usr/bin/xpra to start with the line:


And, when a user tries to launch a server, it says that operation is not supported.

For some odd reasons, the trunk build scripts (the ones that Smo helped me set up) spit out that line, which caused almost two days worth of a headache for me until Smo spotted it. I thought this was an issue with just my machines until someone else had it happen to them on a completely fresh machine, so I figured it would be best to report this as an issue.

Here's the shell script I'm building with (ran in the src/ folder):

#clean up build info
rm xpra/build_info.py
rm xpra/src_info.py
#clean up old build
./setup.py clean
#LDFLAGS=-Wl,-rpath=/usr/lib64/xpra \
#PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib64/xpra/pkgconfig \
#    ./setup.py install
#no longer needed
python2 ./setup.py build \
    --rpath=/usr/lib64/xpra --pkg-config-path=/usr/lib64/xpra/pkgconfig
sudo python3 ./setup.py install \
    --rpath=/usr/lib64/xpra --pkg-config-path=/usr/lib64/xpra/pkgconfig
    --without-html5 --without-printing
sudo python2 ./setup.py install \
    --rpath=/usr/lib64/xpra --pkg-config-path=/usr/lib64/xpra/pkgconfig

Tue, 14 Feb 2017 18:13:53 GMT - J. Max Mena:

Oh, I should mention that changing the python3 to python2 allows the trunk servers to launch and run as expected.

Wed, 15 Feb 2017 03:39:03 GMT - Antoine Martin: status changed; resolution set

Just run the python2 build last, or delete "/usr/bin/xpra" before you run it.

This is not new, both builds claim the same file.

Wed, 15 Feb 2017 10:29:49 GMT - Antoine Martin:

Note: there is a workaround for this, you can run:

python2 /usr/bin/xpra (...) --systemd-run=no

Thu, 16 Feb 2017 17:24:34 GMT - J. Max Mena:

Running Python2 before Python3 doesn't change anything, but leaving the Python3 one first and deleting /usr/bin/xpra before running the Python2 one did it.

Note: The wiki page on building from source didn't mention this and needs to be updated. Especially considering all the build system changes that 2.X brings.

Thu, 16 Feb 2017 17:44:11 GMT - Antoine Martin:

Feel free to edit the wiki, I don't see what needs adding.

Thu, 16 Feb 2017 17:58:32 GMT - J. Max Mena:

Okay, I see now.

Weird that it EDIT: swapping the Python2 and Python3 lines didn't fix it, but it's working for now so I don't really want to poke it, lest I make it worse.

Sat, 23 Jan 2021 05:24:21 GMT - migration script:

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