Re: [Tutor] Import error in UNO

2008-02-06 Thread Chris Calloway
On Feb 6, 2008, at 5:23 AM, muhamed niyas wrote: I can import when i moved to the uno location. pls see the messages in the terminal. C:\>cd "Program Files\OpenOffice.org 2.0\program"\ C:\Program Files\OpenOffice.org 2.0\program>python Python 2.3.4 (#53, Feb 2 2006, 01:06:22) [MSC v.1310 32 b

Re: [Tutor] Import error in UNO

2008-02-06 Thread Alan Gauld
"muhamed niyas" <[EMAIL PROTECTED]> wrote >I can import when i moved to the uno location. > pls see the messages in the terminal. > > > C:\>cd "Program Files\OpenOffice.org 2.0\program"\ > C:\Program Files\OpenOffice.org 2.0\program>python > Python 2.3.4 (#53, Feb 2 2006, 01:06:22) [MSC v.1310 3

Re: [Tutor] Import error in UNO

2008-02-06 Thread muhamed niyas
I can import when i moved to the uno location. pls see the messages in the terminal. C:\>cd "Program Files\OpenOffice.org 2.0\program"\ C:\Program Files\OpenOffice.org 2.0\program>python Python 2.3.4 (#53, Feb 2 2006, 01:06:22) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "cred

Re: [Tutor] Import error in UNO

2008-02-06 Thread Alan Gauld
"muhamed niyas" <[EMAIL PROTECTED]> wrote import uno > > I am not getting the promt >>> after importing that. OK, That suggests a problem in the uno module itself. Yet ISTR you said you could import if you changed to the directory and ran Python there? Can you try that again just to confi

Re: [Tutor] Import error in UNO

2008-02-06 Thread muhamed niyas
When i import >>>import uno I am not getting the promt >>> after importing that. On Feb 6, 2008 2:29 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > > "muhamed niyas" <[EMAIL PROTECTED]> wrote > > > Thanks for your kind response. I tried to include the path > > 'C:\Program > > Files\OpenOffice.org

Re: [Tutor] Import error in UNO

2008-02-06 Thread Alan Gauld
"muhamed niyas" <[EMAIL PROTECTED]> wrote > Thanks for your kind response. I tried to include the path > 'C:\Program > Files\OpenOffice.org 2.0\program' in PYTHONPATH. but now i didnt get > any error message but its hanging while importing. Pls advice me to > correct > this. > What happens if

Re: [Tutor] Import error in UNO

2008-02-05 Thread muhamed niyas
Thanks for your kind response. I tried to include the path 'C:\Program Files\OpenOffice.org 2.0\program' in PYTHONPATH. but now i didnt get any error message but its hanging while importing. Pls advice me to correct this. On Feb 6, 2008 3:54 AM, Tiger12506 <[EMAIL PROTECTED]> wrote: > > "muhamed

Re: [Tutor] Import error in UNO

2008-02-05 Thread Tiger12506
> "muhamed niyas" <[EMAIL PROTECTED]> wrote > >> Also i set 'C:\Program Files\OpenOffice.org 2.0\program' in PATH >> evvironment >> variable. > > Close but not quite. > You need to set the module folder in your PYTHONPATH environment > variable. > > PATH is where the python interpreter lives >

Re: [Tutor] Import error in UNO

2008-02-05 Thread Alan Gauld
"muhamed niyas" <[EMAIL PROTECTED]> wrote > Also i set 'C:\Program Files\OpenOffice.org 2.0\program' in PATH > evvironment > variable. Close but not quite. You need to set the module folder in your PYTHONPATH environment variable. PATH is where the python interpreter lives PYTHONPATH is where

Re: [Tutor] Import error in UNO

2008-02-05 Thread Kent Johnson
muhamed niyas wrote: > Also i set 'C:\Program Files\OpenOffice.org 2.0\program' in PATH evvironment > variable. PYTHONPATH is the environment variable you need, it is one way to tell the interpreter where to look for imports. Kent ___ Tutor maillist -

[Tutor] Import error in UNO

2008-02-05 Thread muhamed niyas
Dear All, I have a problem while importing UNO module in my windows vista. Openoffice and its uno module is installed in D:\ drive and my application is running in C:\ drive. i can import uno in interactive mode while moving to 'D:\Program Files\OpenOffice 2.0\program' location. I am getting an er