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  2008  2009  2010  <20112012  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  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Question regarding CaChannel -v1.6 compilation using python-3.2 onlinux 86-64 bit
From: "Wang Xiaoqiang" <[email protected]>
To: "Ritesh Sugandhi" <[email protected]>, <[email protected]>
Cc: Di Maio Franck <[email protected]>
Date: Mon, 18 Apr 2011 12:24:00 +0200
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

From: [email protected] [mailto:[email protected]] On Behalf Of Ritesh Sugandhi
Sent: Monday, April 18, 2011 11:51 AM
To: [email protected]
Cc: Di Maio Franck
Subject: Question regarding CaChannel -v1.6 compilation using python-3.2 onlinux 86-64 bit

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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·