Hi all.
I am using Arch Linux with Crossover Games. Before 1 week Arch Linux changed to python3. Since /usr/bin/python will now point to the 3.x binary, any program requiring 2.x needs to point to /usr/bin/python2 instead.
Problem: I can't recompile the python guis, because there is no source. ;) Is there any way to use my crossover again?
Check your package system for a tool to let you switch which Python is the default. For example, in MacPorts, there's a python_select package to install a tool to let you switch it.
If there's no such package, you can do the switch manually by replacing /usr/bin/python with a symlink to /usr/bin/python2. I have no idea what that might break, though. (Similar to how Arch Linux's decision to switch to Python 3 breaks CrossOver and any other Python 2.x software.)
If changing /usr/bin/python isn't an option, you can edit the Python scripts installed as part of CrossOver. Replace each instance of "/usr/bin/python" with "/usr/bin/python2". Tedious, but should work.
I know none of these is an ideal solution. They're just possible interim workarounds. We're aware of the issue and have a bug entered into our bug tracker about it.
Thx. I managed it with a sed command... (http://allanmcrae.com/2010/10/big-python-transition-in-arch-linux/).
Now Crossover is running, but i can't install the new CrossOver Games 9.2. Where does Crossover Installer extract his files. So I can run the sed command again.
K. I managed it. I made a link for python2 to python. Then I installed CrossOver. After that I made the old link python3 to python. Now i am running the sed command. ;)
K. I managed it. I made a link for python2 to python. Then I
installed CrossOver. After that I made the old link python3 to
python. Now i am running the sed command. ;)
Can you share how you "made a system link" I'm facing the same issue sadly.
I put together the commands from rmhz into a bash script as there was no fix for this issue in the latest upgrade.
Hopefully it's of some help to someone.
Alex
#######################################################
# MUST BE ROOT WITH X_WINDOWS ACCESS (E.G. USING "sux")
# TO RUN THIS INSTALL SCRIPT FOR A SYSTEM-WIDE INSTALL
#######################################################
#! /bin/sh
# temporaily switch from default python3 install to pythin2
ln -sf /usr/bin/python2 /usr/bin/python
# install crossover (the .bin package will need to be changed for a different version)
# the rest of the script assumes your are installing in "/opt/cxoffice"
sh install-crossover-pro-10.0.0.bin
# make sure to re-link back to python3 as default python or you will
# banjax your system (or at least those parts that depend on python)
sudo ln -sf /usr/bin/python3 /usr/bin/python
# make all references to python in "bin" and "lib/python"
# directories be explicit to python2
cd /opt/cxoffice/bin
sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" *
sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" *
cd /opt/cxoffice/lib/python
sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" *.py
sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" *.py
# That should be it. Hope it works! (It does on my system at least)
Please Note: This Forum is for non-application specific questions relating to installation/configuration of CrossOver. All application-specific posts to this Forum will be moved to their appropriate Compatibility Center Forum.
CrossOver Forums: the place to discuss running Windows applications on Mac and Linux
CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.