Message boards : ATLAS application : Trying to get ATLAS native working on Arch Linux
Message board moderation

To post messages, you must log in.

AuthorMessage
Bas

Send message
Joined: 14 Sep 17
Posts: 17
Credit: 305,149
RAC: 0
Message 34847 - Posted: 2 Apr 2018, 12:55:29 UTC

I am trying to get ATLAS native_mt working on a Arch Linux box.

I have successfully installed cvmfs (2.3.5-5) and singularity-container (2.4.5-1) from the Arch User Repository, but unfortunately the task ends after a few seconds with a computation error: https://lhcathome.cern.ch/lhcathome/result.php?resultid=186423033

This is a python error, right? So it looks like the "commands module" is missing on my system, but i have trouble finding the right package to install. If I search for "commands" or "subprocess" (python.org says the commands module is deprecated, and you should use the subprocess module) in the Arch Linux and Arch User repos, there are a couple of packages that might do the trick:

python-sh
python-ptyprocess
python-whelk
python-delegator
python-easyprocess
python-executor
python-sarge
python-subprocess2
python-subprocrunner

And while I was creating this post, another task ended with a computation error, and now we know that "python-ptyprocess" is not the package I need...

Although I can run ATLAS tasks with vbox, I don't do ATLAS because I keep getting the native task as well, which is really annoying. So it would be great if someone with more python knowledge than me (mine is zero) can help, or if there was an option to choose between "native" and "vbox" in the preferences.
ID: 34847 · Report as offensive     Reply Quote
Bas

Send message
Joined: 14 Sep 17
Posts: 17
Credit: 305,149
RAC: 0
Message 34848 - Posted: 2 Apr 2018, 14:24:14 UTC - in response to Message 34847.  

Ah, I am not the only one with this problem:

https://lhcathome.cern.ch/lhcathome/forum_thread.php?id=4649#34709

I will continue to _not_ run atlas tasks and wait for the devs to fix it.
ID: 34848 · Report as offensive     Reply Quote
gyllic

Send message
Joined: 9 Dec 14
Posts: 202
Credit: 2,533,875
RAC: 0
Message 34849 - Posted: 2 Apr 2018, 14:33:13 UTC - in response to Message 34847.  
Last modified: 2 Apr 2018, 14:37:17 UTC

you surely have installed the "normal" python2 package, have you?
https://wiki.archlinux.org/index.php/Python

and the python command is known by the system?
try typing
python --version
into the command line and see if there is an output.

im running centos 7 and i havent installed any additional python packages. the version which is in use in centos is 2.7.5 and its is working without any problem.

Although I can run ATLAS tasks with vbox, I don't do ATLAS because I keep getting the native task as well, which is really annoying. So it would be great if someone with more python knowledge than me (mine is zero) can help, or if there was an option to choose between "native" and "vbox" in the preferences.
im not 100% sure if the native atlas version is still in beta, but you could try to disable "Run test applications?" in your lhc@home preferences. if it is still in beta and you uncheck this, you will only get vbox atlas tasks, otherwise obviously not.

EDIT: was typing this while you wrote the second post, so ignore it :-)
ID: 34849 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2534
Credit: 253,848,172
RAC: 37,862
Message 34850 - Posted: 2 Apr 2018, 14:34:31 UTC - in response to Message 34847.  

... I don't do ATLAS because I keep getting the native task as well ...

Did you deselect "Run test applications?" in the project's web preferences?
ID: 34850 · Report as offensive     Reply Quote
Bas

Send message
Joined: 14 Sep 17
Posts: 17
Credit: 305,149
RAC: 0
Message 34851 - Posted: 2 Apr 2018, 14:52:24 UTC - in response to Message 34850.  

@gyllic: I didn't have python2 installed. I have now, but the default is python 3.6.4 (output of python --version). I don't know how to change it to python2, and I'm not sure if I want to. It may break something... Anyway, I'll try to get another native atlas task and post the result here.

@computezrmle: "run test applications" does not have any effect as far as I can tell. I'm always getting native_mt tasks unless I deselect "ATLAS Simulation" altogether.
ID: 34851 · Report as offensive     Reply Quote
Bas

Send message
Joined: 14 Sep 17
Posts: 17
Credit: 305,149
RAC: 0
Message 34852 - Posted: 2 Apr 2018, 16:04:16 UTC - in response to Message 34849.  

Installing python2 didn't help, I get the same error.

I'm thinking I should make python2 the default python version, but only for the boinc user. I'll be back...
ID: 34852 · Report as offensive     Reply Quote
Bas

Send message
Joined: 14 Sep 17
Posts: 17
Credit: 305,149
RAC: 0
Message 34853 - Posted: 2 Apr 2018, 16:34:56 UTC - in response to Message 34852.  

After some internet research, I have come to the conclusion that in a box with both python2 and python3, it is the script maintainer's responsibility to choose the right version. Victor has it exactly right.

That means I still won't run atlas task unfortunately, not native, and not in vbox. The devs have to fix this.
ID: 34853 · Report as offensive     Reply Quote
gyllic

Send message
Joined: 9 Dec 14
Posts: 202
Credit: 2,533,875
RAC: 0
Message 34860 - Posted: 2 Apr 2018, 19:34:39 UTC - in response to Message 34853.  

no idea if that will work, but u could try to translate the python 2 script into a python 3 one with 2to3 for example
https://docs.python.org/2/library/2to3.html
ID: 34860 · Report as offensive     Reply Quote
Bas

Send message
Joined: 14 Sep 17
Posts: 17
Credit: 305,149
RAC: 0
Message 34870 - Posted: 3 Apr 2018, 20:36:07 UTC - in response to Message 34860.  

I tried to change the first line from "#!/usr/bin/env python" to "#!/usr/bin/env python2", but that didn't work: I got the same error, and when I checked the script again, the first line was back to "#!/usr/bin/env python".

Thanks for help, but I'll keep crunching non-atlas tasks for the time being.
ID: 34870 · Report as offensive     Reply Quote

Message boards : ATLAS application : Trying to get ATLAS native working on Arch Linux


©2024 CERN