ExtraPilotOptions=--userEnvVariables:::pilot.cfg does not work anymore with python3 pilots

9 views
Skip to first unread message

Luisa Arrabito

unread,
Oct 11, 2021, 12:25:49 PM10/11/21
to diracgrid-forum
Dear all,

Before updating to py3 installations we were using:

ExtraPilotOptions=--userEnvVariables DIRACSYSCONFIG:::pilot.cfg

to be able to use dirac or CTADIRAC commands inside our jobs.

However this does not work anymore with python3 pilots. I

Could you please suggest an alternative way to get the same behaviour, i.e. using pilot.cfg as configuration file inside jobs?

Thank you,

Luisa

Luisa Arrabito

unread,
Oct 12, 2021, 5:34:30 AM10/12/21
to diracgrid-forum
Dear all,
The only way I found for the moment is to configure jobs with:

job.setExecutionEnv({'DIRACSYSCONFIG':'pilot.cfg'})

However I don't like so much this solution because I have to warn all users to set this variable in their jobs (if they want to use dirac commands inside their jobs).

Do you have a proper solution?

Thank you,

Luisa

Daniela Bauer

unread,
Oct 12, 2021, 6:17:21 AM10/12/21
to Luisa Arrabito, diracgrid-forum
Hi Luisa,

I can't comment on the issue at hand, but I thought DIRAC commands were always available to the jobs ? Our user have been meerrily using them for years.

Daniela

--
You received this message because you are subscribed to the Google Groups "diracgrid-forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diracgrid-for...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/diracgrid-forum/364a72ba-80bc-4ef3-bb0c-25d1b278031dn%40googlegroups.com.


--
Sent from my guinea pig enhanced living room

-----------------------------------------------------------
daniel...@imperial.ac.uk
HEP Group/Physics Dep
Imperial College
London, SW7 2BW
Tel: Working from home, please use email.
http://www.hep.ph.ic.ac.uk/~dbauer/
Message has been deleted

Federico Stagni

unread,
Oct 12, 2021, 7:24:26 AM10/12/21
to Luisa Arrabito, diracgrid-forum
Hi Luisa,
indeed this option made only sense for python2 pilots, as it was only digested by dirac-install script, which is not invoked in python3. I agree that using job.setExecutionEnv() is not a clean solution.

Nevertheless: python3 installations of DIRAC are done "properly", using the python tools. We still of course do source an *rc file (diracos/diracosrc) which IIUC it's created according to https://github.com/DIRACGrid/DIRACOS2/blob/main/create_diracosrc.sh
If we want to mimic what it's done in with the py2 installation, then we should do it using standard py3 tools, or through the DIRAC Pilots. Let me think about  a proper solution and I will let you know.


Cheers,
Federico



--

Luisa Arrabito

unread,
Oct 12, 2021, 7:25:49 AM10/12/21
to diracgrid-forum
OK thanks a lot.
Luisa

Federico Stagni

unread,
Oct 12, 2021, 9:31:52 AM10/12/21
to Luisa Arrabito, diracgrid-forum

Luisa Arrabito

unread,
Oct 12, 2021, 11:14:32 AM10/12/21
to diracgrid-forum
I've just left a comment, since I found a small typo.
Thank you.

Luisa Arrabito

unread,
Oct 12, 2021, 1:49:25 PM10/12/21
to diracgrid-forum
Thank you.
I confirm it works fine.
Reply all
Reply to author
Forward
0 new messages