Why do I get an import error on this?

2005-10-07 Thread Steve
I'm trying to run a Python program on Unix and I'm encountering some behavior I don't understand. I'm a Unix newbie, and I'm wondering if someone can help. I have a simple program: #! /home/fergs/python/bin/python import sys, os import cx_Oracle

Re: Why do I get an import error on this?

2005-10-07 Thread Ron Adam
Steve wrote: I'm trying to run a Python program on Unix and I'm encountering some behavior I don't understand. I'm a Unix newbie, and I'm wondering if someone can help. I have a simple program: #! /home/fergs/python/bin/python import sys, os

Re: Why do I get an import error on this?

2005-10-07 Thread Micah Elliott
On Oct 07, Steve wrote: I have a simple program: #! /home/fergs/python/bin/python import sys, os import cx_Oracle If I run it through the Python interpreter, this way: python test.py it

Re: Why do I get an import error on this?

2005-10-07 Thread Fredrik Lundh
Steve wrote: I'm trying to run a Python program on Unix and I'm encountering some behavior I don't understand. I'm a Unix newbie, and I'm wondering if someone can help. If I run it through the Python interpreter, this way: python test.py it runs fine. But if I try to run it as an

Re: Why do I get an import error on this?

2005-10-07 Thread Steve
I did which python and the two paths were different. Once I fixed the path in the script, it worked fine. Thanks Frederik and Micah! -- http://mail.python.org/mailman/listinfo/python-list