Pycom Firmware Tool error
-
Hello!
I just got a pycom lopy4 and expansion board v3.1.
Followed this guide on how to install the Pycom Firmware Tool on my Ubuntu 18.04 LTS.I installed dialog and serial using both pip and pip3. But I still get this error while trying to run pycom-fwtool.
robban-K56CB:~$ pycom-fwtool pycom-fwtool: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
Any ideas of what could be going wrong? Where is this library supposed to be and why isn't it there? Can't find this error anywhere online.
-
@robertsehlstedt You're welcome! :o)
-
@rskoniec I don't know what went wrong last time I installed it, but I followed these exact steps now and it worked fine :) Thank you a lot!
-
@robertsehlstedt I've just installed Ubuntu 18.04 LTS on VirtualBox from this ISO with Minimal type and with Updates options checked during installation. On fresh system I've downloaded DEB file and from regular user account executed command:
sudo dpkg -i pycom-fwtool-1.15.1-bionic-amd64.deb
in the location where this file was saved. First execute ofpycom-fwtool
was successful with minor error (picture below).But after this command
sudo apt-get install libcanberra-gtk-module
this error has gone (proof below).So as you can see it should be pretty straightforward. ;o)
-
@robert-hh Hey! I did provide all of my error messages in this thread, and the build-essentials were also already installed. I have no clue what's going on honestly..
-
@robertsehlstedt Error messages are helpful. besides that, as just another blind shot you could try to install the build-essential package, although I hardly would assume that everyone else has installed that.
sudo apt-get update sudo apt-get install build-essential
-
@robertsehlstedt It still doesn't work though, I should also say.
-
@rskoniec Yes the latest version is installed!
-
@robertsehlstedt What about
libxcb1
package? Did you install it?
-
@rskoniec I think it installed with the last command, because it's already installed with the latest version!
Reading package lists... Done Building dependency tree Reading state information... Done zlib1g is already the newest version (1:1.2.11.dfsg-0ubuntu2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
(I can only answer every 10 minutes btw, because I don't have 3 reputation yet :))
-
@robertsehlstedt Try:
sudo apt-get install zlib1g libxcb1
-
@rskoniec This didn't remove the error itself, but instead changed how it looks. Now I get this:
robban-K56CB:~$ pycom-fwtool Traceback (most recent call last): File "pycom_fwtool.py", line 28, in <module> File "/tmp/pip-install-GwIMLo/pyinstaller/PyInstaller/loader/pyimod03_importers.py", line 687, in load_module ImportError: libxcb.so.1: cannot open shared object file: No such file or directory [2763] Failed to execute script pycom_fwtool
-
@robertsehlstedt Could you try:
sudo apt-get install lib32z1
-
@robert-hh Hi, I still get the same error unfortunately!
-
@robertsehlstedt try:
sudo apt install libz-dev
in a terminal window to install libz.