Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
======================================================================
ERROR: Failure: ImportError (libpng16.so.16: cannot open shared object file: No such file or directory)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/drive/Dev/simulator/carlos/libs/__init__.py", line 7, in <module>
from .libcarla import *
ImportError: libpng16.so.16: cannot open shared object file: No such file or directory
----------------------------------------------------------------------
Ran 5 tests in 0.147s
FAILED (errors=3)
(.venv) drive@simula:~/Dev/simulator/carlos$ sudo apt-get install libpng16-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
comerr-dev krb5-multidev libavcodec-dev libavformat-dev libavutil-dev libcurl4-gnutls-dev libdap-dev libdapserver7v5 libegl1-mesa-dev libfluidsynth1 libfontenc1 libgeos-dev libgif-dev libgl2ps-dev libgles2-mesa libgles2-mesa-dev libgssrpc4 libhdf4-alt-dev
libjasper-dev libjbig-dev libjsoncpp-dev libkadm5clnt-mit9 libkadm5srv-mit9 libkdb5-8 liblzma-dev libmad0 libmikmod3 libmirclient-dev libmircommon-dev libmircookie-dev libmircookie2 libmircore-dev libmysqlclient-dev libnetcdf-cxx-legacy-dev libnetcdf-dev libogg-dev
libopenni-dev libportmidi0 libpq-dev libqt5clucene5 libqt5concurrent5 libqt5designer5 libqt5designercomponents5 libqt5help5 libqt5opengl5-dev libqt5quickparticles5 libqt5quicktest5 libqt5quickwidgets5 libqt5test5 libqt5webkit5-dev libqt5xml5 libsdl-image1.2
libsdl-mixer1.2 libsdl-ttf2.0-0 libsmpeg0 libspatialite-dev libsqlite3-dev libswresample-dev libswscale-dev libtheora-dev libtiff5-dev libtiffxx5 libutempter0 libvorbisfile3 libwayland-bin libwayland-cursor0 libwayland-dev libwayland-egl1-mesa libwebp-dev
libwebpdemux1 libxdmf-dev libxdmf2 libxerces-c-dev libxkbcommon-dev libxrender-dev libxss-dev libxtst6 libxxf86dga1 musescore-soundfont-gm qt5-qmake qtbase5-dev qtbase5-dev-tools qtdeclarative5-dev qttools5-dev qttools5-private-dev ros-kinetic-tf2-eigen tcl tcl-dev
tcl8.6 tcl8.6-dev timgm6mb-soundfont tk tk8.6 unixodbc unixodbc-dev vtk6 x11-utils x11proto-render-dev x11proto-scrnsaver-dev xbitmaps xterm
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libpng16-16 libpng16-devtools
Recommended packages:
libpng16-tools
The following packages will be REMOVED:
libfontconfig1-dev libfreetype6-dev libgdal-dev libpcl-dev libpng12-dev libvtk6-dev libvtk6-qt-dev libxft-dev ros-kinetic-cv-bridge ros-kinetic-opencv3 ros-kinetic-pcl-conversions ros-kinetic-pcl-ros tk-dev tk8.6-dev
The following NEW packages will be installed:
libpng16-16 libpng16-dev libpng16-devtools
0 upgraded, 3 newly installed, 14 to remove and 28 not upgraded.
Need to get 425 kB of archives.
After this operation, 230 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libpng16-16 amd64 1.6.20-2 [172 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libpng16-devtools amd64 1.6.20-2 [5798 B]
Get:3 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libpng16-dev amd64 1.6.20-2 [248 kB]
Fetched 425 kB in 1s (372 kB/s)
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 3.)
debconf: falling back to frontend: Readline
(Reading database ... 97976 files and directories currently installed.)
Removing ros-kinetic-pcl-ros (1.4.4-0xenial-20180516-233043-0800) ...
Removing ros-kinetic-pcl-conversions (0.2.1-0xenial-20171116-210135-0800) ...
Removing libpcl-dev (1.7.2-14ubuntu1.16.04.1) ...
Removing ros-kinetic-cv-bridge (1.12.8-0xenial-20180516-152244-0800) ...
Removing ros-kinetic-opencv3 (3.3.1-5xenial-20180809-134307-0800) ...
Removing libvtk6-qt-dev (6.2.0+dfsg1-10build1) ...
Removing libvtk6-dev (6.2.0+dfsg1-10build1) ...
Removing tk-dev:amd64 (8.6.0+9) ...
Removing tk8.6-dev:amd64 (8.6.5-1) ...
Removing libxft-dev (2.3.2-1) ...
Removing libfontconfig1-dev:amd64 (2.11.94-0ubuntu1.1) ...
Removing libfreetype6-dev:amd64 (2.6.1-0.1ubuntu2.3) ...
Removing libgdal-dev (1.11.3+dfsg-3build2) ...
Removing libpng12-dev:amd64 (1.2.54-1ubuntu1.1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Selecting previously unselected package libpng16-16:amd64.
(Reading database ... 91824 files and directories currently installed.)
Preparing to unpack .../libpng16-16_1.6.20-2_amd64.deb ...
Unpacking libpng16-16:amd64 (1.6.20-2) ...
Selecting previously unselected package libpng16-devtools:amd64.
Preparing to unpack .../libpng16-devtools_1.6.20-2_amd64.deb ...
Unpacking libpng16-devtools:amd64 (1.6.20-2) ...
Selecting previously unselected package libpng16-dev:amd64.
Preparing to unpack .../libpng16-dev_1.6.20-2_amd64.deb ...
Unpacking libpng16-dev:amd64 (1.6.20-2) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libpng16-16:amd64 (1.6.20-2) ...
Setting up libpng16-devtools:amd64 (1.6.20-2) ...
Setting up libpng16-dev:amd64 (1.6.20-2) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment