/userfs/WEB/python $ python tcp_zig_dynamic_mapping.py
name ‘zigbee’ is not defined
Failed to retrieve hardware version from local radio
Assuming it’s a series 1 device
Traceback (most recent call last):
File “tcp_zig_dynamic_mapping.py”, line 125, in
zig_sock = socket(socket.AF_ZIGBEE, socket.SOCK_DGRAM, ZBS_PROT_TRANSPORT)
NameError: name ‘ZBS_PROT_TRANSPORT’ is not defined
Have done all recommendations but still no luck.
Version:
Python 2.7.1 (r271:86832, Jul 28 2017, 00:19:06)
[GCC 4.4.6] on linux2
Can someone guide if any in-built or digi python module needs to be changed.
Thanks for the same.
Did not include zigbee.py but error shifted to bit earlier itself.
Traceback (most recent call last):
File “tcp_zig_dynamic_mapping.py”, line 125, in
zig_sock = socket(socket.AF_ZIGBEE, socket.SOCK_DGRAM, ZBS_PROT_TRANSPORT)
AttributeError: ‘module’ object has no attribute ‘AF_ZIGBEE’
And , excluded socket.py and error again shifter to earlier meaning both socket and zigbee modules are needed.
Is there any reason python.zip might be corrupted or need to be reinstalled and any ways to do that?
Steps performed (BusyBox v1.20.2)
-Download python.zip(actually renaming downloaded folder)
-Copying over “/userfs/WEB/python”
-Python tcp_zig_dynamic_mapping.py (same error as above)
-This was done after reboot etc.
And with change
"import sys,zipimport
sys.path.append(“WEB/Python/Python.zip”)
"
Thanks , but seems did not help and threw different error.
/userfs/WEB/python $ python tcp_zig_dynamic_mapping.py
Detected Series 2 radio in gateway, configuring zigbee socket appropriately
Traceback (most recent call last):
File “tcp_zig_dynamic_mapping.py”, line 128, in
zig_sock = socket.socket(socket.AF_ZIGBEE)
File “/usr/lib/python2.7/socket.py”, line 187, in init
File “usr/lib/python2.7/site-packages/xbee_socket_hal.py”, line 107, in new
socket.error: [Errno 0] Error
Is there something I can find working examples which is tried on Xbee Industrial Gateways?