[Beremiz-devel] running Beremiz runtime on embedded linux ARM architecture, Error: no module name Pyro.core

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

[Beremiz-devel] running Beremiz runtime on embedded linux ARM architecture, Error: no module name Pyro.core

Erfan
Hi

I'm trying to execute beremize_service.py runtime on my embedded arm device.

I'm using Buildroot to make the cross toolchain, filesystem and etc

by following the instructions provided in <a href="https://bitbucket.org/automforge/beremiz/wiki/Build%20minimal%20Beremiz%20runtime%20with%20Buildroot">this</a> link (by Andrey Skvortsov) I created all the required python scripts were mentioned in it.

I also have enabled the python-pyro package in the Buildroot

but when I try to run the Beremiz_service.py the following error appears :

Traceback (most recent call last):
  File "./Beremiz_service.py", line 36, in <module>
    import Pyro.core as pyro
ImportError: No module named Pyro.core


here is some info of my embedded Linux :

-----------------------------------
find / -name *pyro*

/usr/bin/pyro-wxnsc
/usr/bin/pyro-es
/usr/bin/pyro-ns
/usr/bin/pyro-esd
/usr/bin/pyro-nsc
/usr/bin/pyro-nsd
/usr/bin/pyro-xnsc
/usr/bin/pyro-genguid
-----------------------------------
ls /usr/lib/python2.7/site-packages/

README       zeroconf.py
-----------------------------------
ls /root/beremiz/

Beremiz_service.py  runtime             util
-----------------------------------
ls /root/beremiz/runtime/

Beremiz_service.py   WampClient.py        webinterface.js
NevowServer.py       __init__.py          xenomai.py
PLCObject.py         loglevels.py
ServicePublisher.py  typemapping.py
-----------------------------------
ls /root/beremiz/util/

BitmapLibrary.py        ProcessLogger.py        misc.py
ExceptionHandler.py     TranslationCatalogs.py  paths.py
MiniTextControler.py    __init__.py
-----------------------------------
python --version
Python 2.7.8
-----------------------------------
uname -a
Linux buildroot 3.10.20 #3 Mon Dec 12 20:17:55 EET 2016 armv5tejU/Linux
-----------------------------------


Best regards
Erfan Yousefian

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
skv
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] running Beremiz runtime on embedded linux ARM architecture, Error: no module name Pyro.core

skv
Administrator
Hi Erfan,

On 18-08-21 18:42, erfan you wrote:

> Hi
>
> I'm trying to execute beremize_service.py runtime on my embedded arm device.
>
> I'm using Buildroot to make the cross toolchain, filesystem and etc
>
> by following the instructions provided in <a href="
> https://bitbucket.org/automforge/beremiz/wiki/Build%20minimal%20Beremiz%20runtime%20with%20Buildroot">this</a>
> link (by Andrey Skvortsov) I created all the required python scripts were
> mentioned in it.
>
> I also have enabled the python-pyro package in the Buildroot
>
> but when I try to run the Beremiz_service.py the following error appears :
>
> Traceback (most recent call last):
>   File "./Beremiz_service.py", line 36, in <module>
>     import Pyro.core as pyro
> ImportError: No module named Pyro.core
Pyro module is certainly missing.


> here is some info of my embedded Linux :
>
> -----------------------------------
> find / -name *pyro*
>
> /usr/bin/pyro-wxnsc
> /usr/bin/pyro-es
> /usr/bin/pyro-ns
> /usr/bin/pyro-esd
> /usr/bin/pyro-nsc
> /usr/bin/pyro-nsd
> /usr/bin/pyro-xnsc
> /usr/bin/pyro-genguid
> -----------------------------------
> ls /usr/lib/python2.7/site-packages/
>
> README       zeroconf.py

Here is my output:

developer@ST-37:~/WorkData/PLC/buildroot/buildroot (git)-[master] $ cat .config | grep -i pyro
BR2_PACKAGE_PYTHON_PYRO=y
# BR2_PACKAGE_PYTHON_PYROUTE2 is not set

developer@ST-37:~/WorkData/PLC/buildroot/buildroot (git)-[master] $ find output/target/ | grep -i pyro
output/target/usr/lib/python2.7/site-packages/Pyro
output/target/usr/lib/python2.7/site-packages/Pyro/xnsc.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/errors.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/constants.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/naming.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/util.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/nsc.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/wxnsc.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/test
output/target/usr/lib/python2.7/site-packages/Pyro/test/echoserver.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/test/__init__.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/__init__.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/ext
output/target/usr/lib/python2.7/site-packages/Pyro/ext/BasicNTService.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/ext/remote.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/ext/__init__.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/ext/ES_NtService.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/ext/remote_nons.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/ext/ServiceTest.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/ext/daemonizer.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/ext/NS_NtService.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/protocol.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/configuration.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/util2.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/core.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/EventService
output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Server.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Event.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/EventService/__init__.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Clients.pyc
output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info
output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/SOURCES.txt
output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/PKG-INFO
output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/dependency_links.txt
output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/top_level.txt
output/target/usr/bin/pyro-nsc
output/target/usr/bin/pyro-genguid
output/target/usr/bin/pyro-es
output/target/usr/bin/pyro-xnsc
output/target/usr/bin/pyro-ns
output/target/usr/bin/pyro-esd
output/target/usr/bin/pyro-nsd
output/target/usr/bin/pyro-wxnsc


As you see I *do* have python-pyro package in my rootfs.

> -----------------------------------
> ls /root/beremiz/
>
> Beremiz_service.py  runtime             util
> -----------------------------------
> ls /root/beremiz/runtime/
>
> Beremiz_service.py   WampClient.py        webinterface.js
> NevowServer.py       __init__.py          xenomai.py
> PLCObject.py         loglevels.py
> ServicePublisher.py  typemapping.py
> -----------------------------------
> ls /root/beremiz/util/
>
> BitmapLibrary.py        ProcessLogger.py        misc.py
> ExceptionHandler.py     TranslationCatalogs.py  paths.py
> MiniTextControler.py    __init__.py
> -----------------------------------
> python --version
> Python 2.7.8
> -----------------------------------
> uname -a
> Linux buildroot 3.10.20 #3 Mon Dec 12 20:17:55 EET 2016 armv5tejU/Linux
> -----------------------------------
>
>
> Best regards
> Erfan Yousefian

--
Best regards,
Andrey Skvortsov

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] running Beremiz runtime on embedded linux ARM architecture, Error: no module name Pyro.core

Erfan
Hi Andrej

Thank you for your help.
I checked your output list and found out that I was missing lots of necessary packages.
I went through the Buildroot's "make menuconfig" and target packages, but I was not able to find those packages. My Buildroot version is a little outdated. It is 2014 :O, so I checked the 2018 version and It had all the required packages. It took me a while to move all my settings from 2014 to 2018 and making the cross-toolchain and other packges. Finally, I copied all the new packages to my target board and the previous errors are now gone. But, I have some new issues. 
Here is the content of /usr/lib/python2.7/site-packages/ directory on the target board :

/usr/lib/python2.7/site-packages/
/usr/lib/python2.7/site-packages/autobahn
/usr/lib/python2.7/site-packages/autobahn/test
/usr/lib/python2.7/site-packages/autobahn/test/__init__.pyc
/usr/lib/python2.7/site-packages/autobahn/test/test_util.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp
/usr/lib/python2.7/site-packages/autobahn/wamp/component.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/test
/usr/lib/python2.7/site-packages/autobahn/wamp/test/test_cryptosign.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/test/test_protocol.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/test/test_message.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/test/test_websocket.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/test/test_serializer.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/test/test_uri_pattern.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/test/test_user_handler_errors.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/test/__init__.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/test/test_runner.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/test/test_exception.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/test/test_protocol_peer.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/test/test_auth.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/test/test_component.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/protocol.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/request.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/websocket.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/cryptosign.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/types.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/cryptobox.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/__init__.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/serializer.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/message.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/uri.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/exception.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/auth.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/interfaces.pyc
/usr/lib/python2.7/site-packages/autobahn/wamp/role.pyc
/usr/lib/python2.7/site-packages/autobahn/asyncio
/usr/lib/python2.7/site-packages/autobahn/asyncio/component.pyc
/usr/lib/python2.7/site-packages/autobahn/asyncio/websocket.pyc
/usr/lib/python2.7/site-packages/autobahn/asyncio/__init__.pyc
/usr/lib/python2.7/site-packages/autobahn/asyncio/rawsocket.pyc
/usr/lib/python2.7/site-packages/autobahn/asyncio/wamp.pyc
/usr/lib/python2.7/site-packages/autobahn/asyncio/util.pyc
/usr/lib/python2.7/site-packages/autobahn/twisted
/usr/lib/python2.7/site-packages/autobahn/twisted/component.pyc
/usr/lib/python2.7/site-packages/autobahn/twisted/forwarder.pyc
/usr/lib/python2.7/site-packages/autobahn/twisted/websocket.pyc
/usr/lib/python2.7/site-packages/autobahn/twisted/cryptosign.pyc
/usr/lib/python2.7/site-packages/autobahn/twisted/__init__.pyc
/usr/lib/python2.7/site-packages/autobahn/twisted/resource.pyc
/usr/lib/python2.7/site-packages/autobahn/twisted/choosereactor.pyc
/usr/lib/python2.7/site-packages/autobahn/twisted/rawsocket.pyc
/usr/lib/python2.7/site-packages/autobahn/twisted/wamp.pyc
/usr/lib/python2.7/site-packages/autobahn/twisted/util.pyc
/usr/lib/python2.7/site-packages/autobahn/__init__.pyc
/usr/lib/python2.7/site-packages/autobahn/_version.pyc
/usr/lib/python2.7/site-packages/autobahn/websocket
/usr/lib/python2.7/site-packages/autobahn/websocket/compress_bzip2.pyc
/usr/lib/python2.7/site-packages/autobahn/websocket/utf8validator.pyc
/usr/lib/python2.7/site-packages/autobahn/websocket/test
/usr/lib/python2.7/site-packages/autobahn/websocket/test/test_protocol.pyc
/usr/lib/python2.7/site-packages/autobahn/websocket/test/test_websocket.pyc
/usr/lib/python2.7/site-packages/autobahn/websocket/test/__init__.pyc
/usr/lib/python2.7/site-packages/autobahn/websocket/test/test_websocket_url.pyc
/usr/lib/python2.7/site-packages/autobahn/websocket/protocol.pyc
/usr/lib/python2.7/site-packages/autobahn/websocket/types.pyc
/usr/lib/python2.7/site-packages/autobahn/websocket/compress_snappy.pyc
/usr/lib/python2.7/site-packages/autobahn/websocket/__init__.pyc
/usr/lib/python2.7/site-packages/autobahn/websocket/compress_deflate.pyc
/usr/lib/python2.7/site-packages/autobahn/websocket/compress_base.pyc
/usr/lib/python2.7/site-packages/autobahn/websocket/xormasker.pyc
/usr/lib/python2.7/site-packages/autobahn/websocket/interfaces.pyc
/usr/lib/python2.7/site-packages/autobahn/websocket/util.pyc
/usr/lib/python2.7/site-packages/autobahn/websocket/compress.pyc
/usr/lib/python2.7/site-packages/autobahn/rawsocket
/usr/lib/python2.7/site-packages/autobahn/rawsocket/test
/usr/lib/python2.7/site-packages/autobahn/rawsocket/test/test_rawsocket_url.pyc
/usr/lib/python2.7/site-packages/autobahn/rawsocket/test/__init__.pyc
/usr/lib/python2.7/site-packages/autobahn/rawsocket/__init__.pyc
/usr/lib/python2.7/site-packages/autobahn/rawsocket/util.pyc
/usr/lib/python2.7/site-packages/autobahn/util.pyc
/usr/lib/python2.7/site-packages/Pyro
/usr/lib/python2.7/site-packages/Pyro/ext
/usr/lib/python2.7/site-packages/Pyro/ext/ES_NtService.pyc
/usr/lib/python2.7/site-packages/Pyro/ext/BasicNTService.pyc
/usr/lib/python2.7/site-packages/Pyro/ext/NS_NtService.pyc
/usr/lib/python2.7/site-packages/Pyro/ext/ServiceTest.pyc
/usr/lib/python2.7/site-packages/Pyro/ext/__init__.pyc
/usr/lib/python2.7/site-packages/Pyro/ext/daemonizer.pyc
/usr/lib/python2.7/site-packages/Pyro/ext/remote.pyc
/usr/lib/python2.7/site-packages/Pyro/ext/remote_nons.pyc
/usr/lib/python2.7/site-packages/Pyro/test
/usr/lib/python2.7/site-packages/Pyro/test/echoserver.pyc
/usr/lib/python2.7/site-packages/Pyro/test/__init__.pyc
/usr/lib/python2.7/site-packages/Pyro/protocol.pyc
/usr/lib/python2.7/site-packages/Pyro/protocol.pyo
/usr/lib/python2.7/site-packages/Pyro/core.pyc
/usr/lib/python2.7/site-packages/Pyro/core.pyo
/usr/lib/python2.7/site-packages/Pyro/xnsc.pyc
/usr/lib/python2.7/site-packages/Pyro/xnsc.pyo
/usr/lib/python2.7/site-packages/Pyro/constants.pyc
/usr/lib/python2.7/site-packages/Pyro/constants.pyo
/usr/lib/python2.7/site-packages/Pyro/wxnsc.pyc
/usr/lib/python2.7/site-packages/Pyro/wxnsc.pyo
/usr/lib/python2.7/site-packages/Pyro/naming.pyc
/usr/lib/python2.7/site-packages/Pyro/naming.pyo
/usr/lib/python2.7/site-packages/Pyro/configuration.pyc
/usr/lib/python2.7/site-packages/Pyro/configuration.pyo
/usr/lib/python2.7/site-packages/Pyro/__init__.pyc
/usr/lib/python2.7/site-packages/Pyro/__init__.pyo
/usr/lib/python2.7/site-packages/Pyro/EventService
/usr/lib/python2.7/site-packages/Pyro/EventService/Clients.pyc
/usr/lib/python2.7/site-packages/Pyro/EventService/Event.pyc
/usr/lib/python2.7/site-packages/Pyro/EventService/__init__.pyc
/usr/lib/python2.7/site-packages/Pyro/EventService/Server.pyc
/usr/lib/python2.7/site-packages/Pyro/errors.pyc
/usr/lib/python2.7/site-packages/Pyro/errors.pyo
/usr/lib/python2.7/site-packages/Pyro/util2.pyc
/usr/lib/python2.7/site-packages/Pyro/util2.pyo
/usr/lib/python2.7/site-packages/Pyro/nsc.pyc
/usr/lib/python2.7/site-packages/Pyro/nsc.pyo
/usr/lib/python2.7/site-packages/Pyro/util.pyc
/usr/lib/python2.7/site-packages/Pyro/util.pyo
/usr/lib/python2.7/site-packages/enum
/usr/lib/python2.7/site-packages/enum/doc
/usr/lib/python2.7/site-packages/enum/doc/enum.pdf
/usr/lib/python2.7/site-packages/enum/doc/enum.rst
/usr/lib/python2.7/site-packages/enum/test.pyc
/usr/lib/python2.7/site-packages/enum/LICENSE
/usr/lib/python2.7/site-packages/enum/__init__.pyc
/usr/lib/python2.7/site-packages/enum/README
/usr/lib/python2.7/site-packages/netifaces.so
/usr/lib/python2.7/site-packages/six.pyc
/usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info
/usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/twisted
/usr/lib/python2.7/site-packages/twisted/plugins
/usr/lib/python2.7/site-packages/twisted/plugins/autobahn_twistd.pyc
/usr/lib/python2.7/site-packages/twisted/plugins/autobahn_endpoints.pyc
/usr/lib/python2.7/site-packages/twisted/internet
/usr/lib/python2.7/site-packages/twisted/internet/serialport.pyc
/usr/lib/python2.7/site-packages/twisted/internet/task.pyc
/usr/lib/python2.7/site-packages/twisted/internet/wxreactor.pyc
/usr/lib/python2.7/site-packages/twisted/internet/asyncioreactor.pyc
/usr/lib/python2.7/site-packages/twisted/internet/protocol.pyc
/usr/lib/python2.7/site-packages/twisted/internet/udp.pyc
/usr/lib/python2.7/site-packages/twisted/internet/gtk2reactor.pyc
/usr/lib/python2.7/site-packages/twisted/internet/_producer_helpers.pyc
/usr/lib/python2.7/site-packages/twisted/internet/_sslverify.pyc
/usr/lib/python2.7/site-packages/twisted/internet/process.pyc
/usr/lib/python2.7/site-packages/twisted/internet/_signals.pyc
/usr/lib/python2.7/site-packages/twisted/internet/_baseprocess.pyc
/usr/lib/python2.7/site-packages/twisted/internet/_glibbase.pyc
/usr/lib/python2.7/site-packages/twisted/internet/stdio.pyc
/usr/lib/python2.7/site-packages/twisted/internet/kqreactor.pyc
/usr/lib/python2.7/site-packages/twisted/internet/glib2reactor.pyc
/usr/lib/python2.7/site-packages/twisted/internet/epollreactor.pyc
/usr/lib/python2.7/site-packages/twisted/internet/win32eventreactor.pyc
/usr/lib/python2.7/site-packages/twisted/internet/wxsupport.pyc
/usr/lib/python2.7/site-packages/twisted/internet/main.pyc
/usr/lib/python2.7/site-packages/twisted/internet/inotify.pyc
/usr/lib/python2.7/site-packages/twisted/internet/address.pyc
/usr/lib/python2.7/site-packages/twisted/internet/tcp.pyc
/usr/lib/python2.7/site-packages/twisted/internet/posixbase.pyc
/usr/lib/python2.7/site-packages/twisted/internet/reactor.pyc
/usr/lib/python2.7/site-packages/twisted/internet/unix.pyc
/usr/lib/python2.7/site-packages/twisted/internet/pollreactor.pyc
/usr/lib/python2.7/site-packages/twisted/internet/gtk3reactor.pyc
/usr/lib/python2.7/site-packages/twisted/internet/__init__.pyc
/usr/lib/python2.7/site-packages/twisted/internet/threads.pyc
/usr/lib/python2.7/site-packages/twisted/internet/_posixstdio.pyc
/usr/lib/python2.7/site-packages/twisted/internet/cfreactor.pyc
/usr/lib/python2.7/site-packages/twisted/internet/defer.pyc
/usr/lib/python2.7/site-packages/twisted/internet/base.pyc
/usr/lib/python2.7/site-packages/twisted/internet/_idna.pyc
/usr/lib/python2.7/site-packages/twisted/internet/endpoints.pyc
/usr/lib/python2.7/site-packages/twisted/internet/_newtls.pyc
/usr/lib/python2.7/site-packages/twisted/internet/_resolver.pyc
/usr/lib/python2.7/site-packages/twisted/internet/ssl.pyc
/usr/lib/python2.7/site-packages/twisted/internet/_dumbwin32proc.pyc
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/udp.pyc
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/setup.pyc
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/winsock_pointers.c
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/winsock_pointers.h
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/wsasend.pxi
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/wsarecv.pxi
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/acceptex.pxi
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/iocpsupport.pyx
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/connectex.pxi
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/notes.txt
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/tcp.pyc
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/reactor.pyc
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/__init__.pyc
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/const.pyc
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/build.bat
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/abstract.pyc
/usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/interfaces.pyc
/usr/lib/python2.7/site-packages/twisted/internet/tksupport.pyc
/usr/lib/python2.7/site-packages/twisted/internet/_win32serialport.pyc
/usr/lib/python2.7/site-packages/twisted/internet/_win32stdio.pyc
/usr/lib/python2.7/site-packages/twisted/internet/selectreactor.pyc
/usr/lib/python2.7/site-packages/twisted/internet/_posixserialport.pyc
/usr/lib/python2.7/site-packages/twisted/internet/default.pyc
/usr/lib/python2.7/site-packages/twisted/internet/fdesc.pyc
/usr/lib/python2.7/site-packages/twisted/internet/error.pyc
/usr/lib/python2.7/site-packages/twisted/internet/pyuisupport.pyc
/usr/lib/python2.7/site-packages/twisted/internet/_pollingfile.pyc
/usr/lib/python2.7/site-packages/twisted/internet/_threadedselect.pyc
/usr/lib/python2.7/site-packages/twisted/internet/gireactor.pyc
/usr/lib/python2.7/site-packages/twisted/internet/abstract.pyc
/usr/lib/python2.7/site-packages/twisted/internet/utils.pyc
/usr/lib/python2.7/site-packages/twisted/internet/interfaces.pyc
/usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info
/usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/zip-safe
/usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/zeroconf.pyc
/usr/lib/python2.7/site-packages/README
/usr/lib/python2.7/site-packages/zeroconf.py
/usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info
/usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/not-zip-safe
/usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/requires.txt
/usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info
/usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/dependency_links.txt


when I run the Beremiz_service.py script with the fallowing command I get this error : 
Beremiz# python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1 ~/Beremiz/beremiz_workdir
Twisted unavailable.

Traceback (most recent call last):
  File "Beremiz_service.py", line 645, in <module>
    pyroserver.Loop()
  File "Beremiz_service.py", line 424, in Loop
    self.daemon = pyro.Daemon(host=self.ip_addr, port=self.port)
  File "usr/lib/python2.7/site-packages/Pyro/core.py", line 577, in __init__
DaemonError: Couldn't start Pyro daemon: [Errno 99] Cannot assign requested adds


I'm guessing maybe this is because of my eth0 configuration settings. eth0 is configured manually by this script:


ifconfig eth0 down
ifconfig eth0 192.168.2.100 netmask 255.255.255.0 up
ifconfig eth0
route -n
route add default gw 192.168.2.1
route -n



I really appreciate your time and guidance

All the best,
Erfan Yousefian


On Tue, Aug 21, 2018 at 7:07 PM Andrey Skvortsov <[hidden email]> wrote:
Hi Erfan,

On 18-08-21 18:42, erfan you wrote:
> Hi
>
> I'm trying to execute beremize_service.py runtime on my embedded arm device.
>
> I'm using Buildroot to make the cross toolchain, filesystem and etc
>
> by following the instructions provided in <a href="
> https://bitbucket.org/automforge/beremiz/wiki/Build%20minimal%20Beremiz%20runtime%20with%20Buildroot">this</a>
> link (by Andrey Skvortsov) I created all the required python scripts were
> mentioned in it.
>
> I also have enabled the python-pyro package in the Buildroot
>
> but when I try to run the Beremiz_service.py the following error appears :
>
> Traceback (most recent call last):
>   File "./Beremiz_service.py", line 36, in <module>
>     import Pyro.core as pyro
> ImportError: No module named Pyro.core

Pyro module is certainly missing.


> here is some info of my embedded Linux :
>
> -----------------------------------
> find / -name *pyro*
>
> /usr/bin/pyro-wxnsc
> /usr/bin/pyro-es
> /usr/bin/pyro-ns
> /usr/bin/pyro-esd
> /usr/bin/pyro-nsc
> /usr/bin/pyro-nsd
> /usr/bin/pyro-xnsc
> /usr/bin/pyro-genguid
> -----------------------------------
> ls /usr/lib/python2.7/site-packages/
>
> README       zeroconf.py


Here is my output:

developer@ST-37:~/WorkData/PLC/buildroot/buildroot (git)-[master] $ cat .config | grep -i pyro
BR2_PACKAGE_PYTHON_PYRO=y
# BR2_PACKAGE_PYTHON_PYROUTE2 is not set

developer@ST-37:~/WorkData/PLC/buildroot/buildroot (git)-[master] $ find output/target/ | grep -i pyro
output/target/usr/lib/python2.7/site-packages/Pyro
output/target/usr/lib/python2.7/site-packages/Pyro/xnsc.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/errors.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/constants.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/naming.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/util.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/nsc.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/wxnsc.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/test
output/target/usr/lib/python2.7/site-packages/Pyro/test/echoserver.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/test/__init__.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/__init__.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/ext
output/target/usr/lib/python2.7/site-packages/Pyro/ext/BasicNTService.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/ext/remote.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/ext/__init__.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/ext/ES_NtService.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/ext/remote_nons.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/ext/ServiceTest.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/ext/daemonizer.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/ext/NS_NtService.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/protocol.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/configuration.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/util2.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/core.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/EventService
output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Server.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Event.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/EventService/__init__.pyc
output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Clients.pyc
output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info
output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/SOURCES.txt
output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/PKG-INFO
output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/dependency_links.txt
output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/top_level.txt
output/target/usr/bin/pyro-nsc
output/target/usr/bin/pyro-genguid
output/target/usr/bin/pyro-es
output/target/usr/bin/pyro-xnsc
output/target/usr/bin/pyro-ns
output/target/usr/bin/pyro-esd
output/target/usr/bin/pyro-nsd
output/target/usr/bin/pyro-wxnsc


As you see I *do* have python-pyro package in my rootfs.

> -----------------------------------
> ls /root/beremiz/
>
> Beremiz_service.py  runtime             util
> -----------------------------------
> ls /root/beremiz/runtime/
>
> Beremiz_service.py   WampClient.py        webinterface.js
> NevowServer.py       __init__.py          xenomai.py
> PLCObject.py         loglevels.py
> ServicePublisher.py  typemapping.py
> -----------------------------------
> ls /root/beremiz/util/
>
> BitmapLibrary.py        ProcessLogger.py        misc.py
> ExceptionHandler.py     TranslationCatalogs.py  paths.py
> MiniTextControler.py    __init__.py
> -----------------------------------
> python --version
> Python 2.7.8
> -----------------------------------
> uname -a
> Linux buildroot 3.10.20 #3 Mon Dec 12 20:17:55 EET 2016 armv5tejU/Linux
> -----------------------------------
>
>
> Best regards
> Erfan Yousefian


--
Best regards,
Andrey Skvortsov
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
skv
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] running Beremiz runtime on embedded linux ARM architecture, Error: no module name Pyro.core

skv
Administrator
On 18-09-01 12:36, erfan you wrote:

> Hi Andrej
>
> Thank you for your help.
> I checked your output list and found out that I was missing lots of
> necessary packages.
> I went through the Buildroot's "make menuconfig" and target packages, but I
> was not able to find those packages. My Buildroot version is a little
> outdated. It is 2014 :O, so I checked the 2018 version and It had all the
> required packages. It took me a while to move all my settings from 2014 to
> 2018 and making the cross-toolchain and other packges. Finally, I copied
> all the new packages to my target board and the previous errors are now
> gone. But, I have some new issues.
> Here is the content of /usr/lib/python2.7/site-packages/ directory on the
> target board :
>
> /usr/lib/python2.7/site-packages/
> /usr/lib/python2.7/site-packages/autobahn
> /usr/lib/python2.7/site-packages/autobahn/test
> /usr/lib/python2.7/site-packages/autobahn/test/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/test/test_util.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp
> /usr/lib/python2.7/site-packages/autobahn/wamp/component.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_cryptosign.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_protocol.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_message.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_serializer.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_uri_pattern.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_user_handler_errors.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_runner.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_exception.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_protocol_peer.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_auth.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_component.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/protocol.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/request.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/cryptosign.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/types.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/cryptobox.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/serializer.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/message.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/uri.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/exception.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/auth.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/interfaces.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/role.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio
> /usr/lib/python2.7/site-packages/autobahn/asyncio/component.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/rawsocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/wamp.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/util.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted
> /usr/lib/python2.7/site-packages/autobahn/twisted/component.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/forwarder.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/cryptosign.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/resource.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/choosereactor.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/rawsocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/wamp.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/util.pyc
> /usr/lib/python2.7/site-packages/autobahn/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/_version.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress_bzip2.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/utf8validator.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/test
> /usr/lib/python2.7/site-packages/autobahn/websocket/test/test_protocol.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/test/test_websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/test/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/test/test_websocket_url.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/protocol.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/types.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress_snappy.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress_deflate.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress_base.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/xormasker.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/interfaces.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/util.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress.pyc
> /usr/lib/python2.7/site-packages/autobahn/rawsocket
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/test
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/test/test_rawsocket_url.pyc
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/test/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/util.pyc
> /usr/lib/python2.7/site-packages/autobahn/util.pyc
> /usr/lib/python2.7/site-packages/Pyro
> /usr/lib/python2.7/site-packages/Pyro/ext
> /usr/lib/python2.7/site-packages/Pyro/ext/ES_NtService.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/BasicNTService.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/NS_NtService.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/ServiceTest.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/__init__.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/daemonizer.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/remote.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/remote_nons.pyc
> /usr/lib/python2.7/site-packages/Pyro/test
> /usr/lib/python2.7/site-packages/Pyro/test/echoserver.pyc
> /usr/lib/python2.7/site-packages/Pyro/test/__init__.pyc
> /usr/lib/python2.7/site-packages/Pyro/protocol.pyc
> /usr/lib/python2.7/site-packages/Pyro/protocol.pyo
> /usr/lib/python2.7/site-packages/Pyro/core.pyc
> /usr/lib/python2.7/site-packages/Pyro/core.pyo
> /usr/lib/python2.7/site-packages/Pyro/xnsc.pyc
> /usr/lib/python2.7/site-packages/Pyro/xnsc.pyo
> /usr/lib/python2.7/site-packages/Pyro/constants.pyc
> /usr/lib/python2.7/site-packages/Pyro/constants.pyo
> /usr/lib/python2.7/site-packages/Pyro/wxnsc.pyc
> /usr/lib/python2.7/site-packages/Pyro/wxnsc.pyo
> /usr/lib/python2.7/site-packages/Pyro/naming.pyc
> /usr/lib/python2.7/site-packages/Pyro/naming.pyo
> /usr/lib/python2.7/site-packages/Pyro/configuration.pyc
> /usr/lib/python2.7/site-packages/Pyro/configuration.pyo
> /usr/lib/python2.7/site-packages/Pyro/__init__.pyc
> /usr/lib/python2.7/site-packages/Pyro/__init__.pyo
> /usr/lib/python2.7/site-packages/Pyro/EventService
> /usr/lib/python2.7/site-packages/Pyro/EventService/Clients.pyc
> /usr/lib/python2.7/site-packages/Pyro/EventService/Event.pyc
> /usr/lib/python2.7/site-packages/Pyro/EventService/__init__.pyc
> /usr/lib/python2.7/site-packages/Pyro/EventService/Server.pyc
> /usr/lib/python2.7/site-packages/Pyro/errors.pyc
> /usr/lib/python2.7/site-packages/Pyro/errors.pyo
> /usr/lib/python2.7/site-packages/Pyro/util2.pyc
> /usr/lib/python2.7/site-packages/Pyro/util2.pyo
> /usr/lib/python2.7/site-packages/Pyro/nsc.pyc
> /usr/lib/python2.7/site-packages/Pyro/nsc.pyo
> /usr/lib/python2.7/site-packages/Pyro/util.pyc
> /usr/lib/python2.7/site-packages/Pyro/util.pyo
> /usr/lib/python2.7/site-packages/enum
> /usr/lib/python2.7/site-packages/enum/doc
> /usr/lib/python2.7/site-packages/enum/doc/enum.pdf
> /usr/lib/python2.7/site-packages/enum/doc/enum.rst
> /usr/lib/python2.7/site-packages/enum/test.pyc
> /usr/lib/python2.7/site-packages/enum/LICENSE
> /usr/lib/python2.7/site-packages/enum/__init__.pyc
> /usr/lib/python2.7/site-packages/enum/README
> /usr/lib/python2.7/site-packages/netifaces.so
> /usr/lib/python2.7/site-packages/six.pyc
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/SOURCES.txt
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/top_level.txt
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/PKG-INFO
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/dependency_links.txt
> /usr/lib/python2.7/site-packages/twisted
> /usr/lib/python2.7/site-packages/twisted/plugins
> /usr/lib/python2.7/site-packages/twisted/plugins/autobahn_twistd.pyc
> /usr/lib/python2.7/site-packages/twisted/plugins/autobahn_endpoints.pyc
> /usr/lib/python2.7/site-packages/twisted/internet
> /usr/lib/python2.7/site-packages/twisted/internet/serialport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/task.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/wxreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/asyncioreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/protocol.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/udp.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/gtk2reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_producer_helpers.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_sslverify.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/process.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_signals.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_baseprocess.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_glibbase.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/stdio.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/kqreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/glib2reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/epollreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/win32eventreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/wxsupport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/main.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/inotify.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/address.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/tcp.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/posixbase.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/unix.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/pollreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/gtk3reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/__init__.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/threads.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_posixstdio.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/cfreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/defer.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/base.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_idna.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/endpoints.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_newtls.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_resolver.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/ssl.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_dumbwin32proc.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/udp.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/setup.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/winsock_pointers.c
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/winsock_pointers.h
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/wsasend.pxi
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/wsarecv.pxi
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/acceptex.pxi
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/iocpsupport.pyx
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/connectex.pxi
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/notes.txt
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/tcp.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/__init__.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/const.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/build.bat
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/abstract.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/interfaces.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/tksupport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_win32serialport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_win32stdio.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/selectreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_posixserialport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/default.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/fdesc.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/error.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/pyuisupport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_pollingfile.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_threadedselect.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/gireactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/abstract.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/utils.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/interfaces.pyc
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/SOURCES.txt
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/top_level.txt
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/zip-safe
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/PKG-INFO
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/dependency_links.txt
> /usr/lib/python2.7/site-packages/zeroconf.pyc
> /usr/lib/python2.7/site-packages/README
> /usr/lib/python2.7/site-packages/zeroconf.py
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/not-zip-safe
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/SOURCES.txt
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/top_level.txt
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/requires.txt
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/PKG-INFO
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/dependency_links.txt
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/SOURCES.txt
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/top_level.txt
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/PKG-INFO
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/dependency_links.txt
>
>
> when I run the Beremiz_service.py script with the fallowing command I get
> this error :
> Beremiz# python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1
> ~/Beremiz/beremiz_workdir
> Twisted unavailable.
This is strange. I would expect twisted to be available on your system.

>
> Traceback (most recent call last):
>   File "Beremiz_service.py", line 645, in <module>
>     pyroserver.Loop()
>   File "Beremiz_service.py", line 424, in Loop
>     self.daemon = pyro.Daemon(host=self.ip_addr, port=self.port)
>   File "usr/lib/python2.7/site-packages/Pyro/core.py", line 577, in __init__
> DaemonError: Couldn't start Pyro daemon: [Errno 99] Cannot assign requested
> adds

I think you have problem with 'localhost'
Are you sure that localhost resolves correctly to IP address of your
target board?
Could you show us output of these commands?

$ cat /etc/hosts
$ ping localhost


Try to launch Beremiz_service.py without '-i localhost'. Or try to use
your local IP: '-i 192.168.2.100'.

> I'm guessing maybe this is because of my eth0 configuration settings. eth0
> is configured manually by this script:
>
>
> ifconfig eth0 down
> ifconfig eth0 192.168.2.100 netmask 255.255.255.0 up
> ifconfig eth0
> route -n
> route add default gw 192.168.2.1
> route -n
No, this shouldn't be a problem.

 

>
> I really appreciate your time and guidance
>
> All the best,
> Erfan Yousefian
>
>
> On Tue, Aug 21, 2018 at 7:07 PM Andrey Skvortsov <[hidden email]>
> wrote:
>
> > Hi Erfan,
> >
> > On 18-08-21 18:42, erfan you wrote:
> > > Hi
> > >
> > > I'm trying to execute beremize_service.py runtime on my embedded arm
> > device.
> > >
> > > I'm using Buildroot to make the cross toolchain, filesystem and etc
> > >
> > > by following the instructions provided in <a href="
> > >
> > https://bitbucket.org/automforge/beremiz/wiki/Build%20minimal%20Beremiz%20runtime%20with%20Buildroot
> > ">this</a>
> > > link (by Andrey Skvortsov) I created all the required python scripts were
> > > mentioned in it.
> > >
> > > I also have enabled the python-pyro package in the Buildroot
> > >
> > > but when I try to run the Beremiz_service.py the following error appears
> > :
> > >
> > > Traceback (most recent call last):
> > >   File "./Beremiz_service.py", line 36, in <module>
> > >     import Pyro.core as pyro
> > > ImportError: No module named Pyro.core
> >
> > Pyro module is certainly missing.
> >
> >
> > > here is some info of my embedded Linux :
> > >
> > > -----------------------------------
> > > find / -name *pyro*
> > >
> > > /usr/bin/pyro-wxnsc
> > > /usr/bin/pyro-es
> > > /usr/bin/pyro-ns
> > > /usr/bin/pyro-esd
> > > /usr/bin/pyro-nsc
> > > /usr/bin/pyro-nsd
> > > /usr/bin/pyro-xnsc
> > > /usr/bin/pyro-genguid
> > > -----------------------------------
> > > ls /usr/lib/python2.7/site-packages/
> > >
> > > README       zeroconf.py
> >
> >
> > Here is my output:
> >
> > developer@ST-37:~/WorkData/PLC/buildroot/buildroot (git)-[master] $ cat
> > .config | grep -i pyro
> > BR2_PACKAGE_PYTHON_PYRO=y
> > # BR2_PACKAGE_PYTHON_PYROUTE2 is not set
> >
> > developer@ST-37:~/WorkData/PLC/buildroot/buildroot (git)-[master] $ find
> > output/target/ | grep -i pyro
> > output/target/usr/lib/python2.7/site-packages/Pyro
> > output/target/usr/lib/python2.7/site-packages/Pyro/xnsc.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/errors.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/constants.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/naming.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/util.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/nsc.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/wxnsc.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/test
> > output/target/usr/lib/python2.7/site-packages/Pyro/test/echoserver.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/test/__init__.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/__init__.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/BasicNTService.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/remote.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/__init__.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/ES_NtService.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/remote_nons.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/ServiceTest.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/daemonizer.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/NS_NtService.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/protocol.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/configuration.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/util2.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/core.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Server.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Event.pyc
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService/__init__.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Clients.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/SOURCES.txt
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/PKG-INFO
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/dependency_links.txt
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/top_level.txt
> > output/target/usr/bin/pyro-nsc
> > output/target/usr/bin/pyro-genguid
> > output/target/usr/bin/pyro-es
> > output/target/usr/bin/pyro-xnsc
> > output/target/usr/bin/pyro-ns
> > output/target/usr/bin/pyro-esd
> > output/target/usr/bin/pyro-nsd
> > output/target/usr/bin/pyro-wxnsc
> >
> >
> > As you see I *do* have python-pyro package in my rootfs.
> >
> > > -----------------------------------
> > > ls /root/beremiz/
> > >
> > > Beremiz_service.py  runtime             util
> > > -----------------------------------
> > > ls /root/beremiz/runtime/
> > >
> > > Beremiz_service.py   WampClient.py        webinterface.js
> > > NevowServer.py       __init__.py          xenomai.py
> > > PLCObject.py         loglevels.py
> > > ServicePublisher.py  typemapping.py
> > > -----------------------------------
> > > ls /root/beremiz/util/
> > >
> > > BitmapLibrary.py        ProcessLogger.py        misc.py
> > > ExceptionHandler.py     TranslationCatalogs.py  paths.py
> > > MiniTextControler.py    __init__.py
> > > -----------------------------------
> > > python --version
> > > Python 2.7.8
> > > -----------------------------------
> > > uname -a
> > > Linux buildroot 3.10.20 #3 Mon Dec 12 20:17:55 EET 2016 armv5tejU/Linux
> > > -----------------------------------
> > >
> > >
> > > Best regards
> > > Erfan Yousefian
> >
> >
> > --
> > Best regards,
> > Andrey Skvortsov
> >
> > ------------------------------------------------------------------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Beremiz-devel mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/beremiz-devel
> >
--
Best regards,
Andrey Skvortsov



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] running Beremiz runtime on embedded linux ARM architecture, Error: no module name Pyro.core

Erfan
root ~ # cat /etc/hosts                                                         
127.0.0.1       localhost                                                       
127.0.1.1       buildroot                                                       
root ~ # ping localhost                                                         
PING localhost (127.0.0.1): 56 data bytes                                                                                                          
--- localhost ping statistics ---                                               
82 packets transmitted, 0 packets received, 100% packet loss

the result of the command with my local IP:

Beremiz # python Beremiz_service.py -p 61194 -i 192.168.2.100 -x 0 -a 1 ~/Beremiz/beremiz_workdir                                                          
Twisted unavailable.                                                            
                                                                                
Traceback (most recent call last):                                              
  File "Beremiz_service.py", line 645, in <module>                              
    pyroserver.Loop()                                                           
  File "Beremiz_service.py", line 429, in Loop                                  
    self.Start()                                                                
  File "Beremiz_service.py", line 446, in Start                                 
    self.pyruntimevars)                                                         
TypeError: __init__() takes exactly 2 arguments (7 given) 

On Sun, Sep 2, 2018 at 12:40 AM Andrey Skvortsov <[hidden email]> wrote:
On 18-09-01 12:36, erfan you wrote:
> Hi Andrej
>
> Thank you for your help.
> I checked your output list and found out that I was missing lots of
> necessary packages.
> I went through the Buildroot's "make menuconfig" and target packages, but I
> was not able to find those packages. My Buildroot version is a little
> outdated. It is 2014 :O, so I checked the 2018 version and It had all the
> required packages. It took me a while to move all my settings from 2014 to
> 2018 and making the cross-toolchain and other packges. Finally, I copied
> all the new packages to my target board and the previous errors are now
> gone. But, I have some new issues.
> Here is the content of /usr/lib/python2.7/site-packages/ directory on the
> target board :
>
> /usr/lib/python2.7/site-packages/
> /usr/lib/python2.7/site-packages/autobahn
> /usr/lib/python2.7/site-packages/autobahn/test
> /usr/lib/python2.7/site-packages/autobahn/test/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/test/test_util.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp
> /usr/lib/python2.7/site-packages/autobahn/wamp/component.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_cryptosign.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_protocol.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_message.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_serializer.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_uri_pattern.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_user_handler_errors.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_runner.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_exception.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_protocol_peer.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_auth.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_component.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/protocol.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/request.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/cryptosign.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/types.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/cryptobox.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/serializer.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/message.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/uri.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/exception.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/auth.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/interfaces.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/role.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio
> /usr/lib/python2.7/site-packages/autobahn/asyncio/component.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/rawsocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/wamp.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/util.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted
> /usr/lib/python2.7/site-packages/autobahn/twisted/component.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/forwarder.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/cryptosign.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/resource.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/choosereactor.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/rawsocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/wamp.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/util.pyc
> /usr/lib/python2.7/site-packages/autobahn/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/_version.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress_bzip2.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/utf8validator.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/test
> /usr/lib/python2.7/site-packages/autobahn/websocket/test/test_protocol.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/test/test_websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/test/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/test/test_websocket_url.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/protocol.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/types.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress_snappy.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress_deflate.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress_base.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/xormasker.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/interfaces.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/util.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress.pyc
> /usr/lib/python2.7/site-packages/autobahn/rawsocket
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/test
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/test/test_rawsocket_url.pyc
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/test/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/util.pyc
> /usr/lib/python2.7/site-packages/autobahn/util.pyc
> /usr/lib/python2.7/site-packages/Pyro
> /usr/lib/python2.7/site-packages/Pyro/ext
> /usr/lib/python2.7/site-packages/Pyro/ext/ES_NtService.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/BasicNTService.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/NS_NtService.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/ServiceTest.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/__init__.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/daemonizer.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/remote.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/remote_nons.pyc
> /usr/lib/python2.7/site-packages/Pyro/test
> /usr/lib/python2.7/site-packages/Pyro/test/echoserver.pyc
> /usr/lib/python2.7/site-packages/Pyro/test/__init__.pyc
> /usr/lib/python2.7/site-packages/Pyro/protocol.pyc
> /usr/lib/python2.7/site-packages/Pyro/protocol.pyo
> /usr/lib/python2.7/site-packages/Pyro/core.pyc
> /usr/lib/python2.7/site-packages/Pyro/core.pyo
> /usr/lib/python2.7/site-packages/Pyro/xnsc.pyc
> /usr/lib/python2.7/site-packages/Pyro/xnsc.pyo
> /usr/lib/python2.7/site-packages/Pyro/constants.pyc
> /usr/lib/python2.7/site-packages/Pyro/constants.pyo
> /usr/lib/python2.7/site-packages/Pyro/wxnsc.pyc
> /usr/lib/python2.7/site-packages/Pyro/wxnsc.pyo
> /usr/lib/python2.7/site-packages/Pyro/naming.pyc
> /usr/lib/python2.7/site-packages/Pyro/naming.pyo
> /usr/lib/python2.7/site-packages/Pyro/configuration.pyc
> /usr/lib/python2.7/site-packages/Pyro/configuration.pyo
> /usr/lib/python2.7/site-packages/Pyro/__init__.pyc
> /usr/lib/python2.7/site-packages/Pyro/__init__.pyo
> /usr/lib/python2.7/site-packages/Pyro/EventService
> /usr/lib/python2.7/site-packages/Pyro/EventService/Clients.pyc
> /usr/lib/python2.7/site-packages/Pyro/EventService/Event.pyc
> /usr/lib/python2.7/site-packages/Pyro/EventService/__init__.pyc
> /usr/lib/python2.7/site-packages/Pyro/EventService/Server.pyc
> /usr/lib/python2.7/site-packages/Pyro/errors.pyc
> /usr/lib/python2.7/site-packages/Pyro/errors.pyo
> /usr/lib/python2.7/site-packages/Pyro/util2.pyc
> /usr/lib/python2.7/site-packages/Pyro/util2.pyo
> /usr/lib/python2.7/site-packages/Pyro/nsc.pyc
> /usr/lib/python2.7/site-packages/Pyro/nsc.pyo
> /usr/lib/python2.7/site-packages/Pyro/util.pyc
> /usr/lib/python2.7/site-packages/Pyro/util.pyo
> /usr/lib/python2.7/site-packages/enum
> /usr/lib/python2.7/site-packages/enum/doc
> /usr/lib/python2.7/site-packages/enum/doc/enum.pdf
> /usr/lib/python2.7/site-packages/enum/doc/enum.rst
> /usr/lib/python2.7/site-packages/enum/test.pyc
> /usr/lib/python2.7/site-packages/enum/LICENSE
> /usr/lib/python2.7/site-packages/enum/__init__.pyc
> /usr/lib/python2.7/site-packages/enum/README
> /usr/lib/python2.7/site-packages/netifaces.so
> /usr/lib/python2.7/site-packages/six.pyc
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/SOURCES.txt
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/top_level.txt
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/PKG-INFO
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/dependency_links.txt
> /usr/lib/python2.7/site-packages/twisted
> /usr/lib/python2.7/site-packages/twisted/plugins
> /usr/lib/python2.7/site-packages/twisted/plugins/autobahn_twistd.pyc
> /usr/lib/python2.7/site-packages/twisted/plugins/autobahn_endpoints.pyc
> /usr/lib/python2.7/site-packages/twisted/internet
> /usr/lib/python2.7/site-packages/twisted/internet/serialport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/task.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/wxreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/asyncioreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/protocol.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/udp.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/gtk2reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_producer_helpers.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_sslverify.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/process.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_signals.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_baseprocess.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_glibbase.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/stdio.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/kqreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/glib2reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/epollreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/win32eventreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/wxsupport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/main.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/inotify.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/address.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/tcp.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/posixbase.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/unix.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/pollreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/gtk3reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/__init__.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/threads.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_posixstdio.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/cfreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/defer.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/base.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_idna.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/endpoints.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_newtls.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_resolver.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/ssl.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_dumbwin32proc.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/udp.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/setup.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/winsock_pointers.c
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/winsock_pointers.h
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/wsasend.pxi
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/wsarecv.pxi
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/acceptex.pxi
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/iocpsupport.pyx
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/connectex.pxi
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/notes.txt
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/tcp.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/__init__.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/const.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/build.bat
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/abstract.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/interfaces.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/tksupport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_win32serialport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_win32stdio.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/selectreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_posixserialport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/default.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/fdesc.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/error.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/pyuisupport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_pollingfile.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_threadedselect.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/gireactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/abstract.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/utils.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/interfaces.pyc
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/SOURCES.txt
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/top_level.txt
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/zip-safe
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/PKG-INFO
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/dependency_links.txt
> /usr/lib/python2.7/site-packages/zeroconf.pyc
> /usr/lib/python2.7/site-packages/README
> /usr/lib/python2.7/site-packages/zeroconf.py
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/not-zip-safe
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/SOURCES.txt
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/top_level.txt
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/requires.txt
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/PKG-INFO
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/dependency_links.txt
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/SOURCES.txt
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/top_level.txt
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/PKG-INFO
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/dependency_links.txt
>
>
> when I run the Beremiz_service.py script with the fallowing command I get
> this error :
> Beremiz# python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1
> ~/Beremiz/beremiz_workdir
> Twisted unavailable.

This is strange. I would expect twisted to be available on your system.

>
> Traceback (most recent call last):
>   File "Beremiz_service.py", line 645, in <module>
>     pyroserver.Loop()
>   File "Beremiz_service.py", line 424, in Loop
>     self.daemon = pyro.Daemon(host=self.ip_addr, port=self.port)
>   File "usr/lib/python2.7/site-packages/Pyro/core.py", line 577, in __init__
> DaemonError: Couldn't start Pyro daemon: [Errno 99] Cannot assign requested
> adds

I think you have problem with 'localhost'
Are you sure that localhost resolves correctly to IP address of your
target board?
Could you show us output of these commands?

$ cat /etc/hosts
$ ping localhost


Try to launch Beremiz_service.py without '-i localhost'. Or try to use
your local IP: '-i 192.168.2.100'.

> I'm guessing maybe this is because of my eth0 configuration settings. eth0
> is configured manually by this script:
>
>
> ifconfig eth0 down
> ifconfig eth0 192.168.2.100 netmask 255.255.255.0 up
> ifconfig eth0
> route -n
> route add default gw 192.168.2.1
> route -n

No, this shouldn't be a problem.


>
> I really appreciate your time and guidance
>
> All the best,
> Erfan Yousefian
>
>
> On Tue, Aug 21, 2018 at 7:07 PM Andrey Skvortsov <[hidden email]>
> wrote:
>
> > Hi Erfan,
> >
> > On 18-08-21 18:42, erfan you wrote:
> > > Hi
> > >
> > > I'm trying to execute beremize_service.py runtime on my embedded arm
> > device.
> > >
> > > I'm using Buildroot to make the cross toolchain, filesystem and etc
> > >
> > > by following the instructions provided in <a href="
> > >
> > https://bitbucket.org/automforge/beremiz/wiki/Build%20minimal%20Beremiz%20runtime%20with%20Buildroot
> > ">this</a>
> > > link (by Andrey Skvortsov) I created all the required python scripts were
> > > mentioned in it.
> > >
> > > I also have enabled the python-pyro package in the Buildroot
> > >
> > > but when I try to run the Beremiz_service.py the following error appears
> > :
> > >
> > > Traceback (most recent call last):
> > >   File "./Beremiz_service.py", line 36, in <module>
> > >     import Pyro.core as pyro
> > > ImportError: No module named Pyro.core
> >
> > Pyro module is certainly missing.
> >
> >
> > > here is some info of my embedded Linux :
> > >
> > > -----------------------------------
> > > find / -name *pyro*
> > >
> > > /usr/bin/pyro-wxnsc
> > > /usr/bin/pyro-es
> > > /usr/bin/pyro-ns
> > > /usr/bin/pyro-esd
> > > /usr/bin/pyro-nsc
> > > /usr/bin/pyro-nsd
> > > /usr/bin/pyro-xnsc
> > > /usr/bin/pyro-genguid
> > > -----------------------------------
> > > ls /usr/lib/python2.7/site-packages/
> > >
> > > README       zeroconf.py
> >
> >
> > Here is my output:
> >
> > developer@ST-37:~/WorkData/PLC/buildroot/buildroot (git)-[master] $ cat
> > .config | grep -i pyro
> > BR2_PACKAGE_PYTHON_PYRO=y
> > # BR2_PACKAGE_PYTHON_PYROUTE2 is not set
> >
> > developer@ST-37:~/WorkData/PLC/buildroot/buildroot (git)-[master] $ find
> > output/target/ | grep -i pyro
> > output/target/usr/lib/python2.7/site-packages/Pyro
> > output/target/usr/lib/python2.7/site-packages/Pyro/xnsc.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/errors.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/constants.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/naming.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/util.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/nsc.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/wxnsc.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/test
> > output/target/usr/lib/python2.7/site-packages/Pyro/test/echoserver.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/test/__init__.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/__init__.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/BasicNTService.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/remote.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/__init__.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/ES_NtService.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/remote_nons.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/ServiceTest.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/daemonizer.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/NS_NtService.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/protocol.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/configuration.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/util2.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/core.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Server.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Event.pyc
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService/__init__.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Clients.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/SOURCES.txt
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/PKG-INFO
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/dependency_links.txt
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/top_level.txt
> > output/target/usr/bin/pyro-nsc
> > output/target/usr/bin/pyro-genguid
> > output/target/usr/bin/pyro-es
> > output/target/usr/bin/pyro-xnsc
> > output/target/usr/bin/pyro-ns
> > output/target/usr/bin/pyro-esd
> > output/target/usr/bin/pyro-nsd
> > output/target/usr/bin/pyro-wxnsc
> >
> >
> > As you see I *do* have python-pyro package in my rootfs.
> >
> > > -----------------------------------
> > > ls /root/beremiz/
> > >
> > > Beremiz_service.py  runtime             util
> > > -----------------------------------
> > > ls /root/beremiz/runtime/
> > >
> > > Beremiz_service.py   WampClient.py        webinterface.js
> > > NevowServer.py       __init__.py          xenomai.py
> > > PLCObject.py         loglevels.py
> > > ServicePublisher.py  typemapping.py
> > > -----------------------------------
> > > ls /root/beremiz/util/
> > >
> > > BitmapLibrary.py        ProcessLogger.py        misc.py
> > > ExceptionHandler.py     TranslationCatalogs.py  paths.py
> > > MiniTextControler.py    __init__.py
> > > -----------------------------------
> > > python --version
> > > Python 2.7.8
> > > -----------------------------------
> > > uname -a
> > > Linux buildroot 3.10.20 #3 Mon Dec 12 20:17:55 EET 2016 armv5tejU/Linux
> > > -----------------------------------
> > >
> > >
> > > Best regards
> > > Erfan Yousefian
> >
> >
> > --
> > Best regards,
> > Andrey Skvortsov
> >
> > ------------------------------------------------------------------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Beremiz-devel mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/beremiz-devel
> >

--
Best regards,
Andrey Skvortsov


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] running Beremiz runtime on embedded linux ARM architecture, Error: no module name Pyro.core

Erfan
I'm sorry, but I've just found out that /etc/network/interfaces file had some wrong configuration for "lo" interface, and also the /etc/resolv.conf was missing. I don't know how that happened, but now pinging localhost is working

now by running the Beremiz_service.py the error has changed but it still complains about "twisted" not being available

 here is the output:

---------------------------------------------------------------
root ~ # ping -w 5 localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: seq=0 ttl=64 time=0.729 ms
64 bytes from 127.0.0.1: seq=1 ttl=64 time=0.696 ms
64 bytes from 127.0.0.1: seq=2 ttl=64 time=0.695 ms
64 bytes from 127.0.0.1: seq=3 ttl=64 time=0.701 ms
64 bytes from 127.0.0.1: seq=4 ttl=64 time=0.702 ms

--- localhost ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.695/0.704/0.729 ms
---------------------------------------------------------------
root ~ # cat /etc/resolv.conf 
nameserver 192.168.2.1
---------------------------------------------------------------

root ~ # cat /etc/network/interfaces 
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
iface eth0 inet static
address 192.168.2.100
gatway 192.168.2.254
netmask 255.255.255.0
broadcast 192.168.2.254
network 192.168.2.0
dns-nameservers 192.168.2.254
---------------------------------------------------------------

root Beremiz # python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1 ~/Beremiz/beremiz_workdir
Twisted unavailable.

Traceback (most recent call last):
  File "Beremiz_service.py", line 645, in <module>
    pyroserver.Loop()
  File "Beremiz_service.py", line 429, in Loop
    self.Start()
  File "Beremiz_service.py", line 446, in Start
    self.pyruntimevars)
TypeError: __init__() takes exactly 2 arguments (7 given)




On Sun, Sep 2, 2018 at 5:23 PM erfan you <[hidden email]> wrote:
root ~ # cat /etc/hosts                                                         
127.0.0.1       localhost                                                       
127.0.1.1       buildroot                                                       
root ~ # ping localhost                                                         
PING localhost (127.0.0.1): 56 data bytes                                                                                                          
--- localhost ping statistics ---                                               
82 packets transmitted, 0 packets received, 100% packet loss

the result of the command with my local IP:

Beremiz # python Beremiz_service.py -p 61194 -i 192.168.2.100 -x 0 -a 1 ~/Beremiz/beremiz_workdir                                                          
Twisted unavailable.                                                            
                                                                                
Traceback (most recent call last):                                              
  File "Beremiz_service.py", line 645, in <module>                              
    pyroserver.Loop()                                                           
  File "Beremiz_service.py", line 429, in Loop                                  
    self.Start()                                                                
  File "Beremiz_service.py", line 446, in Start                                 
    self.pyruntimevars)                                                         
TypeError: __init__() takes exactly 2 arguments (7 given) 

On Sun, Sep 2, 2018 at 12:40 AM Andrey Skvortsov <[hidden email]> wrote:
On 18-09-01 12:36, erfan you wrote:
> Hi Andrej
>
> Thank you for your help.
> I checked your output list and found out that I was missing lots of
> necessary packages.
> I went through the Buildroot's "make menuconfig" and target packages, but I
> was not able to find those packages. My Buildroot version is a little
> outdated. It is 2014 :O, so I checked the 2018 version and It had all the
> required packages. It took me a while to move all my settings from 2014 to
> 2018 and making the cross-toolchain and other packges. Finally, I copied
> all the new packages to my target board and the previous errors are now
> gone. But, I have some new issues.
> Here is the content of /usr/lib/python2.7/site-packages/ directory on the
> target board :
>
> /usr/lib/python2.7/site-packages/
> /usr/lib/python2.7/site-packages/autobahn
> /usr/lib/python2.7/site-packages/autobahn/test
> /usr/lib/python2.7/site-packages/autobahn/test/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/test/test_util.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp
> /usr/lib/python2.7/site-packages/autobahn/wamp/component.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_cryptosign.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_protocol.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_message.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_serializer.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_uri_pattern.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_user_handler_errors.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_runner.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_exception.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_protocol_peer.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_auth.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_component.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/protocol.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/request.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/cryptosign.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/types.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/cryptobox.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/serializer.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/message.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/uri.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/exception.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/auth.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/interfaces.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/role.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio
> /usr/lib/python2.7/site-packages/autobahn/asyncio/component.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/rawsocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/wamp.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/util.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted
> /usr/lib/python2.7/site-packages/autobahn/twisted/component.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/forwarder.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/cryptosign.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/resource.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/choosereactor.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/rawsocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/wamp.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/util.pyc
> /usr/lib/python2.7/site-packages/autobahn/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/_version.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress_bzip2.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/utf8validator.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/test
> /usr/lib/python2.7/site-packages/autobahn/websocket/test/test_protocol.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/test/test_websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/test/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/test/test_websocket_url.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/protocol.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/types.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress_snappy.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress_deflate.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress_base.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/xormasker.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/interfaces.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/util.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress.pyc
> /usr/lib/python2.7/site-packages/autobahn/rawsocket
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/test
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/test/test_rawsocket_url.pyc
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/test/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/util.pyc
> /usr/lib/python2.7/site-packages/autobahn/util.pyc
> /usr/lib/python2.7/site-packages/Pyro
> /usr/lib/python2.7/site-packages/Pyro/ext
> /usr/lib/python2.7/site-packages/Pyro/ext/ES_NtService.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/BasicNTService.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/NS_NtService.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/ServiceTest.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/__init__.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/daemonizer.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/remote.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/remote_nons.pyc
> /usr/lib/python2.7/site-packages/Pyro/test
> /usr/lib/python2.7/site-packages/Pyro/test/echoserver.pyc
> /usr/lib/python2.7/site-packages/Pyro/test/__init__.pyc
> /usr/lib/python2.7/site-packages/Pyro/protocol.pyc
> /usr/lib/python2.7/site-packages/Pyro/protocol.pyo
> /usr/lib/python2.7/site-packages/Pyro/core.pyc
> /usr/lib/python2.7/site-packages/Pyro/core.pyo
> /usr/lib/python2.7/site-packages/Pyro/xnsc.pyc
> /usr/lib/python2.7/site-packages/Pyro/xnsc.pyo
> /usr/lib/python2.7/site-packages/Pyro/constants.pyc
> /usr/lib/python2.7/site-packages/Pyro/constants.pyo
> /usr/lib/python2.7/site-packages/Pyro/wxnsc.pyc
> /usr/lib/python2.7/site-packages/Pyro/wxnsc.pyo
> /usr/lib/python2.7/site-packages/Pyro/naming.pyc
> /usr/lib/python2.7/site-packages/Pyro/naming.pyo
> /usr/lib/python2.7/site-packages/Pyro/configuration.pyc
> /usr/lib/python2.7/site-packages/Pyro/configuration.pyo
> /usr/lib/python2.7/site-packages/Pyro/__init__.pyc
> /usr/lib/python2.7/site-packages/Pyro/__init__.pyo
> /usr/lib/python2.7/site-packages/Pyro/EventService
> /usr/lib/python2.7/site-packages/Pyro/EventService/Clients.pyc
> /usr/lib/python2.7/site-packages/Pyro/EventService/Event.pyc
> /usr/lib/python2.7/site-packages/Pyro/EventService/__init__.pyc
> /usr/lib/python2.7/site-packages/Pyro/EventService/Server.pyc
> /usr/lib/python2.7/site-packages/Pyro/errors.pyc
> /usr/lib/python2.7/site-packages/Pyro/errors.pyo
> /usr/lib/python2.7/site-packages/Pyro/util2.pyc
> /usr/lib/python2.7/site-packages/Pyro/util2.pyo
> /usr/lib/python2.7/site-packages/Pyro/nsc.pyc
> /usr/lib/python2.7/site-packages/Pyro/nsc.pyo
> /usr/lib/python2.7/site-packages/Pyro/util.pyc
> /usr/lib/python2.7/site-packages/Pyro/util.pyo
> /usr/lib/python2.7/site-packages/enum
> /usr/lib/python2.7/site-packages/enum/doc
> /usr/lib/python2.7/site-packages/enum/doc/enum.pdf
> /usr/lib/python2.7/site-packages/enum/doc/enum.rst
> /usr/lib/python2.7/site-packages/enum/test.pyc
> /usr/lib/python2.7/site-packages/enum/LICENSE
> /usr/lib/python2.7/site-packages/enum/__init__.pyc
> /usr/lib/python2.7/site-packages/enum/README
> /usr/lib/python2.7/site-packages/netifaces.so
> /usr/lib/python2.7/site-packages/six.pyc
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/SOURCES.txt
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/top_level.txt
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/PKG-INFO
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/dependency_links.txt
> /usr/lib/python2.7/site-packages/twisted
> /usr/lib/python2.7/site-packages/twisted/plugins
> /usr/lib/python2.7/site-packages/twisted/plugins/autobahn_twistd.pyc
> /usr/lib/python2.7/site-packages/twisted/plugins/autobahn_endpoints.pyc
> /usr/lib/python2.7/site-packages/twisted/internet
> /usr/lib/python2.7/site-packages/twisted/internet/serialport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/task.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/wxreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/asyncioreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/protocol.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/udp.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/gtk2reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_producer_helpers.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_sslverify.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/process.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_signals.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_baseprocess.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_glibbase.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/stdio.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/kqreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/glib2reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/epollreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/win32eventreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/wxsupport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/main.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/inotify.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/address.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/tcp.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/posixbase.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/unix.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/pollreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/gtk3reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/__init__.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/threads.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_posixstdio.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/cfreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/defer.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/base.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_idna.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/endpoints.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_newtls.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_resolver.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/ssl.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_dumbwin32proc.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/udp.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/setup.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/winsock_pointers.c
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/winsock_pointers.h
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/wsasend.pxi
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/wsarecv.pxi
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/acceptex.pxi
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/iocpsupport.pyx
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/connectex.pxi
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/notes.txt
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/tcp.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/__init__.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/const.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/build.bat
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/abstract.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/interfaces.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/tksupport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_win32serialport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_win32stdio.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/selectreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_posixserialport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/default.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/fdesc.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/error.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/pyuisupport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_pollingfile.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_threadedselect.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/gireactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/abstract.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/utils.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/interfaces.pyc
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/SOURCES.txt
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/top_level.txt
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/zip-safe
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/PKG-INFO
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/dependency_links.txt
> /usr/lib/python2.7/site-packages/zeroconf.pyc
> /usr/lib/python2.7/site-packages/README
> /usr/lib/python2.7/site-packages/zeroconf.py
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/not-zip-safe
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/SOURCES.txt
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/top_level.txt
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/requires.txt
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/PKG-INFO
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/dependency_links.txt
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/SOURCES.txt
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/top_level.txt
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/PKG-INFO
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/dependency_links.txt
>
>
> when I run the Beremiz_service.py script with the fallowing command I get
> this error :
> Beremiz# python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1
> ~/Beremiz/beremiz_workdir
> Twisted unavailable.

This is strange. I would expect twisted to be available on your system.

>
> Traceback (most recent call last):
>   File "Beremiz_service.py", line 645, in <module>
>     pyroserver.Loop()
>   File "Beremiz_service.py", line 424, in Loop
>     self.daemon = pyro.Daemon(host=self.ip_addr, port=self.port)
>   File "usr/lib/python2.7/site-packages/Pyro/core.py", line 577, in __init__
> DaemonError: Couldn't start Pyro daemon: [Errno 99] Cannot assign requested
> adds

I think you have problem with 'localhost'
Are you sure that localhost resolves correctly to IP address of your
target board?
Could you show us output of these commands?

$ cat /etc/hosts
$ ping localhost


Try to launch Beremiz_service.py without '-i localhost'. Or try to use
your local IP: '-i 192.168.2.100'.

> I'm guessing maybe this is because of my eth0 configuration settings. eth0
> is configured manually by this script:
>
>
> ifconfig eth0 down
> ifconfig eth0 192.168.2.100 netmask 255.255.255.0 up
> ifconfig eth0
> route -n
> route add default gw 192.168.2.1
> route -n

No, this shouldn't be a problem.


>
> I really appreciate your time and guidance
>
> All the best,
> Erfan Yousefian
>
>
> On Tue, Aug 21, 2018 at 7:07 PM Andrey Skvortsov <[hidden email]>
> wrote:
>
> > Hi Erfan,
> >
> > On 18-08-21 18:42, erfan you wrote:
> > > Hi
> > >
> > > I'm trying to execute beremize_service.py runtime on my embedded arm
> > device.
> > >
> > > I'm using Buildroot to make the cross toolchain, filesystem and etc
> > >
> > > by following the instructions provided in <a href="
> > >
> > https://bitbucket.org/automforge/beremiz/wiki/Build%20minimal%20Beremiz%20runtime%20with%20Buildroot
> > ">this</a>
> > > link (by Andrey Skvortsov) I created all the required python scripts were
> > > mentioned in it.
> > >
> > > I also have enabled the python-pyro package in the Buildroot
> > >
> > > but when I try to run the Beremiz_service.py the following error appears
> > :
> > >
> > > Traceback (most recent call last):
> > >   File "./Beremiz_service.py", line 36, in <module>
> > >     import Pyro.core as pyro
> > > ImportError: No module named Pyro.core
> >
> > Pyro module is certainly missing.
> >
> >
> > > here is some info of my embedded Linux :
> > >
> > > -----------------------------------
> > > find / -name *pyro*
> > >
> > > /usr/bin/pyro-wxnsc
> > > /usr/bin/pyro-es
> > > /usr/bin/pyro-ns
> > > /usr/bin/pyro-esd
> > > /usr/bin/pyro-nsc
> > > /usr/bin/pyro-nsd
> > > /usr/bin/pyro-xnsc
> > > /usr/bin/pyro-genguid
> > > -----------------------------------
> > > ls /usr/lib/python2.7/site-packages/
> > >
> > > README       zeroconf.py
> >
> >
> > Here is my output:
> >
> > developer@ST-37:~/WorkData/PLC/buildroot/buildroot (git)-[master] $ cat
> > .config | grep -i pyro
> > BR2_PACKAGE_PYTHON_PYRO=y
> > # BR2_PACKAGE_PYTHON_PYROUTE2 is not set
> >
> > developer@ST-37:~/WorkData/PLC/buildroot/buildroot (git)-[master] $ find
> > output/target/ | grep -i pyro
> > output/target/usr/lib/python2.7/site-packages/Pyro
> > output/target/usr/lib/python2.7/site-packages/Pyro/xnsc.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/errors.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/constants.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/naming.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/util.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/nsc.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/wxnsc.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/test
> > output/target/usr/lib/python2.7/site-packages/Pyro/test/echoserver.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/test/__init__.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/__init__.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/BasicNTService.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/remote.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/__init__.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/ES_NtService.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/remote_nons.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/ServiceTest.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/daemonizer.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/NS_NtService.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/protocol.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/configuration.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/util2.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/core.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Server.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Event.pyc
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService/__init__.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Clients.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/SOURCES.txt
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/PKG-INFO
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/dependency_links.txt
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/top_level.txt
> > output/target/usr/bin/pyro-nsc
> > output/target/usr/bin/pyro-genguid
> > output/target/usr/bin/pyro-es
> > output/target/usr/bin/pyro-xnsc
> > output/target/usr/bin/pyro-ns
> > output/target/usr/bin/pyro-esd
> > output/target/usr/bin/pyro-nsd
> > output/target/usr/bin/pyro-wxnsc
> >
> >
> > As you see I *do* have python-pyro package in my rootfs.
> >
> > > -----------------------------------
> > > ls /root/beremiz/
> > >
> > > Beremiz_service.py  runtime             util
> > > -----------------------------------
> > > ls /root/beremiz/runtime/
> > >
> > > Beremiz_service.py   WampClient.py        webinterface.js
> > > NevowServer.py       __init__.py          xenomai.py
> > > PLCObject.py         loglevels.py
> > > ServicePublisher.py  typemapping.py
> > > -----------------------------------
> > > ls /root/beremiz/util/
> > >
> > > BitmapLibrary.py        ProcessLogger.py        misc.py
> > > ExceptionHandler.py     TranslationCatalogs.py  paths.py
> > > MiniTextControler.py    __init__.py
> > > -----------------------------------
> > > python --version
> > > Python 2.7.8
> > > -----------------------------------
> > > uname -a
> > > Linux buildroot 3.10.20 #3 Mon Dec 12 20:17:55 EET 2016 armv5tejU/Linux
> > > -----------------------------------
> > >
> > >
> > > Best regards
> > > Erfan Yousefian
> >
> >
> > --
> > Best regards,
> > Andrey Skvortsov
> >
> > ------------------------------------------------------------------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Beremiz-devel mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/beremiz-devel
> >

--
Best regards,
Andrey Skvortsov


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] running Beremiz runtime on embedded linux ARM architecture, Error: no module name Pyro.core

Erfan
I'm guessing that maybe I have not copied all the required files from Buildroot's output directory to my target board

I copied all the required libraries from /buildroot/output/target/usr/lib/python2.7/site-packages
I coped the "twist" and  "twistd" files from /buildroot/output/target/usr/bin/  to the target

I cannot copy the whole image to my target. So, I have to do it one by one

Am I missing some files here?

On Sun, Sep 2, 2018 at 6:18 PM erfan you <[hidden email]> wrote:
I'm sorry, but I've just found out that /etc/network/interfaces file had some wrong configuration for "lo" interface, and also the /etc/resolv.conf was missing. I don't know how that happened, but now pinging localhost is working

now by running the Beremiz_service.py the error has changed but it still complains about "twisted" not being available

 here is the output:

---------------------------------------------------------------
root ~ # ping -w 5 localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: seq=0 ttl=64 time=0.729 ms
64 bytes from 127.0.0.1: seq=1 ttl=64 time=0.696 ms
64 bytes from 127.0.0.1: seq=2 ttl=64 time=0.695 ms
64 bytes from 127.0.0.1: seq=3 ttl=64 time=0.701 ms
64 bytes from 127.0.0.1: seq=4 ttl=64 time=0.702 ms

--- localhost ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.695/0.704/0.729 ms
---------------------------------------------------------------
root ~ # cat /etc/resolv.conf 
nameserver 192.168.2.1
---------------------------------------------------------------

root ~ # cat /etc/network/interfaces 
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
iface eth0 inet static
address 192.168.2.100
gatway 192.168.2.254
netmask 255.255.255.0
broadcast 192.168.2.254
network 192.168.2.0
dns-nameservers 192.168.2.254
---------------------------------------------------------------

root Beremiz # python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1 ~/Beremiz/beremiz_workdir
Twisted unavailable.

Traceback (most recent call last):
  File "Beremiz_service.py", line 645, in <module>
    pyroserver.Loop()
  File "Beremiz_service.py", line 429, in Loop
    self.Start()
  File "Beremiz_service.py", line 446, in Start
    self.pyruntimevars)
TypeError: __init__() takes exactly 2 arguments (7 given)




On Sun, Sep 2, 2018 at 5:23 PM erfan you <[hidden email]> wrote:
root ~ # cat /etc/hosts                                                         
127.0.0.1       localhost                                                       
127.0.1.1       buildroot                                                       
root ~ # ping localhost                                                         
PING localhost (127.0.0.1): 56 data bytes                                                                                                          
--- localhost ping statistics ---                                               
82 packets transmitted, 0 packets received, 100% packet loss

the result of the command with my local IP:

Beremiz # python Beremiz_service.py -p 61194 -i 192.168.2.100 -x 0 -a 1 ~/Beremiz/beremiz_workdir                                                          
Twisted unavailable.                                                            
                                                                                
Traceback (most recent call last):                                              
  File "Beremiz_service.py", line 645, in <module>                              
    pyroserver.Loop()                                                           
  File "Beremiz_service.py", line 429, in Loop                                  
    self.Start()                                                                
  File "Beremiz_service.py", line 446, in Start                                 
    self.pyruntimevars)                                                         
TypeError: __init__() takes exactly 2 arguments (7 given) 

On Sun, Sep 2, 2018 at 12:40 AM Andrey Skvortsov <[hidden email]> wrote:
On 18-09-01 12:36, erfan you wrote:
> Hi Andrej
>
> Thank you for your help.
> I checked your output list and found out that I was missing lots of
> necessary packages.
> I went through the Buildroot's "make menuconfig" and target packages, but I
> was not able to find those packages. My Buildroot version is a little
> outdated. It is 2014 :O, so I checked the 2018 version and It had all the
> required packages. It took me a while to move all my settings from 2014 to
> 2018 and making the cross-toolchain and other packges. Finally, I copied
> all the new packages to my target board and the previous errors are now
> gone. But, I have some new issues.
> Here is the content of /usr/lib/python2.7/site-packages/ directory on the
> target board :
>
> /usr/lib/python2.7/site-packages/
> /usr/lib/python2.7/site-packages/autobahn
> /usr/lib/python2.7/site-packages/autobahn/test
> /usr/lib/python2.7/site-packages/autobahn/test/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/test/test_util.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp
> /usr/lib/python2.7/site-packages/autobahn/wamp/component.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_cryptosign.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_protocol.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_message.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_serializer.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_uri_pattern.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_user_handler_errors.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_runner.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_exception.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_protocol_peer.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_auth.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/test/test_component.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/protocol.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/request.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/cryptosign.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/types.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/cryptobox.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/serializer.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/message.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/uri.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/exception.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/auth.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/interfaces.pyc
> /usr/lib/python2.7/site-packages/autobahn/wamp/role.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio
> /usr/lib/python2.7/site-packages/autobahn/asyncio/component.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/rawsocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/wamp.pyc
> /usr/lib/python2.7/site-packages/autobahn/asyncio/util.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted
> /usr/lib/python2.7/site-packages/autobahn/twisted/component.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/forwarder.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/cryptosign.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/resource.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/choosereactor.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/rawsocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/wamp.pyc
> /usr/lib/python2.7/site-packages/autobahn/twisted/util.pyc
> /usr/lib/python2.7/site-packages/autobahn/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/_version.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress_bzip2.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/utf8validator.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/test
> /usr/lib/python2.7/site-packages/autobahn/websocket/test/test_protocol.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/test/test_websocket.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/test/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/test/test_websocket_url.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/protocol.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/types.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress_snappy.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress_deflate.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress_base.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/xormasker.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/interfaces.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/util.pyc
> /usr/lib/python2.7/site-packages/autobahn/websocket/compress.pyc
> /usr/lib/python2.7/site-packages/autobahn/rawsocket
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/test
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/test/test_rawsocket_url.pyc
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/test/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/__init__.pyc
> /usr/lib/python2.7/site-packages/autobahn/rawsocket/util.pyc
> /usr/lib/python2.7/site-packages/autobahn/util.pyc
> /usr/lib/python2.7/site-packages/Pyro
> /usr/lib/python2.7/site-packages/Pyro/ext
> /usr/lib/python2.7/site-packages/Pyro/ext/ES_NtService.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/BasicNTService.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/NS_NtService.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/ServiceTest.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/__init__.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/daemonizer.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/remote.pyc
> /usr/lib/python2.7/site-packages/Pyro/ext/remote_nons.pyc
> /usr/lib/python2.7/site-packages/Pyro/test
> /usr/lib/python2.7/site-packages/Pyro/test/echoserver.pyc
> /usr/lib/python2.7/site-packages/Pyro/test/__init__.pyc
> /usr/lib/python2.7/site-packages/Pyro/protocol.pyc
> /usr/lib/python2.7/site-packages/Pyro/protocol.pyo
> /usr/lib/python2.7/site-packages/Pyro/core.pyc
> /usr/lib/python2.7/site-packages/Pyro/core.pyo
> /usr/lib/python2.7/site-packages/Pyro/xnsc.pyc
> /usr/lib/python2.7/site-packages/Pyro/xnsc.pyo
> /usr/lib/python2.7/site-packages/Pyro/constants.pyc
> /usr/lib/python2.7/site-packages/Pyro/constants.pyo
> /usr/lib/python2.7/site-packages/Pyro/wxnsc.pyc
> /usr/lib/python2.7/site-packages/Pyro/wxnsc.pyo
> /usr/lib/python2.7/site-packages/Pyro/naming.pyc
> /usr/lib/python2.7/site-packages/Pyro/naming.pyo
> /usr/lib/python2.7/site-packages/Pyro/configuration.pyc
> /usr/lib/python2.7/site-packages/Pyro/configuration.pyo
> /usr/lib/python2.7/site-packages/Pyro/__init__.pyc
> /usr/lib/python2.7/site-packages/Pyro/__init__.pyo
> /usr/lib/python2.7/site-packages/Pyro/EventService
> /usr/lib/python2.7/site-packages/Pyro/EventService/Clients.pyc
> /usr/lib/python2.7/site-packages/Pyro/EventService/Event.pyc
> /usr/lib/python2.7/site-packages/Pyro/EventService/__init__.pyc
> /usr/lib/python2.7/site-packages/Pyro/EventService/Server.pyc
> /usr/lib/python2.7/site-packages/Pyro/errors.pyc
> /usr/lib/python2.7/site-packages/Pyro/errors.pyo
> /usr/lib/python2.7/site-packages/Pyro/util2.pyc
> /usr/lib/python2.7/site-packages/Pyro/util2.pyo
> /usr/lib/python2.7/site-packages/Pyro/nsc.pyc
> /usr/lib/python2.7/site-packages/Pyro/nsc.pyo
> /usr/lib/python2.7/site-packages/Pyro/util.pyc
> /usr/lib/python2.7/site-packages/Pyro/util.pyo
> /usr/lib/python2.7/site-packages/enum
> /usr/lib/python2.7/site-packages/enum/doc
> /usr/lib/python2.7/site-packages/enum/doc/enum.pdf
> /usr/lib/python2.7/site-packages/enum/doc/enum.rst
> /usr/lib/python2.7/site-packages/enum/test.pyc
> /usr/lib/python2.7/site-packages/enum/LICENSE
> /usr/lib/python2.7/site-packages/enum/__init__.pyc
> /usr/lib/python2.7/site-packages/enum/README
> /usr/lib/python2.7/site-packages/netifaces.so
> /usr/lib/python2.7/site-packages/six.pyc
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/SOURCES.txt
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/top_level.txt
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/PKG-INFO
> /usr/lib/python2.7/site-packages/six-1.11.0-py2.7.egg-info/dependency_links.txt
> /usr/lib/python2.7/site-packages/twisted
> /usr/lib/python2.7/site-packages/twisted/plugins
> /usr/lib/python2.7/site-packages/twisted/plugins/autobahn_twistd.pyc
> /usr/lib/python2.7/site-packages/twisted/plugins/autobahn_endpoints.pyc
> /usr/lib/python2.7/site-packages/twisted/internet
> /usr/lib/python2.7/site-packages/twisted/internet/serialport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/task.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/wxreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/asyncioreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/protocol.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/udp.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/gtk2reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_producer_helpers.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_sslverify.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/process.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_signals.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_baseprocess.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_glibbase.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/stdio.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/kqreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/glib2reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/epollreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/win32eventreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/wxsupport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/main.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/inotify.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/address.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/tcp.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/posixbase.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/unix.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/pollreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/gtk3reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/__init__.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/threads.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_posixstdio.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/cfreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/defer.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/base.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_idna.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/endpoints.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_newtls.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_resolver.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/ssl.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_dumbwin32proc.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/udp.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/setup.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/winsock_pointers.c
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/winsock_pointers.h
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/wsasend.pxi
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/wsarecv.pxi
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/acceptex.pxi
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/iocpsupport.c
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/iocpsupport.pyx
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/iocpsupport/connectex.pxi
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/notes.txt
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/tcp.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/reactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/__init__.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/const.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/build.bat
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/abstract.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/iocpreactor/interfaces.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/tksupport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_win32serialport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_win32stdio.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/selectreactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_posixserialport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/default.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/fdesc.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/error.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/pyuisupport.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_pollingfile.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/_threadedselect.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/gireactor.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/abstract.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/utils.pyc
> /usr/lib/python2.7/site-packages/twisted/internet/interfaces.pyc
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/SOURCES.txt
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/top_level.txt
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/zip-safe
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/PKG-INFO
> /usr/lib/python2.7/site-packages/netifaces-0.10.6-py2.7.egg-info/dependency_links.txt
> /usr/lib/python2.7/site-packages/zeroconf.pyc
> /usr/lib/python2.7/site-packages/README
> /usr/lib/python2.7/site-packages/zeroconf.py
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/not-zip-safe
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/SOURCES.txt
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/top_level.txt
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/requires.txt
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/PKG-INFO
> /usr/lib/python2.7/site-packages/autobahn-17.10.1-py2.7.egg-info/dependency_links.txt
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/SOURCES.txt
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/top_level.txt
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/PKG-INFO
> /usr/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg-info/dependency_links.txt
>
>
> when I run the Beremiz_service.py script with the fallowing command I get
> this error :
> Beremiz# python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1
> ~/Beremiz/beremiz_workdir
> Twisted unavailable.

This is strange. I would expect twisted to be available on your system.

>
> Traceback (most recent call last):
>   File "Beremiz_service.py", line 645, in <module>
>     pyroserver.Loop()
>   File "Beremiz_service.py", line 424, in Loop
>     self.daemon = pyro.Daemon(host=self.ip_addr, port=self.port)
>   File "usr/lib/python2.7/site-packages/Pyro/core.py", line 577, in __init__
> DaemonError: Couldn't start Pyro daemon: [Errno 99] Cannot assign requested
> adds

I think you have problem with 'localhost'
Are you sure that localhost resolves correctly to IP address of your
target board?
Could you show us output of these commands?

$ cat /etc/hosts
$ ping localhost


Try to launch Beremiz_service.py without '-i localhost'. Or try to use
your local IP: '-i 192.168.2.100'.

> I'm guessing maybe this is because of my eth0 configuration settings. eth0
> is configured manually by this script:
>
>
> ifconfig eth0 down
> ifconfig eth0 192.168.2.100 netmask 255.255.255.0 up
> ifconfig eth0
> route -n
> route add default gw 192.168.2.1
> route -n

No, this shouldn't be a problem.


>
> I really appreciate your time and guidance
>
> All the best,
> Erfan Yousefian
>
>
> On Tue, Aug 21, 2018 at 7:07 PM Andrey Skvortsov <[hidden email]>
> wrote:
>
> > Hi Erfan,
> >
> > On 18-08-21 18:42, erfan you wrote:
> > > Hi
> > >
> > > I'm trying to execute beremize_service.py runtime on my embedded arm
> > device.
> > >
> > > I'm using Buildroot to make the cross toolchain, filesystem and etc
> > >
> > > by following the instructions provided in <a href="
> > >
> > https://bitbucket.org/automforge/beremiz/wiki/Build%20minimal%20Beremiz%20runtime%20with%20Buildroot
> > ">this</a>
> > > link (by Andrey Skvortsov) I created all the required python scripts were
> > > mentioned in it.
> > >
> > > I also have enabled the python-pyro package in the Buildroot
> > >
> > > but when I try to run the Beremiz_service.py the following error appears
> > :
> > >
> > > Traceback (most recent call last):
> > >   File "./Beremiz_service.py", line 36, in <module>
> > >     import Pyro.core as pyro
> > > ImportError: No module named Pyro.core
> >
> > Pyro module is certainly missing.
> >
> >
> > > here is some info of my embedded Linux :
> > >
> > > -----------------------------------
> > > find / -name *pyro*
> > >
> > > /usr/bin/pyro-wxnsc
> > > /usr/bin/pyro-es
> > > /usr/bin/pyro-ns
> > > /usr/bin/pyro-esd
> > > /usr/bin/pyro-nsc
> > > /usr/bin/pyro-nsd
> > > /usr/bin/pyro-xnsc
> > > /usr/bin/pyro-genguid
> > > -----------------------------------
> > > ls /usr/lib/python2.7/site-packages/
> > >
> > > README       zeroconf.py
> >
> >
> > Here is my output:
> >
> > developer@ST-37:~/WorkData/PLC/buildroot/buildroot (git)-[master] $ cat
> > .config | grep -i pyro
> > BR2_PACKAGE_PYTHON_PYRO=y
> > # BR2_PACKAGE_PYTHON_PYROUTE2 is not set
> >
> > developer@ST-37:~/WorkData/PLC/buildroot/buildroot (git)-[master] $ find
> > output/target/ | grep -i pyro
> > output/target/usr/lib/python2.7/site-packages/Pyro
> > output/target/usr/lib/python2.7/site-packages/Pyro/xnsc.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/errors.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/constants.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/naming.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/util.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/nsc.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/wxnsc.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/test
> > output/target/usr/lib/python2.7/site-packages/Pyro/test/echoserver.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/test/__init__.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/__init__.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/BasicNTService.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/remote.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/__init__.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/ES_NtService.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/remote_nons.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/ServiceTest.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/daemonizer.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/ext/NS_NtService.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/protocol.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/configuration.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/util2.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/core.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Server.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Event.pyc
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService/__init__.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro/EventService/Clients.pyc
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/SOURCES.txt
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/PKG-INFO
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/dependency_links.txt
> >
> > output/target/usr/lib/python2.7/site-packages/Pyro-3.16-py2.7.egg-info/top_level.txt
> > output/target/usr/bin/pyro-nsc
> > output/target/usr/bin/pyro-genguid
> > output/target/usr/bin/pyro-es
> > output/target/usr/bin/pyro-xnsc
> > output/target/usr/bin/pyro-ns
> > output/target/usr/bin/pyro-esd
> > output/target/usr/bin/pyro-nsd
> > output/target/usr/bin/pyro-wxnsc
> >
> >
> > As you see I *do* have python-pyro package in my rootfs.
> >
> > > -----------------------------------
> > > ls /root/beremiz/
> > >
> > > Beremiz_service.py  runtime             util
> > > -----------------------------------
> > > ls /root/beremiz/runtime/
> > >
> > > Beremiz_service.py   WampClient.py        webinterface.js
> > > NevowServer.py       __init__.py          xenomai.py
> > > PLCObject.py         loglevels.py
> > > ServicePublisher.py  typemapping.py
> > > -----------------------------------
> > > ls /root/beremiz/util/
> > >
> > > BitmapLibrary.py        ProcessLogger.py        misc.py
> > > ExceptionHandler.py     TranslationCatalogs.py  paths.py
> > > MiniTextControler.py    __init__.py
> > > -----------------------------------
> > > python --version
> > > Python 2.7.8
> > > -----------------------------------
> > > uname -a
> > > Linux buildroot 3.10.20 #3 Mon Dec 12 20:17:55 EET 2016 armv5tejU/Linux
> > > -----------------------------------
> > >
> > >
> > > Best regards
> > > Erfan Yousefian
> >
> >
> > --
> > Best regards,
> > Andrey Skvortsov
> >
> > ------------------------------------------------------------------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Beremiz-devel mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/beremiz-devel
> >

--
Best regards,
Andrey Skvortsov


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
skv
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] running Beremiz runtime on embedded linux ARM architecture, Error: no module name Pyro.core

skv
Administrator
Hi Erfan,

On 18-09-02 18:42, erfan you wrote:

> I'm guessing that maybe I have not copied all the required files from
> Buildroot's output directory to my target board
>
> I copied all the required libraries from
> /buildroot/output/target/usr/lib/python2.7/site-packages
> I coped the "twist" and  "twistd" files from
> /buildroot/output/target/usr/bin/  to the target
>
> I cannot copy the whole image to my target. So, I have to do it one by one
>
> Am I missing some files here?
Most likely. Why can't you copy all python libraries from buildroot
generated rootfs? The whole rootfs in my example in wiki article is
only 19Mb.

Does following command executed successfully?
$ python -c "from twisted.internet import reactor"

> On Sun, Sep 2, 2018 at 6:18 PM erfan you <[hidden email]> wrote:
>
> > I'm sorry, but I've just found out that /etc/network/interfaces file had
> > some wrong configuration for "lo" interface, and also the /etc/resolv.conf
> > was missing. I don't know how that happened, but now pinging localhost is
> > working
> >
> > now by running the Beremiz_service.py the error has changed but it still
> > complains about "twisted" not being available
> >
> >  here is the output:
> >
> > ---------------------------------------------------------------
> > root ~ # ping -w 5 localhost
> > PING localhost (127.0.0.1): 56 data bytes
> > 64 bytes from 127.0.0.1: seq=0 ttl=64 time=0.729 ms
> > 64 bytes from 127.0.0.1: seq=1 ttl=64 time=0.696 ms
> > 64 bytes from 127.0.0.1: seq=2 ttl=64 time=0.695 ms
> > 64 bytes from 127.0.0.1: seq=3 ttl=64 time=0.701 ms
> > 64 bytes from 127.0.0.1: seq=4 ttl=64 time=0.702 ms
> >
> > --- localhost ping statistics ---
> > 5 packets transmitted, 5 packets received, 0% packet loss
> > round-trip min/avg/max = 0.695/0.704/0.729 ms
> > ---------------------------------------------------------------
> > root ~ # cat /etc/resolv.conf
> > nameserver 192.168.2.1
> > ---------------------------------------------------------------
> >
> > root ~ # cat /etc/network/interfaces
> > # The loopback network interface
> > auto lo
> > iface lo inet loopback
> >
> > # The primary network interface
> > iface eth0 inet static
> > address 192.168.2.100
> > gatway 192.168.2.254
> > netmask 255.255.255.0
> > broadcast 192.168.2.254
> > network 192.168.2.0
> > dns-nameservers 192.168.2.254
> > ---------------------------------------------------------------
> >
> > root Beremiz # python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1
> > ~/Beremiz/beremiz_workdir
> > Twisted unavailable.
> >
> > Traceback (most recent call last):
> >   File "Beremiz_service.py", line 645, in <module>
> >     pyroserver.Loop()
> >   File "Beremiz_service.py", line 429, in Loop
> >     self.Start()
> >   File "Beremiz_service.py", line 446, in Start
> >     self.pyruntimevars)
> > TypeError: __init__() takes exactly 2 arguments (7 given)
> >
Just to be sure. Are you using latest Beremiz version from automforge repository?


--
Best regards,
Andrey Skvortsov



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] running Beremiz runtime on embedded linux ARM architecture, Error: no module name Pyro.core

Erfan
Hi Andrey

I have limited free space (about 30 mb) available on the board which is needed for storing application data.

I tried to run "$ python -c "from twisted.internet import reactor" and got some errors about importing libraries, and after adding three following libs there is nor further importing errors :

libs: incremental, constantly, zope

 and the "twisted" error is also gone. unfortunately, now I'm faced with a new error:

# python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1 ~/beremiz/beremiz_workdir
Nevow/Athena import failed : No module named nevow

Traceback (most recent call last):
  File "Beremiz_service.py", line 589, in <module>
    NS.WorkingDir = WorkingDir
NameError: name 'NS' is not defined

there is no python-nevow package available in buildroot to be selected.

> Just to be sure. Are you using latest Beremiz version from automforge repository?

I'm using version 2018.05 downloaded from https://buildroot.org/downloads/snapshots/


can use please send me a full list of your /usr/lib/python2.7/site-packages/ directory?
I look inside the image file and there is no nevow library in there except for the NevowServer.py that you added to the layout

On Mon, Sep 3, 2018 at 2:46 AM Andrey Skvortsov <[hidden email]> wrote:
Hi Erfan,

On 18-09-02 18:42, erfan you wrote:
> I'm guessing that maybe I have not copied all the required files from
> Buildroot's output directory to my target board
>
> I copied all the required libraries from
> /buildroot/output/target/usr/lib/python2.7/site-packages
> I coped the "twist" and  "twistd" files from
> /buildroot/output/target/usr/bin/  to the target
>
> I cannot copy the whole image to my target. So, I have to do it one by one
>
> Am I missing some files here?

Most likely. Why can't you copy all python libraries from buildroot
generated rootfs? The whole rootfs in my example in wiki article is
only 19Mb.

Does following command executed successfully?
$ python -c "from twisted.internet import reactor"

> On Sun, Sep 2, 2018 at 6:18 PM erfan you <[hidden email]> wrote:
>
> > I'm sorry, but I've just found out that /etc/network/interfaces file had
> > some wrong configuration for "lo" interface, and also the /etc/resolv.conf
> > was missing. I don't know how that happened, but now pinging localhost is
> > working
> >
> > now by running the Beremiz_service.py the error has changed but it still
> > complains about "twisted" not being available
> >
> >  here is the output:
> >
> > ---------------------------------------------------------------
> > root ~ # ping -w 5 localhost
> > PING localhost (127.0.0.1): 56 data bytes
> > 64 bytes from 127.0.0.1: seq=0 ttl=64 time=0.729 ms
> > 64 bytes from 127.0.0.1: seq=1 ttl=64 time=0.696 ms
> > 64 bytes from 127.0.0.1: seq=2 ttl=64 time=0.695 ms
> > 64 bytes from 127.0.0.1: seq=3 ttl=64 time=0.701 ms
> > 64 bytes from 127.0.0.1: seq=4 ttl=64 time=0.702 ms
> >
> > --- localhost ping statistics ---
> > 5 packets transmitted, 5 packets received, 0% packet loss
> > round-trip min/avg/max = 0.695/0.704/0.729 ms
> > ---------------------------------------------------------------
> > root ~ # cat /etc/resolv.conf
> > nameserver 192.168.2.1
> > ---------------------------------------------------------------
> >
> > root ~ # cat /etc/network/interfaces
> > # The loopback network interface
> > auto lo
> > iface lo inet loopback
> >
> > # The primary network interface
> > iface eth0 inet static
> > address 192.168.2.100
> > gatway 192.168.2.254
> > netmask 255.255.255.0
> > broadcast 192.168.2.254
> > network 192.168.2.0
> > dns-nameservers 192.168.2.254
> > ---------------------------------------------------------------
> >
> > root Beremiz # python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1
> > ~/Beremiz/beremiz_workdir
> > Twisted unavailable.
> >
> > Traceback (most recent call last):
> >   File "Beremiz_service.py", line 645, in <module>
> >     pyroserver.Loop()
> >   File "Beremiz_service.py", line 429, in Loop
> >     self.Start()
> >   File "Beremiz_service.py", line 446, in Start
> >     self.pyruntimevars)
> > TypeError: __init__() takes exactly 2 arguments (7 given)
> >

Just to be sure. Are you using latest Beremiz version from automforge repository?


--
Best regards,
Andrey Skvortsov


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
skv
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] running Beremiz runtime on embedded linux ARM architecture, Error: no module name Pyro.core

skv
Administrator
Hi Erfan,

On 18-09-03 17:35, erfan you wrote:
> Hi Andrey
>
> I have limited free space (about 30 mb) available on the board which is
> needed for storing application data.

OK, I see.

> I tried to run "$ python -c "from twisted.internet import reactor" and got
> some errors about importing libraries, and after adding three following
> libs there is nor further importing errors :
>
> libs: incremental, constantly, zope

Good.

>  and the "twisted" error is also gone. unfortunately, now I'm faced with a
> new error:
>
> # python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1
> ~/beremiz/beremiz_workdir
> Nevow/Athena import failed : No module named nevow
>
> Traceback (most recent call last):
>   File "Beremiz_service.py", line 589, in <module>
>     NS.WorkingDir = WorkingDir
> NameError: name 'NS' is not defined
>
> there is no python-nevow package available in buildroot to be selected.


> > Just to be sure. Are you using latest Beremiz version from automforge
> repository?
>
> I'm using version 2018.05 downloaded from
> https://buildroot.org/downloads/snapshots/
>
>
> can use please send me a full list of your
> /usr/lib/python2.7/site-packages/ directory?
> I look inside the image file and there is no nevow library in there except
> for the NevowServer.py that you added to the layout

Do you really need Nevow and Twisted? They are used for web interface
controlled from PLC runtime, if you don't need one, can just run
Beremiz_service.py with '-t 0' and '-w 0'.

> On Mon, Sep 3, 2018 at 2:46 AM Andrey Skvortsov <[hidden email]>
> wrote:
>
> > Hi Erfan,
> >
> > On 18-09-02 18:42, erfan you wrote:
> > > I'm guessing that maybe I have not copied all the required files from
> > > Buildroot's output directory to my target board
> > >
> > > I copied all the required libraries from
> > > /buildroot/output/target/usr/lib/python2.7/site-packages
> > > I coped the "twist" and  "twistd" files from
> > > /buildroot/output/target/usr/bin/  to the target
> > >
> > > I cannot copy the whole image to my target. So, I have to do it one by
> > one
> > >
> > > Am I missing some files here?
> >
> > Most likely. Why can't you copy all python libraries from buildroot
> > generated rootfs? The whole rootfs in my example in wiki article is
> > only 19Mb.
> >
> > Does following command executed successfully?
> > $ python -c "from twisted.internet import reactor"
> >
> > > On Sun, Sep 2, 2018 at 6:18 PM erfan you <[hidden email]> wrote:
> > >
> > > > I'm sorry, but I've just found out that /etc/network/interfaces file
> > had
> > > > some wrong configuration for "lo" interface, and also the
> > /etc/resolv.conf
> > > > was missing. I don't know how that happened, but now pinging localhost
> > is
> > > > working
> > > >
> > > > now by running the Beremiz_service.py the error has changed but it
> > still
> > > > complains about "twisted" not being available
> > > >
> > > >  here is the output:
> > > >
> > > > ---------------------------------------------------------------
> > > > root ~ # ping -w 5 localhost
> > > > PING localhost (127.0.0.1): 56 data bytes
> > > > 64 bytes from 127.0.0.1: seq=0 ttl=64 time=0.729 ms
> > > > 64 bytes from 127.0.0.1: seq=1 ttl=64 time=0.696 ms
> > > > 64 bytes from 127.0.0.1: seq=2 ttl=64 time=0.695 ms
> > > > 64 bytes from 127.0.0.1: seq=3 ttl=64 time=0.701 ms
> > > > 64 bytes from 127.0.0.1: seq=4 ttl=64 time=0.702 ms
> > > >
> > > > --- localhost ping statistics ---
> > > > 5 packets transmitted, 5 packets received, 0% packet loss
> > > > round-trip min/avg/max = 0.695/0.704/0.729 ms
> > > > ---------------------------------------------------------------
> > > > root ~ # cat /etc/resolv.conf
> > > > nameserver 192.168.2.1
> > > > ---------------------------------------------------------------
> > > >
> > > > root ~ # cat /etc/network/interfaces
> > > > # The loopback network interface
> > > > auto lo
> > > > iface lo inet loopback
> > > >
> > > > # The primary network interface
> > > > iface eth0 inet static
> > > > address 192.168.2.100
> > > > gatway 192.168.2.254
> > > > netmask 255.255.255.0
> > > > broadcast 192.168.2.254
> > > > network 192.168.2.0
> > > > dns-nameservers 192.168.2.254
> > > > ---------------------------------------------------------------
> > > >
> > > > root Beremiz # python Beremiz_service.py -p 61194 -i localhost -x 0 -a
> > 1
> > > > ~/Beremiz/beremiz_workdir
> > > > Twisted unavailable.
> > > >
> > > > Traceback (most recent call last):
> > > >   File "Beremiz_service.py", line 645, in <module>
> > > >     pyroserver.Loop()
> > > >   File "Beremiz_service.py", line 429, in Loop
> > > >     self.Start()
> > > >   File "Beremiz_service.py", line 446, in Start
> > > >     self.pyruntimevars)
> > > > TypeError: __init__() takes exactly 2 arguments (7 given)
> > > >
> >
> > Just to be sure. Are you using latest Beremiz version from automforge
> > repository?
> >
> >
> > --
> > Best regards,
> > Andrey Skvortsov
> >

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] running Beremiz runtime on embedded linux ARM architecture, Error: no module name Pyro.core

Erfan
> Do you really need Nevow and Twisted? They are used for web interface
> controlled from PLC runtime, if you don't need one, can just run
> Beremiz_service.py with '-t 0' and '-w 0'.


Oh, I didn't notice that. the '-t 0 -w 0' options have solved the "nevow" error

now when I execute the following command :

# python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1 -t 0 -w 0 ~/beremiz/beremiz_workdir

I have 

Traceback (most recent call last):
  File "Beremiz_service.py", line 645, in <module>
    pyroserver.Loop()
  File "Beremiz_service.py", line 429, in Loop
    self.Start()
  File "Beremiz_service.py", line 446, in Start
    self.pyruntimevars)
TypeError: __init__() takes exactly 2 arguments (7 given)


On Tue, Sep 4, 2018 at 12:40 AM Andrey Skvortsov <[hidden email]> wrote:
Hi Erfan,

On 18-09-03 17:35, erfan you wrote:
> Hi Andrey
>
> I have limited free space (about 30 mb) available on the board which is
> needed for storing application data.

OK, I see.

> I tried to run "$ python -c "from twisted.internet import reactor" and got
> some errors about importing libraries, and after adding three following
> libs there is nor further importing errors :
>
> libs: incremental, constantly, zope

Good.

>  and the "twisted" error is also gone. unfortunately, now I'm faced with a
> new error:
>
> # python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1
> ~/beremiz/beremiz_workdir
> Nevow/Athena import failed : No module named nevow
>
> Traceback (most recent call last):
>   File "Beremiz_service.py", line 589, in <module>
>     NS.WorkingDir = WorkingDir
> NameError: name 'NS' is not defined
>
> there is no python-nevow package available in buildroot to be selected.


> > Just to be sure. Are you using latest Beremiz version from automforge
> repository?
>
> I'm using version 2018.05 downloaded from
> https://buildroot.org/downloads/snapshots/
>
>
> can use please send me a full list of your
> /usr/lib/python2.7/site-packages/ directory?
> I look inside the image file and there is no nevow library in there except
> for the NevowServer.py that you added to the layout

Do you really need Nevow and Twisted? They are used for web interface
controlled from PLC runtime, if you don't need one, can just run
Beremiz_service.py with '-t 0' and '-w 0'.

> On Mon, Sep 3, 2018 at 2:46 AM Andrey Skvortsov <[hidden email]>
> wrote:
>
> > Hi Erfan,
> >
> > On 18-09-02 18:42, erfan you wrote:
> > > I'm guessing that maybe I have not copied all the required files from
> > > Buildroot's output directory to my target board
> > >
> > > I copied all the required libraries from
> > > /buildroot/output/target/usr/lib/python2.7/site-packages
> > > I coped the "twist" and  "twistd" files from
> > > /buildroot/output/target/usr/bin/  to the target
> > >
> > > I cannot copy the whole image to my target. So, I have to do it one by
> > one
> > >
> > > Am I missing some files here?
> >
> > Most likely. Why can't you copy all python libraries from buildroot
> > generated rootfs? The whole rootfs in my example in wiki article is
> > only 19Mb.
> >
> > Does following command executed successfully?
> > $ python -c "from twisted.internet import reactor"
> >
> > > On Sun, Sep 2, 2018 at 6:18 PM erfan you <[hidden email]> wrote:
> > >
> > > > I'm sorry, but I've just found out that /etc/network/interfaces file
> > had
> > > > some wrong configuration for "lo" interface, and also the
> > /etc/resolv.conf
> > > > was missing. I don't know how that happened, but now pinging localhost
> > is
> > > > working
> > > >
> > > > now by running the Beremiz_service.py the error has changed but it
> > still
> > > > complains about "twisted" not being available
> > > >
> > > >  here is the output:
> > > >
> > > > ---------------------------------------------------------------
> > > > root ~ # ping -w 5 localhost
> > > > PING localhost (127.0.0.1): 56 data bytes
> > > > 64 bytes from 127.0.0.1: seq=0 ttl=64 time=0.729 ms
> > > > 64 bytes from 127.0.0.1: seq=1 ttl=64 time=0.696 ms
> > > > 64 bytes from 127.0.0.1: seq=2 ttl=64 time=0.695 ms
> > > > 64 bytes from 127.0.0.1: seq=3 ttl=64 time=0.701 ms
> > > > 64 bytes from 127.0.0.1: seq=4 ttl=64 time=0.702 ms
> > > >
> > > > --- localhost ping statistics ---
> > > > 5 packets transmitted, 5 packets received, 0% packet loss
> > > > round-trip min/avg/max = 0.695/0.704/0.729 ms
> > > > ---------------------------------------------------------------
> > > > root ~ # cat /etc/resolv.conf
> > > > nameserver 192.168.2.1
> > > > ---------------------------------------------------------------
> > > >
> > > > root ~ # cat /etc/network/interfaces
> > > > # The loopback network interface
> > > > auto lo
> > > > iface lo inet loopback
> > > >
> > > > # The primary network interface
> > > > iface eth0 inet static
> > > > address 192.168.2.100
> > > > gatway 192.168.2.254
> > > > netmask 255.255.255.0
> > > > broadcast 192.168.2.254
> > > > network 192.168.2.0
> > > > dns-nameservers 192.168.2.254
> > > > ---------------------------------------------------------------
> > > >
> > > > root Beremiz # python Beremiz_service.py -p 61194 -i localhost -x 0 -a
> > 1
> > > > ~/Beremiz/beremiz_workdir
> > > > Twisted unavailable.
> > > >
> > > > Traceback (most recent call last):
> > > >   File "Beremiz_service.py", line 645, in <module>
> > > >     pyroserver.Loop()
> > > >   File "Beremiz_service.py", line 429, in Loop
> > > >     self.Start()
> > > >   File "Beremiz_service.py", line 446, in Start
> > > >     self.pyruntimevars)
> > > > TypeError: __init__() takes exactly 2 arguments (7 given)
> > > >
> >
> > Just to be sure. Are you using latest Beremiz version from automforge
> > repository?
> >
> >
> > --
> > Best regards,
> > Andrey Skvortsov
> >

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
skv
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] running Beremiz runtime on embedded linux ARM architecture, Error: no module name Pyro.core

skv
Administrator
Hi Erfan,

On 18-09-04 10:06, erfan you wrote:

> > Do you really need Nevow and Twisted? They are used for web interface
> > controlled from PLC runtime, if you don't need one, can just run
> > Beremiz_service.py with '-t 0' and '-w 0'.
>
> Oh, I didn't notice that. the '-t 0 -w 0' options have solved the "nevow"
> error
>
> now when I execute the following command :
>
> # python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1 -t 0 -w 0
> ~/beremiz/beremiz_workdir
>
> I have
>
> Traceback (most recent call last):
>   File "Beremiz_service.py", line 645, in <module>
>     pyroserver.Loop()
>   File "Beremiz_service.py", line 429, in Loop
>     self.Start()
>   File "Beremiz_service.py", line 446, in Start
>     self.pyruntimevars)
> TypeError: __init__() takes exactly 2 arguments (7 given)

Just to be sure.
Are you using latest *Beremiz* version from automforge
repository? Where have you taken Beremiz_service source code?
Because in my Beremiz_service.py line 446 does *not* correspond to
function Start.

BTW which version of pyro are you using?


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] running Beremiz runtime on embedded linux ARM architecture, Error: no module name Pyro.core

Erfan
> Just to be sure.
> Are you using latest *Beremiz* version from automforge
> repository? Where have you taken Beremiz_service source code?
> Because in my Beremiz_service.py line 446 does *not* correspond to
> function Start.


I thought that I was using the latest version, but my colleague had downloaded it from the http://hg.beremiz.org
Now that I've downloaded it from the link you've provided and replaced all the files in the overlay directory with the new files, the previous errors are gone, but we still have some problems.

# python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1 -t 0 -w 0 ~/beremiz/be
remiz_workdir
Traceback (most recent call last):
  File "Beremiz_service.py", line 148, in <module>
    version()
  File "Beremiz_service.py", line 45, in version
    from version import app_version
ImportError: No module named version


> BTW which version of pyro are you using?

I believe it is version 3.16



On Tue, Sep 4, 2018 at 10:23 AM Andrey Skvortsov <[hidden email]> wrote:
Hi Erfan,

On 18-09-04 10:06, erfan you wrote:
> > Do you really need Nevow and Twisted? They are used for web interface
> > controlled from PLC runtime, if you don't need one, can just run
> > Beremiz_service.py with '-t 0' and '-w 0'.
>
> Oh, I didn't notice that. the '-t 0 -w 0' options have solved the "nevow"
> error
>
> now when I execute the following command :
>
> # python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1 -t 0 -w 0
> ~/beremiz/beremiz_workdir
>
> I have
>
> Traceback (most recent call last):
>   File "Beremiz_service.py", line 645, in <module>
>     pyroserver.Loop()
>   File "Beremiz_service.py", line 429, in Loop
>     self.Start()
>   File "Beremiz_service.py", line 446, in Start
>     self.pyruntimevars)
> TypeError: __init__() takes exactly 2 arguments (7 given)

Just to be sure.
Are you using latest *Beremiz* version from automforge
repository? Where have you taken Beremiz_service source code?
Because in my Beremiz_service.py line 446 does *not* correspond to
function Start.

BTW which version of pyro are you using?


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
skv
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] running Beremiz runtime on embedded linux ARM architecture, Error: no module name Pyro.core

skv
Administrator
On 18-09-04 12:38, erfan you wrote:

> > Just to be sure.
> > Are you using latest *Beremiz* version from automforge
> > repository? Where have you taken Beremiz_service source code?
> > Because in my Beremiz_service.py line 446 does *not* correspond to
> > function Start.
>
> I thought that I was using the latest version, but my colleague had
> downloaded it from the http://hg.beremiz.org
> Now that I've downloaded it from the link you've provided and replaced all
> the files in the overlay directory with the new files, the previous
> errors are gone, but we still have some problems.
>
> # python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1 -t 0 -w 0
> ~/beremiz/be
> remiz_workdir
> Traceback (most recent call last):
>   File "Beremiz_service.py", line 148, in <module>
>     version()
>   File "Beremiz_service.py", line 45, in version
>     from version import app_version
> ImportError: No module named version
That was introduced by one of the last commits. Just copy version.py
from the repo to your target.

> > BTW which version of pyro are you using?
>
> I believe it is version 3.16
Ok. That's correct.
 

>
>
>
> On Tue, Sep 4, 2018 at 10:23 AM Andrey Skvortsov <[hidden email]>
> wrote:
>
> > Hi Erfan,
> >
> > On 18-09-04 10:06, erfan you wrote:
> > > > Do you really need Nevow and Twisted? They are used for web interface
> > > > controlled from PLC runtime, if you don't need one, can just run
> > > > Beremiz_service.py with '-t 0' and '-w 0'.
> > >
> > > Oh, I didn't notice that. the '-t 0 -w 0' options have solved the "nevow"
> > > error
> > >
> > > now when I execute the following command :
> > >
> > > # python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1 -t 0 -w 0
> > > ~/beremiz/beremiz_workdir
> > >
> > > I have
> > >
> > > Traceback (most recent call last):
> > >   File "Beremiz_service.py", line 645, in <module>
> > >     pyroserver.Loop()
> > >   File "Beremiz_service.py", line 429, in Loop
> > >     self.Start()
> > >   File "Beremiz_service.py", line 446, in Start
> > >     self.pyruntimevars)
> > > TypeError: __init__() takes exactly 2 arguments (7 given)
> >
> > Just to be sure.
> > Are you using latest *Beremiz* version from automforge
> > repository? Where have you taken Beremiz_service source code?
> > Because in my Beremiz_service.py line 446 does *not* correspond to
> > function Start.
> >
> > BTW which version of pyro are you using?
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Beremiz-devel mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/beremiz-devel
> >

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Beremiz-devel] running Beremiz runtime on embedded linux ARM architecture, Error: no module name Pyro.core

Erfan
> That was introduced by one of the last commits. Just copy version.py
> from the repo to your target.

Yes, that does it.

Finally, the Beremiz service is up and running on my device.

Thank you very much, Andrey, for your time and guidance  

On Tue, Sep 4, 2018 at 2:12 PM Andrey Skvortsov <[hidden email]> wrote:
On 18-09-04 12:38, erfan you wrote:
> > Just to be sure.
> > Are you using latest *Beremiz* version from automforge
> > repository? Where have you taken Beremiz_service source code?
> > Because in my Beremiz_service.py line 446 does *not* correspond to
> > function Start.
>
> I thought that I was using the latest version, but my colleague had
> downloaded it from the http://hg.beremiz.org
> Now that I've downloaded it from the link you've provided and replaced all
> the files in the overlay directory with the new files, the previous
> errors are gone, but we still have some problems.
>
> # python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1 -t 0 -w 0
> ~/beremiz/be
> remiz_workdir
> Traceback (most recent call last):
>   File "Beremiz_service.py", line 148, in <module>
>     version()
>   File "Beremiz_service.py", line 45, in version
>     from version import app_version
> ImportError: No module named version
That was introduced by one of the last commits. Just copy version.py
from the repo to your target.

> > BTW which version of pyro are you using?
>
> I believe it is version 3.16
Ok. That's correct.

>
>
>
> On Tue, Sep 4, 2018 at 10:23 AM Andrey Skvortsov <[hidden email]>
> wrote:
>
> > Hi Erfan,
> >
> > On 18-09-04 10:06, erfan you wrote:
> > > > Do you really need Nevow and Twisted? They are used for web interface
> > > > controlled from PLC runtime, if you don't need one, can just run
> > > > Beremiz_service.py with '-t 0' and '-w 0'.
> > >
> > > Oh, I didn't notice that. the '-t 0 -w 0' options have solved the "nevow"
> > > error
> > >
> > > now when I execute the following command :
> > >
> > > # python Beremiz_service.py -p 61194 -i localhost -x 0 -a 1 -t 0 -w 0
> > > ~/beremiz/beremiz_workdir
> > >
> > > I have
> > >
> > > Traceback (most recent call last):
> > >   File "Beremiz_service.py", line 645, in <module>
> > >     pyroserver.Loop()
> > >   File "Beremiz_service.py", line 429, in Loop
> > >     self.Start()
> > >   File "Beremiz_service.py", line 446, in Start
> > >     self.pyruntimevars)
> > > TypeError: __init__() takes exactly 2 arguments (7 given)
> >
> > Just to be sure.
> > Are you using latest *Beremiz* version from automforge
> > repository? Where have you taken Beremiz_service source code?
> > Because in my Beremiz_service.py line 446 does *not* correspond to
> > function Start.
> >
> > BTW which version of pyro are you using?
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Beremiz-devel mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/beremiz-devel
> >

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel