Hello Simon, I tried to do as you said, but pip does not seem to work after sourcing DIRAC's bashrc: $ pip Traceback (most recent call last): File "/opt/ppd/scratch/kdf77245/t2k_software/t2kGrid/t2kdm/DIRAC/Linux_x86_64_glibc-2.12/bin/pip", line 7, in <module> from pip import main ImportError: cannot import name main Cheers Lukas Am 09/11/2018 um 15:16 schrieb Simon Fayer:
Hi Lukas,
The easiest way of doing this is to treat the DIRAC python environment as if it's a virtualenv and install whatever you need in to that (rather than the other way around).
# Install DIRAC UI & then start with a clean env... # Get a subshell bash source bashrc unset REQUESTS_CA_BUNDLE SSL_CERT_DIR # These upset pip pip install -e t2kdm # or whatever exit source bashrc # You should now have a python environment with your modules & DIRAC
Regards, Simon
On Fri, Nov 09, 2018 at 01:16:30PM +0000, Lukas Koch wrote:
Hello,
I am trying to implement a Dirac backend for the software we use at T2K to access the grid data. This software is written in Python and now I am facing the problem that Dirac comes with its own Python distribution that does *not* play nicely with either the system Python or virtual environments.
So my question is this: Is there a(n easy) way to make Dirac compatible with other Python software? Maybe a way to install the Dirac client in a regular virtual Python environment?
Cheers Lukas
-- Lukas KOCH Particle Physics Department STFC Rutherford Appleton Laboratory Mail: lukas.koch@stfc.ac.uk Tel: +44 (0) 1235 44 x6265