radical-cybertools / radical.pilot

RADICAL-Pilot
http://radical-cybertools.github.io/radical-pilot/index.html
Other
54 stars 23 forks source link

OLCF: install Flux-Python #3115

Closed andre-merzky closed 8 months ago

mtitov commented 8 months ago

Flux python installation is there (it was missed at first)

$ find /usr -name flux
find: ‘/usr/share/polkit-1/rules.d’: Permission denied
/usr/share/lua/5.3/flux
/usr/share/flux
/usr/share/bash-completion/completions/flux
/usr/lib64/python3.6/site-packages/flux
find: ‘/usr/lib64/mysql/plugin/auth_pam_tool_dir’: Permission denied
/usr/lib64/flux
/usr/lib/flux
/usr/include/flux
/usr/bin/flux
$ module show flux/0.56.0
--------------------------------------------------------------------------------------
   /sw/frontier/modulefiles/flux/0.56.0.lua:
--------------------------------------------------------------------------------------
whatis("Name : flux-core")
whatis("Version : 0.56.0")
whatis("Short description : Flux is a flexible framework for resource management")
help([[Flux is a flexible framework for resource management]])
prepend_path("LD_LIBRARY_PATH","/usr/lib64/flux")
setenv("SLURM_MPI_TYPE","pmi2")

p.s. couple general tips on how to locate flux python installation

$ flux python -c 'import flux; print(flux.__file__)'

or set as the following within the scripts

#!/usr/bin/env -S flux python

import flux
# script that needs flux bindings