I want to use XBee python library in raspberry pi. when I run the code, I encounter the following Error
Traceback (most recent call last):
File "XBeeMQTT-V1.py", line 25, in <module>
from digi.xbee.devices import XBeeDevice
File "build/bdist.linux-armv7l/egg/digi/xbee/devices.py", line 22, in <module>
File "build/bdist.linux-armv7l/egg/digi/xbee/serial.py", line 15, in <module>
ImportError: cannot import name Serial
I import serial and xbee-digi in the python code and install both library on raspberry pi (usr/local/lib/python2.7/dist-packages). have any idea where the error stems from?