-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python OPCUA package installation failed in Linux ARM32V7 #1516
Comments
use opcua-asyncio. python-opcua is not maintained anymore (And yes opcua-asyncio will work because it does not rely on lxml |
Adding |
Also you maybe will need rust to compile so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please read, before you post!
This is a BUG REPORT for issues in the existing code.
If you have general questions, code handling problems or ideas, please use the:
Discussionsboard: https://github.com/FreeOpcUa/python-opcua/discussions
or
Gitter-Channel: https://gitter.im/FreeOpcUa/python-opcua
To save some time, please provide us following informations, if possible:
Describe the bug
I am trying to create arm32v7 docker image to run on MOXA edge device. But each time I am try to build the image locally it failed. The image i used it is arm32v7/python:3.9.
To Reproduce
Steps to reproduce the behavior incl code.
`FROM arm32v7/python:3.10-slim-buster
RUN apt-get update
RUN apt-get install -y --no-install-recommends build-essential gcc libxml2-dev libxslt-dev
RUN apt-get install -y python3-lxml
RUN python3 -m venv /opt/venv
Make sure we use the virtualenv:
ENV PATH="/opt/venv/bin:$PATH"
ENV OPCUA_FILE_LOCATION "/opt/sinewaveDB"
ENV OPCUA_SERVER_IP "opc.tcp://192.168.1.2"
ENV OPCUA_SERVER_PORT "4840"
RUN pip3 install setuptools-rust
RUN STATIC_DEPS=true
RUN pip3 install lxml==3.4.2 --use-pep517
RUN pip3 install --upgrade pip
RUN pip3 install --upgrade asyncio
#RUN pip3 install cryptography
#RUN pip3 install azure-storage-blob
RUN pip3 install opcua
RUN pip3 install -r requirements.txt
ENTRYPOINT ["/opt/venv/bin/python3","./app.py"]
`
Expected behavior
I am trying to run opcua client so it reads PLC datas via opcua server. Normal docker container works fine without any error arm64 docker image also wroks without problem; only arm32v71 has issue running opcua.
Screenshots
it cannot build or install lxml package and I have the following error
Version
Python-Version:3.10
python-opcua Version latest (e.g. master branch, 0.9):
The text was updated successfully, but these errors were encountered: