From: DEEPAK P. /EXT/BILLJ/B. <dee...@bi...> - 2002-11-26 14:31:09
|
i am trying to execute a .py file using PythonInterpreter and the python file contains the following code import one name =3D one.foo() print name one.py is a simple file with few validations but when i execute the file from java=20 PythonInterpreter pyint =3D new PythonInterpreter(); pyint.execfile("C:\\0000\\others\\scripts\\tESTING\\scripts\ \Upload\\billuploadscr.py"); PyObject obj =3D pyint.get("name"); it gives me following error Traceback (innermost last): File "C:\0000\others\scripts\tESTING\scripts\Upload\billuploadscr .py", line 1, in ? ImportError: no module named one Exception in thread "main"=20 Process completed. what could be the problem??? =09=09 --=20 "This e-mail message may contain confidential, proprietary or legally privi= leged information. It=20 should not be used by anyone who is not the original intended recipient. If= you have erroneously=20 received this message, please delete it immediately and notify the sender. = The recipient=20 acknowledges that ICICI Bank or its subsidiaries and associated companies, = (collectively "ICICI=20 Group"), are unable to exercise control or ensure or guarantee the integrit= y of/over the contents of the information contained in e-mail transmissions= and further acknowledges that any views=20 expressed in this message are those of the individual sender and no binding= nature of the message shall be implied or assumed unless the sender does s= o expressly with due authority of ICICI Group.Before opening any attachment= s please check them for viruses and defects."=20 |