![]() This patch branch has several additional commits compared to the default develop branch: 1) it gets rid of the version specification for cx_Freeze, which was giving me installation problems if I used the 4.3.4 version previously specified, and 2) it imports QtWebKit from PySide instead of PyQt4.Ĭreate and activate a virtualenv for Python 2 and force-upgrade pip just to make sure it is up-to-date: virtualenv venv Ĭd into a directory of your choice, which will be ~/Desktop/temp for the purpose of writing this answer, git clone my version of the repository and git checkout the patch branch: mkdir ~/Desktop/temp Then I made a couple of changes to faf-client/src to import the QtWebKit module from PySide. I then symlinked the appropriate system libraries and files for PyQt4 into the virtualenv. ![]() I created and activated a virtualenv without using the -system-site-packages option and used pip to install PySide, which does have the QtWebKit module. In a nutshell, I used apt to install python-qt4, which does not have the QtWebKit module. It looks like I may have figured out how to import the QtWebKit module, but I don't have the FAF game installed, so I cannot fully verify that this works and therefore this answer is a work in progress. Python 2 with PyQt4 and PySide (experimental) Run python on src/_main_.py: python src/_main_.py Use pip to install PyQt5 and from requirements.txt: pip install PyQt5ĭownload the faf-uid binary into faf-client/lib and make it executable: wget -O lib/faf-uid Note that PyQt5 (but not PyQt4) can in fact be installed with pip, so that makes things way more convenient.Ĭd into a directory of your choice, which will be ~/Desktop/temp for the purpose of writing this answer, git clone the FAForever/client GitHub repository and git checkout the 474-feature-p圓 branch: mkdir ~/Desktop/tempĬreate and activate a virtualenv for Python 3 (the default is Python 3.5 for Ubuntu 17.04) and force-upgrade pip just to make sure it is up-to-date: virtualenv venv -p python3 # replace python3 with python3.6 if you want to use Python 3.6 instead Therefore, using this branch is the most straightforward solution. It appears that the 474-feature-p圓 branch of the FAForever/client GitHub repository uses Python 3 with PyQt5, which contains QtWebKit. Note: the steps for Python 3 with PyQt5 are proven to work while the steps for Python 2 with PyQt4 and PySide are still experimental. Now it should run but for the heck of it let's make a runner : touch FAF.sh
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |