Registry / devops / dirac
library9.1.11pypypiunverified

DIRAC is an interware, a software framework for distributed computing, primarily used in scientific research for managing jobs, data, and resources across heterogeneous infrastructures like Grids and Clouds. As of version 9.1.6, it supports Python 3.11 and newer, with frequent patch releases addressing fixes and minor changes, and less frequent major updates introducing significant features and deployment considerations.

pip install dirac
INSTALL
IMPORT
SIG · DIRAC
D
dirac
devopspythonv9.1.11
Install
Import
Disk
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v? · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.920 runs
build_error
glibc
py 3.103.920 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Dirac
from DIRAC.Interfaces.API.Dirac import Dirac
import dirac
The main programmatic interface for client-side API interaction is typically accessed through `DIRAC.Interfaces.API.Dirac.Dirac`, not directly from a top-level `dirac` package.

This quickstart demonstrates how to import and initialize the main DIRAC programmatic client interface and retrieve the locally installed framework version. Note that full interaction with a DIRAC Grid requires a running DIRAC configuration server and proper authentication (e.g., an X.509 VOMS proxy) in your environment.

from DIRAC.Interfaces.API.Dirac import Dirac import os try: # Initialize the main DIRAC client interface dirac_client = Dirac() # Get the framework version (this is a local check and does not require a DIRAC server) version = dirac_client.getFrameworkVersion() print(f"DIRAC client initialized successfully. Framework Version: {version}") # For operations that require connecting to a DIRAC server (e.g., job submission, status checks), # you would typically need: # 1. A valid X.509 VOMS proxy initialized (e.g., `voms-proxy-init`) # 2. The DIRAC Configuration Server (CS) URL configured, usually via an environment variable # e.g., os.environ.get('DIRAC_CS_URL', 'https://example.com:8443/Configuration/Server') # Without a running CS and proper authentication, remote calls will fail. except Exception as e: print(f"Error initializing DIRAC client or getting version: {e}") print("Ensure 'dirac' package is installed and Python >= 3.11 is used.")
dirac --version
Debug
Known issues
breakingMajor database schema changes and Configuration Server updates are required for existing deployments upgrading to DIRAC 9.1.0 and 9.1.1. These changes include dropping and altering MySQL tables, and removing Configuration Server entries.
fix
Refer to the release notes and official documentation for specific MySQL commands and Configuration Server adjustments during upgrade.
affects: 9.1.0, 9.1.1
breakingDIRAC 9.x requires Python 3.11 or newer. Attempting to install or run with older Python versions (e.g., Python 3.10 or earlier) will lead to dependency resolution failures or runtime errors.
fix
Upgrade your Python environment to 3.11 or a newer compatible version.
affects: 9.x and later
gotchaDIRAC is a comprehensive distributed computing *framework*, not just a Python library. `pip install dirac` only provides client-side functionality and core components. A full DIRAC deployment requires extensive setup, including services, databases (e.g., MySQL), web interfaces, and specific configuration, which is significantly more complex than simple package installation.
fix
Consult the official DIRAC installation and deployment documentation for detailed instructions on setting up a full DIRAC infrastructure.
affects: All
gotchaInteracting with remote DIRAC services (e.g., submitting jobs, querying status) typically relies on X.509 VOMS proxies for user authentication and authorization. Expired or improperly initialized proxies (`voms-proxy-init`) are a frequent cause of 'permission denied' or authentication errors.
fix
Ensure you have a valid and unexpired VOMS proxy initialized in your environment before attempting to use DIRAC client tools that interact with remote services. The DIRAC_CS_URL environment variable might also be needed.
affects: All
breakingIn version 9.1.3, the CLI flag `--diracx-dist-dir` was replaced by `--diracx-src-dir` for certain deployment and CI-related scripts. Scripts or automation relying on the old flag will fail.
fix
Update scripts to use `--diracx-src-dir` instead of `--diracx-dist-dir`.
affects: 9.1.3
Upgrade
Version history
9.1.11latest on PyPI · released Jun 10, 2026
Audit
Dependencies
PythonrequiredDIRAC 9.x requires Python 3.11 or newer.
Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
dirac — pip install dirac · libregistry