# Python.zip on ConnectPort X4

**URL:** <https://forums.digi.com/t/python-zip-on-connectport-x4/3278>\
**Category:** Python\
**Created:** [February 22, 2010, 1:17am UTC](https://forums.digi.com/t/python-zip-on-connectport-x4/3278 "2010-02-22T01:17:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![huiqbal](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@huiqbal](https://forums.digi.com/u/huiqbal)\
**Post date:** [February 22, 2010, 1:17am UTC](https://forums.digi.com/t/python-zip-on-connectport-x4/3278/1 "2010-02-22T01:17:03Z")

</div>

I recently purchased a kit that comes with connectPort X4. Using the instruction I tried out the sample application but I am running into an issue where python version not having the zipfile module. The error message gives me and FTP URL to get the new version. I updated it with 40002643\_B but same issue. 83000001-02 doesn’t seem to be available on the FTP site. Any help would be appreciated.

ERROR Message:

#\> python dia.py

Determining platform type…Digi Python environment found.

failed: can’t find module ‘zipfile’  
python.zip version too old!  
Found version 40002643\_A need 40002643\_B or 83000001-02.  
Please see: [http://ftp1.digi.com/support/sampleapplications/](http://ftp1.digi.com/support/sampleapplications/)  
download 83000001-02.zip from the above URL, rename it to  
python.zip, upload it to the gateway under  
Applications-\>Python using the web interface and reboot  
the gateway.

Startup halted.

---

<div class="post-metadata">

**Author:** ![huiqbal](https://avatars.discourse-cdn.com/v4/letter/h/ba9def/32.png) [@huiqbal](https://forums.digi.com/u/huiqbal)\
**Post date:** [February 22, 2010, 2:02am UTC](https://forums.digi.com/t/python-zip-on-connectport-x4/3278/2 "2010-02-22T02:02:50Z")

</div>

I guess, I found my own answer. I compiled it locally using Python 2.6. Switched to Python 2.4 and things are fine.

---

<div class="post-metadata">

**Author:** ![Admin1](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@Admin1](https://forums.digi.com/u/Admin1)\
**Post date:** [February 24, 2010, 10:14pm UTC](https://forums.digi.com/t/python-zip-on-connectport-x4/3278/3 "2010-02-24T22:14:31Z")

</div>

At some point in future our CP-X gateways will likely support python 2.6, but not quite yet…

---

<div class="post-metadata">

**Author:** ![axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@axel](https://forums.digi.com/u/axel)\
**Post date:** [May 18, 2011, 10:37pm UTC](https://forums.digi.com/t/python-zip-on-connectport-x4/3278/4 "2011-05-18T22:37:16Z")

</div>

How can one determine which version of python is running with a particular firmware?  
python --version or -V doesn’t work in the shell and it is not displayed in the web interface.

ConnectPort X4  
Firmware Version: 2.13.0.7 (Version 82001536\_J 03/22/2011)

---

<div class="post-metadata">

**Author:** ![lynnl](https://avatars.discourse-cdn.com/v4/letter/l/22d042/32.png) [@lynnl](https://forums.digi.com/u/lynnl)\
**Post date:** [May 19, 2011, 1:20pm UTC](https://forums.digi.com/t/python-zip-on-connectport-x4/3278/5 "2011-05-19T13:20:15Z")

</div>

Unfortunately you can’t. All X4 today run 2.4.3. Someday it might change (to 2.7?) or it might not.

Displayign this has been a ‘change request’ for over a year against the X4, but I guess the folks who gate change requests don’t actually use the product, so don’t understand the importance.
