How to build PyTango with tango 9.2.2
|
|
---|---|
Hi all I want to build PyTango with tango 9.2.2 ,but encountered some error I build PyTango as follow steps:
but build report error (see attached file), error seems related to the "src/boost/cpp/constants.cpp " file in PyTango directory in PyTango "src/boost/cpp/constants.cpp " file,
error: ‘API_MissedEvents’ was not declared in this scope It seems that can't get API_MissedEvents definition ,but it defined in "include/tango/tango_const.h " file in tango 9.2.2 install directory as :
in tango 8.1.2 , API_MissedEvents is defined as : #define API_MissedEvents "API_MissedEvents") . so i want to know current PyTango can build with Tango 9.2.2 ? any help appreciated |
|
|
---|---|
|
Hi Jimmy, Latest PyTango code can by found on github. If you want PyTango 9 you have to use the tango9 branch since the develop branch is still pointing to tango 8. Hope it helps, Tiago |
|
|
---|---|
Hi Jimmy, I am not the expert but I had the same need as you did for the Tango Virtual Machine and I did the following: - installed tango 9.2.2 - check out tango9 branch of PyTango from github (https://github.com/tango-cs/PyTango/tree/tango9) - built PyTango : - uninstalled PyTango8 to be sure I had only PyTango9The above steps worked for me and I have PyTango9 working on the Tango VM. Andy |
|
|
---|---|
Thanks TCoutinho, Andy I had build and install pytango9 on CentOS 7, but when import PyTango, it report error as :
error seems related to boost_python, but not sure! |
|
|
---|---|
Hi Jimmy, I built and tested PyTango9 with python2.7 and libboostpython_1.54. When I try to build it with python3 I get an error about a missing pyconfig.h from libboost. I must be missing something. I will try to fix this and let you know if I can build it for python3. Andy |
|
|
---|---|
|
Hi Jimmy, Have you installed boost-python for python 3? If so, maybe PyTango setup is mixing the libboost-python versions between python 2 and python 3. Different linux distributions handle libboost-python in different ways. I already handle debian like distributions in a particular way. Maybe I will have to do it for CentOS as well. Could you send me the contents of:
Thanks in advance |
|
|
---|---|
Hi, TCoutinho I am sure it's Red Hat boost-python's problem, because i installed pytango9 on ubuntu 14.04(tango 9.2.2, python 3.4.3, boost 1.55),all is ok! I install boost on CentOS 7 as : it will also install boost-devel and boost-python (ver 1.53)packages, but i am not sure boost-python is for python 2.x or python 3.xI will test boost 1.48 on CentOS 7, if I can find the problem i'll let you know! three month ago i install PyTango 8.1.6(from pypi) in Anaconda3, i have the same problem, so i doubt it's the boost-python's problem. |