PLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. atroyas@phoenixcontact.es
  2. PLCnext Technology & PLCnext Controls
  3. Thursday, 06 February 2020

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

Frank PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

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


Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support

Song Yantao Accepted Answer Pending Moderation
0
Votes
Undo

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

 

 

songyantao@phoenixcontact.com.cn

Smart Technology Application Engineer-Phoenix Contact(China)

Song Yantao Accepted Answer Pending Moderation
0
Votes
Undo

ReadMe.pdf

 

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

songyantao@phoenixcontact.com.cn

Smart Technology Application Engineer-Phoenix Contact(China)

Frank PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

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


Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support

atroyas@phoenixcontact.es Accepted Answer Pending Moderation
0
Votes
Undo

Hello Jong,

thank you for your help!

I will try it and give here feedback about.

Thank you too @Frank.

Best Regards

Angel

Song Yantao Accepted Answer Pending Moderation
0
Votes
Undo

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 .

songyantao@phoenixcontact.com.cn

Smart Technology Application Engineer-Phoenix Contact(China)

  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.