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

  1. diwa130
  2. PLCnext Technology & PLCnext Controls
  3. Wednesday, 16 December 2020

I am trying to install confluent_kafka on PlcNext, but the pip installer returns errors like the following:

 

root@axcf2152:/opt/plcnext/projects/python# pip install confluent_kafka
Collecting confluent_kafka
Using cached confluent-kafka-1.5.0.tar.gz (97 kB)
Building wheels for collected packages: confluent-kafka
Building wheel for confluent-kafka (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/var/volatile/tmp/pip-install-nt7no48f/confluent-kafka/setup.py'"'"'; __file__='"'"'/var/volatile/tmp/pip-install-nt7no48f/confluent-kafka/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /var/volatile/tmp/pip-wheel-9j26t9z3
cwd: /var/volatile/tmp/pip-install-nt7no48f/confluent-kafka/
Complete output (47 lines):
running bdist_wheel
running build

[...]

creating build/temp.linux-armv7l-3.8/var/volatile/tmp/pip-install-nt7no48f/confluent-kafka/confluent_kafka/src
arm-pxc-linux-gnueabi-gcc -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/python3/3.8.2-r0=/usr/src/debug/python3/3.8.2-r0 -fdebug-prefix-map=/python3/3.8.2-r0=/usr/src/debug/python3/3.8.2-r0 -fdebug-prefix-map== -fdebug-prefix-map== -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/python3/3.8.2-r0=/usr/src/debug/python3/3.8.2-r0 -fdebug-prefix-map=/python3/3.8.2-r0=/usr/src/debug/python3/3.8.2-r0 -fdebug-prefix-map== -fdebug-prefix-map== -fPIC -I/usr/include/python3.8 -c /var/volatile/tmp/pip-install-nt7no48f/confluent-kafka/confluent_kafka/src/confluent_kafka.c -o build/temp.linux-armv7l-3.8/var/volatile/tmp/pip-install-nt7no48f/confluent-kafka/confluent_kafka/src/confluent_kafka.o
unable to execute 'arm-pxc-linux-gnueabi-gcc': No such file or directory
error: command 'arm-pxc-linux-gnueabi-gcc' failed with exit status 1

Any clues what's going on ? 

Thank You

Eduard PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hello diwa130,

I assume this is the same issue as in your following post:

https://www.plcnext-community.net/en/discussions-2-offcanvas/installing-arm-pxc-linux-gnueabi-gcc.html

You would like to compile the "confluent_kafka" project on the AXCF2152 target. 

My idea is still to first try to compile the project on the computer with the Linux system and then copy the compilation to AXCF2152.

 

Best Regards,

Eduard 

 


Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support

jan.mueller@phoenixcontact.de Accepted Answer Pending Moderation
0
Votes
Undo

Hi,

a way with a docker image will be easier at this point. You can find ready-made images for Arm and x86 on google, both official and user-assembled.

To install pip, setuptools and wheels it is best to build this from the python sources. You can find instructions here. https://packaging.python.org/tutorials/installing-packages/

Then you have a suitable version in any case. However, as mentioned by Eduard, you will quickly run into the problem that not all packages are available pre-build and you will need gcc.

 

I recommend Docker/Balena.

 

Greetings, 

Jan

  • Page :
  • 1


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