EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Problems getting the Python module to work
From: "J. Lewis Muir" <[email protected]>
To: [email protected]
Date: Wed, 06 Aug 2008 16:09:20 -0400
On 8/6/08 3:50 PM, Adam Kadzban wrote:
> That seems to have worked!  I just went into Python and did import
> EpicsCA, and it isn't complaining at all.  And ldd'ing the _epics.so
> files now says libca.so and libcom.so exist.  Thanks for all the help!

Hi, Adam.

Great!

> Here's what I did:
> adam:/usr/local/EpicsCA-2.1.5$ echo $LD_LIBRARY_PATH $EPICS_BASE
> /usr/local/lib/epics/base/lib/linux-x86_64 /usr/local/lib/epics/base
> adam:/usr/local/EpicsCA-2.1.5$ sudo python setup.py install
>   Warning: could not find environment variable EPICS_BASE
>            will try:  /usr/local/lib/epics/base

This warning could be because you're using sudo; it depends how sudo is
configured.  It could be that sudo is configured to clean all or part of
your environment and thus ends up not passing EPICS_BASE in the
environment it provides for the program it will run.  One way to test
this would be to do something like:

  sudo env EPICS_BASE=/usr/local/lib/epics/base python setup.py install

If that makes the warning message go away, you would need to decide on a
good way to get the correct environment to your python setup.py
invocation in sudo.  Of course, one way would be to use env like in the
test above, but perhaps also with LD_LIBRARY_PATH.  But since it seemed
to work for you, it's likely the sudo environment is getting your
LD_LIBRARY_PATH settings somehow.

-lewis

References:
Problems getting the Python module to work Adam Kadzban
Re: Problems getting the Python module to work Tim Mooney
Re: Problems getting the Python module to work John Hammonds
Re: Problems getting the Python module to work Adam Kadzban
Re: Problems getting the Python module to work Antonino Miceli
Re: Problems getting the Python module to work Adam Kadzban

Navigate by Date:
Prev: Re: Problems getting the Python module to work Adam Kadzban
Next: Build Question David Dudley
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Problems getting the Python module to work Adam Kadzban
Next: RE: Problems getting the Python module to work Matt Newville
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·