Problem when running with Python 3
I'm trying to port the LHCbDirac deployment to a new host, where we have Python3 in the environment, and I get the error below. Any idea ?
2020-02-18 22:34:27 UTC dirac-install [NOTICE] Retrieving http://lhcb-rpm.web.cern.ch/lhcb-rpm/lhcbdirac/tars/LHCbDIRAC-v10r0-pre1.md5 2020-02-18 22:34:27 UTC dirac-install [NOTICE] Deploying scripts... Traceback (most recent call last): File "./dirac-install.py", line 2630, in <module> cliParams.platform = getPlatform() File "./dirac-install.py", line 1929, in getPlatform return Platform.getPlatformString() File "/cvmfs/lhcbdev.cern.ch/lhcbdirac/versions/v10r0-pre1_1582065265/DIRAC/Core/Utilities/Platform.py", line 94, in getPlatformString reM = ldre.match( line ) TypeError: cannot use a string pattern on a bytes-like object Traceback (most recent call last): File "/home/cvlhcbdev/miniconda3/envs/celery/bin/lb-deploy-lhcbdirac-install", line 11, in <module> load_entry_point('deploylhcbdirac', 'console_scripts', 'lb-deploy-lhcbdirac-install')() File "/cephfs/cvlhcbdev/var/deploy-lhcbdirac/deploylhcbdirac/deploy_lhcbdirac.py", line 337, in main synchronizeConfAndInstalled(sys.argv[1]) File "/cephfs/cvlhcbdev/var/deploy-lhcbdirac/deploylhcbdirac/deploy_lhcbdirac.py", line 319, in synchronizeConfAndInstalled installVersion(basepath, version) File "/cephfs/cvlhcbdev/var/deploy-lhcbdirac/deploylhcbdirac/deploy_lhcbdirac.py", line 149, in installVersion subprocess.check_call([installScriptPath]) File "/home/cvlhcbdev/miniconda3/envs/celery/lib/python3.8/subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/tmp/cvlhcbdev/tmpcyuqti8_']' returned non-zero exit status 1. Aborting transaction