Re: How to incorporate environment from with python.

2020-03-22 Thread Chris Angelico
On Mon, Mar 23, 2020 at 3:24 AM Peter Otten <__pete...@web.de> wrote: > > Antoon Pardon wrote: > > > I think I can best explain what I want by showing two bash sessions: > > > Python 2.6.4 (r264:75706, Sep 9 2015, 15:05:38) [C] on sunos5 > > ImportError: No module named cx_Oracle > > > Python

Re: How to incorporate environment from with python.

2020-03-22 Thread Peter J. Holzer
On 2020-03-22 16:04:59 +0100, Antoon Pardon wrote: > $ /opt/csw/bin/python > Python 2.6.4 (r264:75706, Sep 9 2015, 15:05:38) [C] on sunos5 > Type "help", "copyright", "credits" or "license" for more information. Hmm. Solaris > As you can see the import works in the second session because I >

Re: How to incorporate environment from with python.

2020-03-22 Thread DL Neil via Python-list
On 23/03/20 4:04 AM, Antoon Pardon wrote: I think I can best explain what I want by showing two bash sessions: Session 1) -- $ /opt/csw/bin/python Python 2.6.4 (r264:75706, Sep 9 2015, 15:05:38) [C] on sunos5 Type "help", "copyright", "credits" or "license" for more information.

Re: How to incorporate environment from with python.

2020-03-22 Thread Peter Otten
Antoon Pardon wrote: > I think I can best explain what I want by showing two bash sessions: > Python 2.6.4 (r264:75706, Sep 9 2015, 15:05:38) [C] on sunos5 > ImportError: No module named cx_Oracle > Python 2.6.7 (r267:88850, Feb 10 2012, 01:39:24) [C] on sunos5 import cx_Oracle > As

How to incorporate environment from with python.

2020-03-22 Thread Antoon Pardon
I think I can best explain what I want by showing two bash sessions: Session 1) -- $ /opt/csw/bin/python Python 2.6.4 (r264:75706, Sep 9 2015, 15:05:38) [C] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import cx_Oracle Traceback (most recent call