Opcua pip3 package installation error

Hello. I’m trying to install pip3 opcua package. I use the command /opt/local/bin/pip3 install opcua. But it seems to fail the libxml2 and libxslt dependencies. (attached file with the errors) edit: I have installed libxml2 and libxslt dependencies with commands ipkg install libxml2 ipkg install libxslt but it does not solve the issue. How can I solve it? Best regards, Angel 2020 02 06 12 04 28 admin192.168.2.200

Hi Angel, I’ve did not had the time to try it directly, but I guess that the Python package you’re using were written in C (like many others, like numpy, are).

In that case they’ve to be compatible with our ARM32hf SDK, if not they’ve to be crosscompiled. I’ll spend mid of next week a bit time to test this… cu Frank

Hi ~ I am also working for this these days,And I worked out just 10 minutes ago . Can’t wait to tell you first ! As Frank said ,they’ve to be crosscompiled I crosscompiled lxml + cryptograph + cffi with SDK 2019.9 Then ‘pip install opcua’ can success (acutally only with lxml is enough for this step) The process of cross-compile is really complicated and maybe I will write some note (also with Numpy and Cython) next month (I don’t have time this month ,Hope you know what is happening in China now) Later I will share the ‘egg’ file which can only work on 2019.9。If you need other version,you’d better make it by yourself Here is a simple test: 1

ReadMe.pdf Upload *.rar file is limited in this blog,I will send you an Email

Hi Song, great description, I’ll walk through those steps in the next days. Would also be great if you could share your knowledge how to compile numpy next month.

I’m just starting with Python and those tips and tricks are highly appreciated. But most important is that you guys stay healthy over there ?! Cu Frank

Hello Jong, thank you for your help! I will try it and give here feedback about. Thank you too @Frank. Best Regards Angel

Dear Frank and Angel ,

Thank you for your sincere concern. We are all in good health but we must stay at home these days . Later I will share the Numpy egg for 2019.9,You can try it first ,just share me your E-mail. The process of how to cross-compile them is not easy,That spend me lots of time,so the note will also take some time,but when it finished ,I think people follow it can compile most of python packages with C @Angel If you really need opcua for 2020.0 at now,please let me know,I would make time to do it .

Hello @Song Yantao, I also have a same problem of atroyas@phoenixcontact.es. The error is make sure the development packages of libxml2 and libxslt are installed. Do you have any soluction for this problem? (We are using the 2020.6.1 version in PLC). Thanks for your support. Dino Rodrigo

Hi, with fw 2020.6 is docker perhaps an alternative? The python docker image contains all necessary dependencies or can be compiled. You have to install your program into the container. G Jan

hi @Song Yantao# can please share your note about the cross-compile process please? I’m struggling to compile pyzmq for the plateform :frowning: