Hi Giuseppe, I gather you are the gridpp user Rob Currie alluded to in an earlier email ? If so, welcome aboard. DIRAC installations differ slightly from each other, you can find any setting specific to the GridPP DIRAC instance here: https://www.gridpp.ac.uk/wiki/Quick_Guide_to_Dirac Would you mind trying this out ? If you have an SL7 machine with cvmfs mounted to hand, I would recommend using the cvmfs based DIRAC UI (in a clean window!!), much quicker to test. We have no access to the ganga setup, which makes debugging a bit difficult, so we generally don't recommend this to beginners. I checked on our DIRAC server and it looks like you are properly registered, so there shouldn't be a problem there. As for setting up any software inside your job: This depends on the size of the executable (not everything can be shipped with a sandbox) and other parameters. We have no control over were sites run their jobs, so if you write any setup it has to be relative to $PWD, there is no such thing as a home directory. Once you managed to submit a job or three - you might want to send a script with it that dumps the environment, so you get a feel for the look of a grid environment - we'll get onto the next step, as in how to get your software where it's meant to go. Hope that helps, Daniela On Tue, 28 Jun 2022 at 19:37, Giuseppe Congedo <giuseppe.congedo@ed.ac.uk> wrote:
******************* This email originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address. ******************* Hello everyone,
I am relatively new to gridPP, having obtained a certificate/VO membership only recently. I am writing because I have started experimenting with the Python DIRAC API (followed the official instructions
https://dirac.readthedocs.io/en/latest/UserGuide/GettingStarted/InstallingCl... )
Apart one lucky job (which I managed to submit via /cvmfs/ganga.cern.ch/dirac_ui/bashrc as opposed to the manual procedure above, but failed probably due to me deleting the proxy), unfortunately all my other attempts have failed so far. This is the error I always get:
Job submission failure Cannot get URL for WorkloadManagement/JobManager in setup DIRAC-Certification: RuntimeError('Option /DIRAC/Setups/DIRAC-Certification/WorkloadManagement is not defined') I wonder if I am doing something wrong somewere.
Unrelated from the above, I was also wondering what environment the code will see when it arrives at the remote node. Can I sandbox my Python package, cd into the directory and install it along with all dependencies all in a job step? For instance:
job.setExecutable('cd my_package_dir && pip install -r requirements.txt --user && python setup.py install --user') job.setExecutable('my_package_dir/my_package/my_script.py') job.setInputSandbox([my_package_dir, other_files]) Also, are directories relative to the home?
Many thanks for all your help
Giuseppe
-- Dr Giuseppe Congedo (Senior Researcher) Institute for Astronomy, University of Edinburgh Royal Observatory, Blackford Hill Edinburgh, EH9 3HJ
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.
-- _______________________________________________ Gridpp-Dirac-Users mailing list Gridpp-Dirac-Users@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/gridpp-dirac-users
-- ----------------------------------------------------------- daniela.bauer@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/