Comments (7)
Hi,
This code was only written to 1) demonstrate that writing python wrapper is relatively easy 2) support using an open62541 server in opcua-modeler https://github.com/FreeOpcUa/opcua-modeler. So it only exposes two methods start_server() and stop_server() NOTHING else
so it is currently only interesting for someone with good knowledge of python/C/Cython and might be outdated. If you want to use python look at the native python opcua implementation.
but yes, a cd command is missing as well as a complete command line (add =ON for example). Feel free to fix that
from open62541-python-deprecated.
Thanks, will do so. I was able to successfully compile open62541 but while running the setup.py script here, running into the below issue:
command: python setup.py build_ext --inplace
running build_ext
building 'open62541' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I../open62541/include -I../open62541/plugins -I../open62541/build/src_generated/ -I../open62541/deps -I../open62541/build -I/usr/include/python2.7 -c open62541.c -o build/temp.linux-x86_64-2.7/open62541.o
In file included from ../open62541/include/ua_types.h:19:0,
from ../open62541/include/ua_server.h:16,
from ../open62541/include/ua_plugin_network.h:12,
from open62541.c:640:
../open62541/build/src_generated/ua_config.h:92:29: fatal error: ua_architecture.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Can someone help me in addressing this? I was trying to see if i can write python wrappers for some of the C APIs just like the ones exposed under https://github.com/open62541/open62541-python/blob/master/open62541.pyx.
from open62541-python-deprecated.
Hello @oroulet,
Can you help me in getting the open62541 python module compiled? Thanks in advance...
from open62541-python-deprecated.
I updated README and could compile it. although I had to modify ../open62541/build/src_generated/ua_types_generated.h
@Pro it looks like the test at line 11 is wrong, I had to swicth else and then causes.....
@bvinodkumar2008 I used branch 0.3, there might be some changes in master... a patch is welcome for them
from open62541-python-deprecated.
Thanks @oroulet. I somehow missed your comment, will check with branch 0.3 today and let you know. Also, if it works for branch 0.3, will try to push a patch for master.
from open62541-python-deprecated.
Thanks @oroulet. I somehow missed your comment, will check with branch 0.3 today and let you know. Also, if it works for branch 0.3, will try to push a patch for master.
from open62541-python-deprecated.
Hi @oroulet ,
The git submodule udpate in the README.md step didn't work, i had to run git submodule update --init to get the submodules source code.
I still see the below error upon running python2.7 setup.py build_ext --inplace against branches 0.3 and tag 0.3-rc2 ( https://github.com/open62541/open62541):
running build_ext
building 'open62541' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I../open62541/include -I../open62541/plugins -I../open62541/build/src_generated/ -I../open62541/deps -I/usr/include/python2.7 -c open62541.c -o build/temp.linux-x86_64-2.7/open62541.o
In file included from ../open62541/include/ua_server.h:21:0,
from ../open62541/include/ua_plugin_network.h:16,
from open62541.c:641:
../open62541/build/src_generated/ua_types_generated.h:15:23: fatal error: open62541.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Observation on master branch ( https://github.com/open62541/open62541):**python setup.py build_ext --inplace**
Compiling open62541.pyx because it changed.
[1/1] Cythonizing open62541.pyx
/home/vkb1/.local/lib/python2.7/site-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/vkb1/opcua_repos/open62541-python/open62541.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
running build_ext
building 'open62541' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I../open62541/include -I../open62541/plugins -I../open62541/build/src_generated/ -I../open62541/deps -I/usr/include/python2.7 -c open62541.c -o build/temp.linux-x86_64-2.7/open62541.o
In file included from ../open62541/include/ua_types.h:19:0,
from ../open62541/include/ua_server.h:16,
from ../open62541/include/ua_plugin_network.h:12,
from open62541.c:639:
../open62541/build/src_generated/ua_config.h:92:29: fatal error: ua_architecture.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
from open62541-python-deprecated.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open62541-python-deprecated.