Author Topic: DigiUSB Monitor and Linux Mint 18.3 64bit  (Read 145 times)

hirax

  • Newbie
  • *
  • Posts: 3
DigiUSB Monitor and Linux Mint 18.3 64bit
« on: November 01, 2018, 10:36:16 am »
Hello!  :)
I successfully connected to Digispark ATTiny85 and I can upload sketch.
Problem appear when I try run DigiUSB Monitor.
I get this error:
Quote
hirax@hirax-desktop ~ $ sudo "./DigiUSB Monitor"
[sudo] password for hirax:
./DigiUSB Monitor: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory

But this package is installed already:
Quote
hirax@hirax-desktop ~ $ sudo updatedb && locate libglib-2.0.so.0
/home/hirax/.local/share/RecentDocuments/libglib-2.0.so.0.4800.2.desktop
/home/hirax/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libglib-2.0.so.0
/home/hirax/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.3
/home/hirax/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libglib-2.0.so.0
/home/hirax/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libglib-2.0.so.0.3200.3
/home/hirax/.local/share/Steam/ubuntu12_32/steam-runtime.old/amd64/lib/x86_64-linux-gnu/libglib-2.0.so.0
/home/hirax/.local/share/Steam/ubuntu12_32/steam-runtime.old/amd64/lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.3
/home/hirax/.local/share/Steam/ubuntu12_32/steam-runtime.old/i386/lib/i386-linux-gnu/libglib-2.0.so.0
/home/hirax/.local/share/Steam/ubuntu12_32/steam-runtime.old/i386/lib/i386-linux-gnu/libglib-2.0.so.0.3200.3
/lib/x86_64-linux-gnu/libglib-2.0.so.0
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2

/var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/1.6/8b967508e3e72b98891ee03ef9797dbee13a8a92b508703378c0f13929ba1021/files/lib/libglib-2.0.so.0
/var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/1.6/8b967508e3e72b98891ee03ef9797dbee13a8a92b508703378c0f13929ba1021/files/lib/libglib-2.0.so.0.5200.3
/var/lib/flatpak/runtime/org.freedesktop.Platform/x86_64/1.6/8b967508e3e72b98891ee03ef9797dbee13a8a92b508703378c0f13929ba1021/files/share/gdb/auto-load/usr/lib/libglib-2.0.so.0.5200.3-gdb.py
/var/lib/flatpak/runtime/org.freedesktop.Platform.Compat32/x86_64/1.6/e7af5327f4ae2187cfa77ccb30aa039b402c18cd2eabd2e910f0a4cc05e16a41/files/lib/libglib-2.0.so.0
/var/lib/flatpak/runtime/org.freedesktop.Platform.Compat32/x86_64/1.6/e7af5327f4ae2187cfa77ccb30aa039b402c18cd2eabd2e910f0a4cc05e16a41/files/lib/libglib-2.0.so.0.5200.3
/var/lib/flatpak/runtime/org.freedesktop.Platform.Compat32/x86_64/1.6/e7af5327f4ae2187cfa77ccb30aa039b402c18cd2eabd2e910f0a4cc05e16a41/files/share/gdb/auto-load/usr/lib/libglib-2.0.so.0.5200.3-gdb.py

Search from internet gives me one possible reason is that this application is for 32 bit system. I have Linux Mint 18.3 KDE 64 bit and multiarch is supported:
Quote
hirax@hirax-desktop ~ $ dpkg --print-foreign-architectures
i386
hirax@hirax-desktop ~ $ dpkg --print-architecture
amd64

what to do to start DigiUSB Monitor ??

Thank You!

benalb

  • Newbie
  • *
  • Posts: 9
Re: DigiUSB Monitor and Linux Mint 18.3 64bit
« Reply #1 on: November 01, 2018, 11:07:59 am »
It seems you've got the x86_64 version
Quote
/lib/x86_64-linux-gnu/libglib-2.0.so.0
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2

You will need the i386 package. I currently not running any debian, so I can't tell you the exact package, but apt-cache search libglib will do the task. Hope that helps.  :)

hirax

  • Newbie
  • *
  • Posts: 3
Re: DigiUSB Monitor and Linux Mint 18.3 64bit
« Reply #2 on: November 01, 2018, 01:24:07 pm »
benalb thanks for the hint :)
sudo apt install libglib2.0-0:i386 did the trick and with libglib-2.0.so.0 is ok now.
But now next error appeared:
Quote
./DigiUSB Monitor: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory

check
Quote
hirax@hirax-desktop ~ $ sudo updatedb && locate libfuse.so.2
/lib/x86_64-linux-gnu/libfuse.so.2
/lib/x86_64-linux-gnu/libfuse.so.2.9.4

I tried to solve it same way.
Unfortunately I got:
Quote
hirax@hirax-desktop ~ $ sudo apt install libfuse.so.2:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libfuse.so.2:i386
E: Couldn't find any package by glob 'libfuse.so.2'
E: Couldn't find any package by regex 'libfuse.so.2

Again I dont know what to do next  :-[

benalb

  • Newbie
  • *
  • Posts: 9
Re: DigiUSB Monitor and Linux Mint 18.3 64bit
« Reply #3 on: November 06, 2018, 09:56:33 am »
try apt-cache search libfuse2|grep i386, it will report if there is a i386 package for the fuse libs.

hirax

  • Newbie
  • *
  • Posts: 3
Re: DigiUSB Monitor and Linux Mint 18.3 64bit
« Reply #4 on: November 07, 2018, 09:43:54 am »
Hello!
I was able install libfuse by this command: sudo apt install libfuse2:i386

But still no luck with starting UsbMonitor  :(
Now next error appeared  >:(
Quote
hirax@hirax-desktop ~ $ sudo "./DigiUSB Monitor"
Traceback (most recent call last):
  File "./bin//monitor.py", line 9, in <module>
    import wx
  File "/home/ubuntu/DigiBlinkPython/usr/share/pyshared/wx/__init__.py", line 45, in <module>
  File "/home/ubuntu/DigiBlinkPython/usr/share/pyshared/wx/_core.py", line 4, in <module>
ImportError: /tmp/.mount_YcpQZd/usr/share/pyshared/wx/_core_.so: wrong ELF class: ELFCLASS32

What it now wants ??  >:(

EDIT: does it mean that now I must install also python for 32bit ??
« Last Edit: November 07, 2018, 03:54:57 pm by hirax »

benalb

  • Newbie
  • *
  • Posts: 9
Re: DigiUSB Monitor and Linux Mint 18.3 64bit
« Reply #5 on: November 11, 2018, 01:19:32 am »
Sorry for not being more helpful, it seems that this example is and old one. In the github page it says "Example programs for the DigiUSB library - superseded by DigiCDC VUSB Serial Emulation".