Comments (6)
spec says it should be there.
look at internal_server.py around line 49. default is to load address space
but you can comment it out or load it directly from xml (xml is in source
under schema directory) or even load a python dump file (generated by
runnning generate_address_space.py in schema dir)
let me know how it goes and how long each method take on a raspberry pi
On Mon, 5 Oct 2015 at 22:07 zerox1212 [email protected] wrote:
I'm trying to install python opcua on an Arduino Yun (python 2.7).
When I do this:
pip install -v freeopcua
All dependencies install ok, but when the installation reaches this point:
byte-compiling
/usr/lib/python2.7/site-packages/opcua/standard_address_space_part5.py to
standard_address_space_part5.pyc
It locks up. When I look at all the other "Standard_Address_Space" files
they are very small, but part 5 is large at 1.3mb.Is part 5 required for the OPCUA server to run? I really want to figure
out how to get this installed on my Yun.—
Reply to this email directly or view it on GitHub
#41.
from python-opcua.
Do you know if there is a way to stop setup.py (or is it pip?) from compiling the address space .py files to .pyc? I don't know how to manually install python opcua so that I can try what you mention above. Sorry I'm very new to this stuff. I suppose I can just manually copy all the files to "site-packages" folder?
from python-opcua.
p setup.py (or is it pip?) from compiling
might be tricky
but
git clone xxxxxxx/python-opcua
cd python.opcua
vi opcua/internal-server.py # to edit whatever you want
python example-server.py
and when you are happy
python setup.py install
hard to make it easier...
On Tue, 6 Oct 2015 at 00:38 zerox1212 [email protected] wrote:
Do you know if there is a way to stop setup.py (or is it pip?) from
compiling the address space .py files to .pyc? I don't know how to manually
install python opcua so that I can try what you mention above.—
Reply to this email directly or view it on GitHub
#41 (comment)
.
from python-opcua.
So I found out what was happening.
- pip can't install freeopcua because when byte compiling the file I mentioned the OS runs out of memory (Yun only has 64mb).
- I tried the modifications you mentioned, and the server tries to start, but again the OS runs out of memory.
I'll try my project on a Raspberry Pi or Beaglebone Black next and let you know. Thanks.
from python-opcua.
I just tested with raspberry pi version B and the server is slow to start but run fine without any changes with python2. using dump file should make startup much quicker
from python-opcua.
I just loaded up the example OPC UA server on Beaglebone black (Python 2.7). It takes about 10 or 15 seconds to start the server, but after that it looks OK. I was able to connect to it with an OPC UA test client no problem. This could be a great option for very robust data sharing between smart devices!
from python-opcua.
Related Issues (20)
- Getting "BadSecurityChecksFailed" every few minutes for constant read requests HOT 2
- Problem with set value in OPC UA S7-1200 HOT 7
- Unable to subscribe to datachange when using Datavalue
- UA-Client reconciliate subscription not working HOT 4
- Duplicate endpoint when restarting server
- Cannot get value from alias HOT 14
- python OPCUA package installation failed in Linux ARM32V7 HOT 4
- Continues connection to opc ua - kepserver, and flask rest api HOT 1
- Callback function or event to intercept a write request on server
- How to use method call in client with complex arguments HOT 14
- Transfer Subscription Request
- SourceTime Stamp Issue HOT 1
- My simple python server error
- Unable to change variable value to True HOT 12
- Writing variables to ABB IRC5 controller using set_value() function HOT 4
- AttributeError: 'bytearray' object has no attribute 'public_key' HOT 7
- Disconnection of server session after 1 minute-TimeoutError
- Timeout error
- How to get node value HOT 4
- Triggering DataChangeEvent Only When Variant Value Changes HOT 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 python-opcua.