Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use DIRAC from conda #7921

Open
acampove opened this issue Dec 2, 2024 · 1 comment
Open

Cannot use DIRAC from conda #7921

acampove opened this issue Dec 2, 2024 · 1 comment

Comments

@acampove
Copy link

acampove commented Dec 2, 2024

Hello DIRAC developers,

I wrote a project to automate the download of ntuples from the grid. This is a python project and has DIRAC as a dependency. The easiest way for a user (our analyzers) to use the project is to install it in a conda environment with DIRAC in it.

I am following the instructions from the README.md, i.e.:

mamba create --name my-dirac-env -c conda-forge dirac-grid
conda activate my-dirac-env

but I see:

(dirac) [acampove@thinkpad-t430 ~]$ dirac-proxy-info
No CFG file loaded, was that intentional?
Running without remote configuration
Missing mandatory local configuration option /DIRAC/Setup
There were errors when loading configuration

I think there might be something missing in the documentation. What should I do to get this to work?

Cheers.

@fstagni
Copy link
Contributor

fstagni commented Dec 2, 2024

Hi, it's indeed a bit confusing documentation, as the README tells you how to install DIRAC (for development purposes) but not how to configure it (a DIRAC client has to connect to a DIRAC server installation...). What you are missing is to run the dirac-configure command.

More, I think you want the LHCb DIRAC installation, so at a minimum you should:

pip install LHCbDIRAC
dirac-configure

It should also be noted that the conda environment you created might not contain all the dependencies you need (just try...), and in that case you'd need diracos (follow instructions in https://dirac.readthedocs.io/en/latest/UserGuide/GettingStarted/InstallingClient/index.html)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants