IOError: zipimport for iDigi_pro_devkit Sample Project

Hi,

I am just trying to run the sample iDigi_pro_devkit Dia Project, however I keep getting this error after running the code and setting the MAC addresses for the dev boards (I removed the Wall Router because I did not get that piece with the rest of the kit):

#> python dpdsrv.py

Traceback (most recent call last):
File “WEB/python/dpdsrv.py”, line 7, in ?
import sys, os
IOError: zipimport: can not open file WEB/python/python.zip

My understanding of this is that the X4 cannot open the python.zip file after I download it onto the X4 using the Run command in Digi ESP. I’ve tried rebooting the X4 through the web interface and the Digi ESP, but it still hangs up on this error when I try to run the code.

Thanks for any help!

I just got this error after deleting the uploaded files, rebooting, and re-running the code in Digi ESP:

#> python dpdsrv.py

Traceback (most recent call last):
File “WEB/python/dpdsrv.py”, line 7, in ?
import sys, os
ImportError: No module named os

I think it didn’t upload the python.zip file this time.

Hello Bryan,

It seems your ConnectPort X4 is missing the Python Standard Library (python.zip). It is a zip file containing some Python modules like os, threading, etc.

You can download it from this link. Rename the downloaded file to python.zip and transfer it to the ConnectPort X4. After that the sample should work properly.

It is important that you don’t remove the python.zip file from the CPX4. The Digi ESP won’t realize if it doesn’t exist and will try to execute the transferred project anyway.

Regards.