LINUX SUPPORT IS HERE

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Re: LINUX SUPPORT IS HERE

Postby Wesmania » 03 Oct 2017, 14:36

Make it 4th, you need python3-pyqt5 and python3-pyqt5.qtwebengine.
Wesmania
Contributor
 
Posts: 391
Joined: 19 Nov 2014, 19:17
Has liked: 2 times
Been liked: 79 times
FAF User Name: MazorNoob

Re: LINUX SUPPORT IS HERE

Postby tatsu » 03 Oct 2017, 22:53

Last edited by tatsu on 17 Nov 2017, 00:01, edited 5 times in total.
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby crispyambulance » 14 Oct 2017, 04:42

All right I'm trying the AUR package. I run

python /usr/lib/python3.6/site-packages/fafclient/src

in the terminal and I get this output

Code: Select all
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.6/site-packages/fafclient/src/__main__.py", line 42, in <module>
    import util
  File "/usr/lib/python3.6/site-packages/fafclient/src/util/__init__.py", line 15, in <module>
    from config import Settings
  File "/usr/lib/python3.6/site-packages/fafclient/src/config/__init__.py", line 5, in <module>
    import trueskill
ModuleNotFoundError: No module named 'trueskill'


Anyone know how to fix this?
crispyambulance
Crusader
 
Posts: 27
Joined: 01 Feb 2016, 20:00
Has liked: 0 time
Been liked: 13 times
FAF User Name: crispyambulance

Re: LINUX SUPPORT IS HERE

Postby tatsu » 14 Oct 2017, 14:21

crispyambulance wrote:All right I'm trying the AUR package. I run
Anyone know how to fix this?

trueskill shouldn't be popping up. your version of FAF is too old I think the aur pakage hasn't bee updated. try using the guide I posted above. downloading the zip from faf github and python running it should work if you install the dependencies. (first line but it's not "sudo apt-get install" for you it's another command)
ignore the desktop launcher part.
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby crispyambulance » 14 Oct 2017, 20:47

OH MY GAAAAAAAD it works.

So basically I think installing the AUR package installed the dependencies. I tried manually looking for them and i can't find for example python3-pyqt5.qtwebengine in the repos or AUR. Most of these dependencies have slightly different names in arch for the ones I could find.

I tried 0.16.0 first and it gave me the thing about trueskill again.

Did 0.16.1 by running the command:

python ~/build/fafclient/src

Had to create the RELEASE-VERSION file like the instructions say to make 016.1 work.
crispyambulance
Crusader
 
Posts: 27
Joined: 01 Feb 2016, 20:00
Has liked: 0 time
Been liked: 13 times
FAF User Name: crispyambulance

Re: LINUX SUPPORT IS HERE

Postby Herby » 20 Oct 2017, 07:59

After a few weeks away from FAF, I tried to run the FAF client just to find out that I have to update it. But when running the updater directly from the client, it doesn't work :(. So I want to try with the new instructions from Tatsu:
tatsu wrote:up to date instructions :
(some now has to be done by hand) :
Got to https://github.com/FAForever/client/releases

and click on "Source Code" (either zip or tar.gz)

then when you open the zip go down a folder (go into client-develop in the zip)

and unzip all from there into a newly created "fafclient/client" folder in your home.
And first problem: I cant find "client-develop" in the zip. Just to be sure before messing up everything, did I download the correct zip or is this folder named differently in the latest release?
Herby
Crusader
 
Posts: 16
Joined: 18 Aug 2017, 13:36
Has liked: 0 time
Been liked: 5 times
FAF User Name: Herby

Re: LINUX SUPPORT IS HERE

Postby Wesmania » 20 Oct 2017, 08:11

It's probably just named differently. Just go with whatever the folder name in the archive is.
Wesmania
Contributor
 
Posts: 391
Joined: 19 Nov 2014, 19:17
Has liked: 2 times
Been liked: 79 times
FAF User Name: MazorNoob

Re: LINUX SUPPORT IS HERE

Postby tatsu » 20 Oct 2017, 12:40

I really gotta work up the nerve to provide a jenkins-style Deb-packaging shell script to either include in the repo or have running elsewhere this way with every new release we can automatically get installers (for debian based-distros for a start and others down the line).

It would help people out alot (plus we could include a switch case on the updater downloading the right kind of file according to the detected OS instead of always downloading an .exe no matter what. but I haven't cracked deb building yet; there's a final step that I just don't get.
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby Herby » 20 Oct 2017, 13:00

Wesmania wrote:It's probably just named differently. Just go with whatever the folder name in the archive is.
OK, it seems to be /src/client

Next point: I noticed that there is no mention of virtualenv any more. Why?
In my case, on Kubuntu 14.04, I need to compile sip-4.16.5 & PyQt 5.3.2. Is it safe to do this without virtualenv? I just don't want to break my whole system...
Herby
Crusader
 
Posts: 16
Joined: 18 Aug 2017, 13:36
Has liked: 0 time
Been liked: 5 times
FAF User Name: Herby

Re: LINUX SUPPORT IS HERE

Postby tatsu » 20 Oct 2017, 13:42

Herby wrote:Next point: I noticed that there is no mention of virtualenv any more. Why?

because we're ditching that. virtualenv was and is awful and was and is a hack.

the correct way to do it is to run the app with our locally installed linux python (either v2 or v3, both work) and now thanks to Westmania that's possible. so no more virtualenv. cookies for everyone.

Herby wrote:I need to compile sip-4.16.5 & PyQt 5.3.2.


no you don't don't do that just sudo apt install the packages.

basically follow my guide step by step.

if the packages aren't available consider upgrading to kubuntu 17.04
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

PreviousNext

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest