Seems like “zlib module” is missing in default OS on Jetson TK1 board and we are unable to use our application. Could you please look into it.Is that the known issue? for TK1.

File “/opt/ice-client/downloads/setuptools-36.5.0/setuptools/command/bdist_egg.py”, line 473, in make_zipfile
z = zipfile.ZipFile(zip_filename, mode, compression=compression)
File “/usr/local/lib/python2.7/zipfile.py”, line 736, in init
“Compression requires the (missing) zlib module”
RuntimeError: Compression requires the (missing) zlib module.

We have tried with manually install zlib by this command “sudo apt-get install zlib1g-dev” but its didn’t solve the problem.

It will be great if anyone response quickly .Thanks in advance


I’m not a python guy (I like python…I just don’t use it), but this is not specific to the Jetson…it’s an additional package from third party locations. If you don’t have the right repository enabled it won’t show up. There are some repositories which can’t be enabled by default for licensing reasons, but many are not enabled by default just as a standard practice on any system which is embedded.

Here’s what I got in searching (I have extra repos installed):

sudo -s
root@tk1:~# zcat /proc/config.gz | egrep -i zlib
root@tk1:~# apt search zlib1g-dev
Sorting... Done
Full Text Search... Done
zlib1g-dev/trusty 1:1.2.8.dfsg-1ubuntu1 armhf
  compression library - development

root@tk1:~# apt-get install zlib1g-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  account-plugin-windows-live libntdb1 libupstart1 python-ntdb python-pycurl
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 41 not upgraded.
Need to get 176 kB of archives.
After this operation, 404 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports/ trusty/main zlib1g-dev armhf 1:1.2.8.dfsg-1ubuntu1 [176 kB]
Fetched 176 kB in 0s (213 kB/s)
Selecting previously unselected package zlib1g-dev:armhf.
(Reading database ... 131429 files and directories currently installed.)
Preparing to unpack .../zlib1g-dev_1%3a1.2.8.dfsg-1ubuntu1_armhf.deb ...
Unpacking zlib1g-dev:armhf (1:1.2.8.dfsg-1ubuntu1) ...
Processing triggers for man-db ( ...
Setting up zlib1g-dev:armhf (1:1.2.8.dfsg-1ubuntu1) ...

Here’s my “/etc/apt/sources.list”:

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ports.ubuntu.com/ubuntu-ports/ trusty main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ports.ubuntu.com/ubuntu-ports/ trusty universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty universe
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-updates universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-updates universe

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ports.ubuntu.com/ubuntu-ports/ trusty-backports main restricted
# deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-backports main restricted

deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security main restricted
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-security main restricted
deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-security universe
# deb http://ports.ubuntu.com/ubuntu-ports/ trusty-security multiverse
# deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty-security multiverse

If you update your sources.list you would probably want to do this:

sudo -s
apt update
# EDIT: Search only uses "apt". <s>apt-get search zlib1g-dev</s>
apt search zlib1g-dev
apt-get install zlib1g-dev

Thanks for the reply, unfortunately it didn’t work for me and I end-up with upgrade the python.

Can any one help me know Jetson TX1 comes with ubuntu 14.04 or 16.04?

I corrected one error I had in that above command…which might be why part of it failed (search for “EDIT” in my first reply).

The “apt-get” doesn’t work with “search”…when corrected that’s just “apt search”.

What does “apt search zlib1g-dev” show for you?

No Jetson and no desktop PC Ubuntu actually comes with zlib1g-dev already installed…it’s a dev package which won’t be there by default. The part which would differ is whether the repository which has the package is enabled.