We are just starting development of some X2-based solution. We have some very simple python scripts which try to establish communication via http to another machine. The script runs fine on the PC, but we get the following error on the gateway:
Error message noticed: Traceback (most recent call last):
File “”, line 1, in ?
ImportError: No module named httplib
Any help on tracking this down would be appreciated!
from a python 2.4 installation copy the httplib, mimetools, rfc822, and tempfile.py files in the Lib directory to the gateway. I believe that is it, if there are any more it complains about look for the module there.
ImportError is most common error that you will get while executing programs on ConnectPort X devices.
python.zip file contains most of the modules which can be found at the following link, http://ftp1.digi.com/support/sampleapplications/40002643_B.zip . Save the file as python.zip(case sensitive) before uploading the file to the device and reboot the device once.