yatima1460 / Drill

Search files without indexing, but fast crawling
https://drill.software/
GNU General Public License v2.0
269 stars 21 forks source link

Appimage breaks on Ubuntu 18.04 dependency issue. #10

Closed RustyRaptor closed 5 years ago

RustyRaptor commented 5 years ago

Linux distro Kubuntu 18.04

Runtime type Appimage

Describe the bug

ziad@ziad-Desktop:~/Downloads$ ./Drill-.glibc2.17-x86_64.appimage 
Drill v0.1.1 - Federico Santamorena
https://github.com/yatima1460/drill
Traceback (most recent call last):
  File "drill.py", line 632, in <module>
    Drill()
  File "drill.py", line 519, in __init__
    self.create_window()
  File "drill.py", line 529, in create_window
    self.window = Tk()
  File "/tmp/.mount_Drill-GB0MAR/usr/lib/python3.5/tkinter/__init__.py", line 1880, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following directories: 
    /usr/share/tcltk/tcl8.6 /tmp/.mount_Drill-GB0MAR/usr/lib/tcl8.6 /tmp/.mount_Drill-GB0MAR/lib/tcl8.6 /tmp/.mount_Drill-GB0MAR/usr/library /tmp/.mount_Drill-GB0MAR/library /tmp/.mount_Drill-GB0MAR/tcl8.6.6/library /tmp/tcl8.6.6/library

/usr/share/tcltk/tcl8.6/init.tcl: version conflict for package "Tcl": have 8.6.6, need exactly 8.6.8
version conflict for package "Tcl": have 8.6.6, need exactly 8.6.8
    while executing
"package require -exact Tcl 8.6.8"
    (file "/usr/share/tcltk/tcl8.6/init.tcl" line 19)
    invoked from within
"source /usr/share/tcltk/tcl8.6/init.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $tclfile]"

This probably means that Tcl wasn't installed properly.

ziad@ziad-Desktop:~/Downloads$ 

To Reproduce Steps to reproduce the behavior: Launch appimage from terminal

Expected behavior To not throw a dependency issue

Screenshots No

Other notes I have the latest version of TCL from the repos installed.

probonopd commented 5 years ago

I can confirm this.

yatima1460 commented 5 years ago

This is Tkinter being a completely broken and outdated library. This is already fixed with the next GTK release I will commit soon!

RustyRaptor commented 5 years ago

Oh we already have a GTK release coming? Nice.

yatima1460 commented 5 years ago

image

yatima1460 commented 5 years ago

Conversion to D completed, I noticed that the prerequisites of a D compiled binary are nearly the same and very few of an AppImage, so I think now I can fix it soon

image

yatima1460 commented 5 years ago

@probonopd AppImage with D compiled and GTK uploaded

https://github.com/yatima1460/Drill/releases/download/1.0.0rc2/Drill-x64.AppImage

These are the requirements for the Drill-GTK binary from the D compiler:

 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [librt.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [ld-linux-x86-64.so.2]

And these from the AppImage I created after adding just libgcc1 as requirement;

 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libz.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

I hope it works

yatima1460 commented 5 years ago

@probonopd I have confirmation it works on Ubuntu 18.04 and Fedora 30

yatima1460 commented 5 years ago

Duplicate of #11