- changed status to closed
project WAMPTest Exception while connecting WAMP
Issue #39
closed
Distribution ALT Linux.
Project WAMPTest Successfully built:
Start build in /home/antohami/gear/beremiz/beremiz/tests/wamp/build
Generating SoftPLC IEC-61131 ST/IL/SFC code...
Compiling IEC Program into C code...
Extracting Located Variables...
C code generated successfully.
PLC :
[CC] plc_main.c -> plc_main.o
/home/antohami/gear/beremiz/beremiz/tests/wamp/build/plc_main.c: In function 'CheckFilehash':
/home/antohami/gear/beremiz/beremiz/tests/wamp/build/plc_main.c:438:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
fread(&size, sizeof(size), 1, retain_buffer);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/antohami/gear/beremiz/beremiz/tests/wamp/build/plc_main.c:444:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
fread(&file_digit, sizeof(char), 1, retain_buffer);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/antohami/gear/beremiz/beremiz/tests/wamp/build/plc_main.c: In function 'Remind':
/home/antohami/gear/beremiz/beremiz/tests/wamp/build/plc_main.c:648:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
fread((void *)p, count, 1, retain_buffer);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[CC] plc_debugger.c -> plc_debugger.o
[CC] config.c -> config.o
[CC] resource1.c -> resource1.o
0 :
[CC] PyCFile_0.c -> PyCFile_0.o
Linking :
[CC] plc_main.o plc_debugger.o config.o resource1.o PyCFile_0.o -> wamp.so
Successfully built.
But when you connect an error:
Exception while connecting WAMP://127.0.0.1:8888#Automation#WampID!
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/beremiz/ProjectController.py", line 1797, in _Connect
self._SetConnector(connectors.ConnectorFactory(uri, self))
File "/usr/lib/python2.7/site-packages/beremiz/connectors/__init__.py", line 83, in ConnectorFactory
connectorclass = connectors[servicetype]()
File "/usr/lib/python2.7/site-packages/beremiz/connectors/__init__.py", line 37, in <lambda>
return lambda: getattr(__import__(name, globals(), locals()), name + "_connector_factory")
File "/usr/lib/python2.7/site-packages/beremiz/connectors/WAMP/__init__.py", line 37, in <module>
from autobahn.wamp.serializer import MsgPackSerializer
ImportError: cannot import name MsgPackSerializer
Connection failed to WAMP://127.0.0.1:8888#Automation#WampID!
Used python-module-autobahn-17.7.1
Comments (1)
-
- Log in to comment
Cleanup WAMP example
Closes
#39→ <<cset 52afa2dec4fb>>