help running python in a limited interpreted environment

Mike burnettmn at ornl.gov
Thu Dec 2 15:27:30 EST 2004


We have a large c++ program that runs under Windows NT Embedded to
control an instrument.  That program has been written to run external
python scripts.  The computer where this code runs does not and cannot
have a full python installation.  It ONLY has the pythonNN.dll file
that comes with a full python installation.

For simple scripts that do not import external modules, this works just
fine.

For more complex scripts that require imported external modules, the
called modules (.py) have been placed on the computer in the same
folder as the calling script.  However, when the calling scripts run,
we get the error message:

AttributeError: 'module' object has no attribute 'xxx'

We know the calling script finds the necessary modules, and the
attribute clearly appears in the module's .py file.

Can anyone tell me what the problem is or if what we're trying to do is
not possible?  Is there something in addition to the .dll that needs to
be present?

Thanks.




More information about the Python-list mailing list