The use of the Python init script that comes with the environment modules rpm is not backwards compatible

Solution Unverified - Updated -

Issue

  • The use of the Python init script that comes with the environment modules rpm is not backwards compatible.
  • Users previously could use the following procedure to use module commands in python:
  • In shell:
export PYTHONPATH=/usr/share/Modules/init
  • In a python script:
import python
python.module('load intel')

Environment

  • Red Hat Enterprise Linux 6
  • environment-modules.x86_64 3.2.9c-4.el6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.