Conda installation #5681
-
Hi all, I am a CTA user and in our setup, we use a wrapper around DIRAC (CTADIRAC) that allows developing interfaces for various pipelines or analysis codes. After the upgrade to python3, this wrapper has been also upgraded and can be installed as a I managed to create an environment with the following recipe: name: environment_B
channels:
- conda-forge
dependencies:
- python=3.8
- pip
- dirac-grid
- pip:
- A
- CTADIRAC in which I can get a proxy and e.g. consult the FileCatalog. I have then 2 issues (possibly correlated). 1st issueafter an apparent successful
I can solve the I tested also the
More in general, I'd like much more to do all in a conda installation and have DIRACOS2 with it, otherwise it's a bit weird, to say the least (perhaps I have made a mistake along the line, or it is already in the works?). 2nd issueIf I try to download a file from the grid I obtain the following error
I get this on different machines with the python3 interface and not with the old python2 one. Many thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi again (I thought I already answered but now I can't see my reply, so probably I dreamed of it), I managed to solve my issues as follows:
export X509_CERT_DIR=$CONDA_PREFIX/etc/grid-security/certificates
export X509_VOMS_DIR=$CONDA_PREFIX/etc/grid-security/vomsdir
export X509_VOMSES=$CONDA_PREFIX/etc/grid-security/vomses I think such instructions should be added properly to the documentation for non-developer users. (I have the feeling that the variable exporting should be done by one of either |
Beta Was this translation helpful? Give feedback.
-
Hi, and thanks for your input.
DIRACOS2 is the only one supported because it makes sure the environment is correctly created, basically by creating a I am converting this to a "discussion" rather than staying as issue. |
Beta Was this translation helpful? Give feedback.
Hi, and thanks for your input.
@chrisburr might give a more complete answer, anyway:
voms
is included in DIRACOS2: https://github.com/DIRACGrid/DIRACOS2/blob/main/construct.yaml#L61. And, it is also included in the DIRAC environment definition: https://github.com/DIRACGrid/DIRAC/blob/integration/environment.yml#L43DIRACOS2 is the only one supported because it makes sure the environment is correctly created, basically by creating a
diracorc
file: https://github.com/DIRACGrid/DIRACOS2/blob/main/create_diracosrc.sh so that the env variables above are also set.I am converting this to a "discussion" rather than staying as issue.