Experimental Physics and Industrial Control System
Hi,
In the
moment it is Python 2 only. The barrier is in both C extension and Python
source.
Because our standard scientif linux 5
comes with python2.4, and python 3 is not even in SL6. The python3 compatible
request is rather low on my side.
That said, I did
make a try to make it compile against python 3. I did not go futher than making
it compile. If that is definitely requested, I will try to finish
it.
The
above is only speaking about myself. It is important to have opinions
from Noboru Yamamoto-san.
Best,
Xiaoqiang
Dear Sir,
I am trying to compile CaChannel v1.6 using python-3.2 on linux x86-64. The
compilation gives following error. Does CaChannel supports python3 ?
Seeking suggestions and comments
Best regards,
Ritesh Sugandhi
command line output::
===============
$ python3 setup.py build
running build
running build_py
running build_ext
building '_ca' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -fPIC -DPYCA_VERSION="\"1.7\"" -DLinux -UW -UI -UT -UH -U_
-UT -UK -I/opt/codac-2.0/epics/base/include
-I/opt/codac-2.0/epics/base/include/os/Linux
-I/opt/codac-2.0/epics/base/include/os
-I/home/ITER/sugandr/Desktop/epics-python/Python-3.2/include/python3.2m -c
_ca314.cpp -o build/temp.linux-x86_64-3.2/_ca314.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
_ca314.cpp: In function \u2018void init_ca()\u2019:
_ca314.cpp:396: error: \u2018Py_InitModule\u2019 was not declared in this
scope
_ca314.cpp:404: error: \u2018PyString_FromString\u2019 was not declared in
this scope
_conv_helper.cpp: In function \u2018PyObject* _convert_ca_to_Python(chtype,
long unsigned int, void*, int)\u2019:
_conv_helper.cpp:242: error: \u2018PyString_FromString\u2019 was not
declared in this scope
_conv_helper.cpp:366: error: \u2018PyString_FromString\u2019 was not
declared in this scope
_ca314.cpp: In function \u2018PyObject* Py_ca_monitor(PyObject*,
PyObject*)\u2019:
_ca314.cpp:1479: error: \u2018PyCObject_FromVoidPtr\u2019 was not declared
in this scope
_ca314.cpp: In function \u2018PyObject* Py_ca_clear_monitor(PyObject*,
PyObject*)\u2019:
_ca314.cpp:1496: error: \u2018PyCObject_AsVoidPtr\u2019 was not declared in
this scope
_ca314.cpp: In function \u2018PyObject* Py_ca_name(PyObject*,
PyObject*)\u2019:
_ca314.cpp:1707: error: \u2018PyString_FromString\u2019 was not declared in
this scope
_ca314.cpp: In function \u2018PyObject* Py_dbf_text(PyObject*,
PyObject*)\u2019:
_ca314.cpp:1721: error: \u2018PyString_FromString\u2019 was not declared in
this scope
_ca314.cpp: In function \u2018PyObject* Py_dbr_text(PyObject*,
PyObject*)\u2019:
_ca314.cpp:1735: error: \u2018PyString_FromString\u2019 was not declared in
this scope
_ca314.cpp: At global scope:
_ca314.cpp:331: warning: \u2018void ca_context_destroy_wrapper()\u2019
defined but not used
error: command 'gcc' failed with exit status 1
$
- References:
- Question regarding CaChannel -v1.6 compilation using python-3.2 on linux 86-64 bit Ritesh Sugandhi
- Navigate by Date:
- Prev:
Question regarding CaChannel -v1.6 compilation using python-3.2 on linux 86-64 bit Ritesh Sugandhi
- Next:
How to know type of record at client end [Py-epics v3.1.1 interface ] Ritesh Sugandhi
- 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
2025
- Navigate by Thread:
- Prev:
Question regarding CaChannel -v1.6 compilation using python-3.2 on linux 86-64 bit Ritesh Sugandhi
- Next:
How to know type of record at client end [Py-epics v3.1.1 interface ] Ritesh Sugandhi
- 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
2025