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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content