Good morning,
How cool is that, by the time I wake up, the world-wide EPICS community in different timezones already solved the problem.
The PYTHON_CONFIG indeed needs to be included in the IOC build, as it needs to link to Python libraries. This may also be affected by different Python distributions and versions, Linux distributions don’t make it easier as they have different ways to support Python2 vs Python3. I’ll revisit the documentation at https://github.com/klemenv/PyDevice#adding-pydevice-support-to-ioc, but please suggest edits as I don’t have access to all Linux distributions.
— Klemen
> On Dec 8, 2021, at 7:19 AM, Josh Fiddler via Tech-talk <tech-talk at aps.anl.gov> wrote:
>
> Florian,
> As I received this email, I was just wondering about that. I had set it previously in the build for PyDevice itself but checking the docs a few times, didn’t think to set it also in the ioc CONFIG_SITE file. It now builds without error and the ioc runs.
>
> So, the long and short is that PYTHIN_CONFIG needs to be set globally or in CONFIG_SITE for both support and any IOC builds as well. maybe it should have been obvious but oh well.
>
> Josh
>
>
>
> On Wed, Dec 8, 2021 at 6:50 AM Florian Feldbauer <florian at ep1.ruhr-uni-bochum.de> wrote:
> Hey Josh,
>
> I checked once more your make output and found the line below right
> before the g++ call (which I overlooked earlier):
>
> > /bin/sh: 0: Illegal option --
>
> I made a small test on my setup (Debian 11, EPICS_BASE 7.0.5, python3.9)
> and I get this error when PYTHON_CONFIG is undefined.
>
> Where have you defined the PYTHON_CONFIG variable? It should be defined
> in configure/CONFIG_SITE of your IOC.
>
> HTH Florian
>
> --
> Ruhr-Universität Bochum
> AG der Experimentalphysik I
> Dr. Florian Feldbauer
> NB 2/131 / Fach 125
> Universitätsstr. 150
> D-44801 Bochum
>
> Office: NB 2/134
> Phone: (+49)234 / 32-23563
> Fax: (+49)234 / 32-14170
> https://paluma.ruhr-uni-bochum.de
>
- Replies:
- Re: [EXTERNAL] PyDevice and an IOC Ralph Lange via Tech-talk
- References:
- PyDevice and an IOC Josh Fiddler via Tech-talk
- Re: PyDevice and an IOC Florian Feldbauer via Tech-talk
- Re: PyDevice and an IOC Josh Fiddler via Tech-talk
- Re: PyDevice and an IOC Florian Feldbauer via Tech-talk
- Re: PyDevice and an IOC Josh Fiddler via Tech-talk
- Navigate by Date:
- Prev:
Re: PyDevice and an IOC Josh Fiddler via Tech-talk
- Next:
Re: Can single soft-IOC control multiple OMS SPI-MAXnet controllers? Mark Rivers via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
<2021>
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: PyDevice and an IOC Josh Fiddler via Tech-talk
- Next:
Re: [EXTERNAL] PyDevice and an IOC Ralph Lange via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
<2021>
2022
2023
2024
|