About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: 21 November 2006

URL: http://cxc.harvard.edu/ciao3.4/bugs/module_conflicts.html
Hardcopy (PDF): A4 | Letter

Bugs: S-Lang Module Conflicts


Caveats

  1. Duplicate Definition error due to namespace conflict

Bugs

  1. Importing certain combinations of modules causes problems
    (Mac OS X)


Caveats

  1. Duplicate Definition error due to namespace conflict

    Importing the isis module in Sherpa or importing both isis and sherpa in ChIPS or slsh will produce a Duplicate Definition error. The problem arises because some function names (e.g. set_axes) are common to both modules. The issue appears only when isis is imported into the global namespace (i.e. import("isis")).

    Note that this is not a bug but rather the expected behavior of the S-Lang interpreter when encountering duplicate definitions for intrinsic functions.

    Workaround:

    Import isis into a local namespace: import("isis","foo").


Bugs

  1. Importing certain combinations of modules causes problems
    (Mac OS X)

    The following table lists the problems, the S-Lang interpreter(s) to which they apply, and suggested workarounds:

    Module Interpreter Problem Workaround
    sherpa with pixlib or caldb; isis with chips or varmm ChIPS, slsh A list of "undefined symbols" is printed at exit from the interpreter. The error occurs only at exit and has no effect on the preceding session. None
Hardcopy (PDF): A4 | Letter
Last modified: 21 November 2006


The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.