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

  1. dinosilva95
  2. Container @ PLCnext (Docker, Moby, balena)
  3. Tuesday, 15 December 2020

Good evening,

I have a project, in which I need to run the opencv on the AXC F 2152.

We are already running in a container (used in this tutorial , it is opencv running on python2.

There is some container for this plc that has opencv in python3?

Or how to use, the same variables in PLCnextengineer and python2?


PS: I need in python 3 because I need communicate with PyPLCn.

PS2: I tried to install python-opcua to try to use python2 in communication, but I couldn't (apparently there is an error in the installation due to lack of ram).



Dino Silva Accepted Answer Pending Moderation



You can install python3 in the image. Simply create a new image with the image and a docker file. It is a debian jessi, so python3 would be version 3.4.x
For building a image you need Docker, Belena is not possible.



FROM pxcbe/opencv-python

RUN apt-get update
RUN apt-get install python3 -y --force-yes


For build: 

docker build -t myname:version -f dockerfile
Martin PLCnext Team Accepted Answer Pending Moderation

Out of interest, why is it not possible to build an image using Balena?

In this tutorial:

... the balena build command is used (in step 4) to create an image.

What am I missing?

~ Martin.

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support Accepted Answer Pending Moderation


I still had in mind that the build tools are not available with Balena. Either I'm confusing things or something has changed.

Right now I'm confused in my head :).


Then of course Balena works too.

G Jan

  • Page :
  • 1

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