Giter Site home page Giter Site logo

Comments (6)

oroulet avatar oroulet commented on August 22, 2024

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.

zerox1212 avatar zerox1212 commented on August 22, 2024

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.

oroulet avatar oroulet commented on August 22, 2024

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.

zerox1212 avatar zerox1212 commented on August 22, 2024

So I found out what was happening.

  1. pip can't install freeopcua because when byte compiling the file I mentioned the OS runs out of memory (Yun only has 64mb).
  2. 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.

oroulet avatar oroulet commented on August 22, 2024

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.

zerox1212 avatar zerox1212 commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.