[portland] Python COM and JMP

Schwartz, Dana A dana.a.schwartz at intel.com
Thu Oct 23 05:32:56 CEST 2008


I am trying to use Python to script the JMP application and I get some strange errors. I am a not a super experienced programmer in any language. I mostly work from examples I find on the internet, but I could not find the solution to this issue on google.

Here is my code:

[code]
from win32com.client import Dispatch

x  = Dispatch("JMP.Application")

x.Eval('dt=Open("//test.csv", End of Field(Comma), Labels(1))')

[/code]

Here is my error:


Traceback (most recent call last):
  File "M:/JMP_TEST_PYTHON.py", line 33, in <module>
    x.Eval('dt=Open("//ScriptHost-Prod/SHUser$/DASCHWAR/CAR_DEFECTS.csv", End of Field(Comma), Labels(1))')
  File "C:\Python25\lib\site-packages\win32com\client\dynamic.py", line 496, in __getattr__
    raise AttributeError, "%s.%s" % (self._username_, attr)
AttributeError: JMP.Application.Eval


Thanks for the help.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/portland/attachments/20081022/d9c9de81/attachment.htm>


More information about the Portland mailing list