Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tribler 7.3 alpha does not install lz4 and pony on Ubuntu #4224

Closed
synctext opened this Issue Feb 13, 2019 · 8 comments

Comments

Projects
None yet
5 participants
@synctext
Copy link
Member

synctext commented Feb 13, 2019

.deb package tested "Alpha1" https://jenkins-ci.tribler.org/job/Build-Tribler_release/job/Build-Custom/33/

INFO    1550053970.38     event_request_manager:53   (TriblerGUI)  Got Tribler core error: 1
Traceback (most recent call last):
  File "run_tribler.py", line 95, in <module>
    start_tribler_core(base_path, api_port)
  File "run_tribler.py", line 46, in start_tribler_core
    from Tribler.Core.Session import Session
  File "/usr/share/tribler/Tribler/Core/Session.py", line 21, in <module>
    from Tribler.Core.APIImplementation.LaunchManyCore import TriblerLaunchMany
  File "/usr/share/tribler/Tribler/Core/APIImplementation/LaunchManyCore.py", line 25, in <module>
    from Tribler.Core.Modules.MetadataStore.store import MetadataStore
  File "/usr/share/tribler/Tribler/Core/Modules/MetadataStore/store.py", line 7, in <module>
    import lz4.frame
ImportError: No module named lz4.frame

@synctext synctext added the bug label Feb 13, 2019

@synctext synctext added this to the V7.3: Gigachannels milestone Feb 13, 2019

@devos50

This comment has been minimized.

Copy link
Contributor

devos50 commented Feb 13, 2019

@ichorid The lz4 package is not in the debian/control file in #4090 yet.

@ichorid

This comment has been minimized.

Copy link
Contributor

ichorid commented Feb 13, 2019

Debian provides a horribly outdated version of lz4 Python binding that does not support the required incremental compression feature. We'll have to install it by pip.

@xoriole

This comment has been minimized.

Copy link
Contributor

xoriole commented Feb 18, 2019

I spent some time in building a snap package for tribler. The package and dependencies seem ok but have problems with some system shared object files.

sandip@sandip-OptiPlex-9020:~/tudelft/tribler-snap$ tribler-bittorrent.tribler 
ERROR   1550486500.54               run_tribler:131  (root)  
Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control).  Otherwise reinstall numpy.

Original error was: libblas.so.3: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/snap/tribler-bittorrent/x1/usr/share/tribler/run_tribler.py", line 113, in <module>
    from TriblerGUI.tribler_window import TriblerWindow
  File "/snap/tribler-bittorrent/x1/usr/share/tribler/TriblerGUI/tribler_window.py", line 29, in <module>
    from TriblerGUI.debug_window import DebugWindow
  File "/snap/tribler-bittorrent/x1/usr/share/tribler/TriblerGUI/debug_window.py", line 15, in <module>
    import matplotlib
  File "/snap/tribler-bittorrent/x1/usr/lib/python2.7/dist-packages/matplotlib/__init__.py", line 123, in <module>
    from . import cbook
  File "/snap/tribler-bittorrent/x1/usr/lib/python2.7/dist-packages/matplotlib/cbook/__init__.py", line 36, in <module>
    import numpy as np
  File "/snap/tribler-bittorrent/x1/usr/lib/python2.7/dist-packages/numpy/__init__.py", line 142, in <module>
    from . import add_newdocs
  File "/snap/tribler-bittorrent/x1/usr/lib/python2.7/dist-packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/snap/tribler-bittorrent/x1/usr/lib/python2.7/dist-packages/numpy/lib/__init__.py", line 8, in <module>
    from .type_check import *
  File "/snap/tribler-bittorrent/x1/usr/lib/python2.7/dist-packages/numpy/lib/type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "/snap/tribler-bittorrent/x1/usr/lib/python2.7/dist-packages/numpy/core/__init__.py", line 26, in <module>
    raise ImportError(msg)
ImportError: 
Importing the multiarray numpy extension module failed.  Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control).  Otherwise reinstall numpy.

Original error was: libblas.so.3: cannot open shared object file: No such file or directory

Traceback (most recent call last):
  File "/snap/tribler-bittorrent/x1/usr/share/tribler/run_tribler.py", line 132, in <module>
    error_and_exit("Import Error", "Import error: {0}".format(ie))
  File "/snap/tribler-bittorrent/x1/usr/share/tribler/check_os.py", line 27, in error_and_exit
    root = Tk()
  File "/snap/tribler-bittorrent/x1/usr/lib/python2.7/lib-tk/Tkinter.py", line 1822, 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 /snap/tribler-bittorrent/x1/usr/lib/tcl8.6 /snap/tribler-bittorrent/x1/lib/tcl8.6 /snap/tribler-bittorrent/x1/usr/library /snap/tribler-bittorrent/x1/library /snap/tribler-bittorrent/x1/tcl8.6.8/library /snap/tribler-bittorrent/tcl8.6.8/library



This probably means that Tcl wasn't installed properly.

Related:
https://forum.snapcraft.io/t/shared-libraries/2424
apache/incubator-mxnet#5290

The snapcraft build yaml is available here
https://github.com/xoriole/tribler-snap/blob/master/snap/snapcraft.yaml

@qstokkink

This comment has been minimized.

Copy link
Contributor

qstokkink commented Feb 18, 2019

@xoriole

This comment has been minimized.

Copy link
Contributor

xoriole commented Feb 18, 2019

ERROR   1550501687.39               run_tribler:131  (root)  No module named backports.functools_lru_cache
Traceback (most recent call last):
  File "/snap/tribler-bittorrent/x1/usr/share/tribler/run_tribler.py", line 113, in <module>
    from TriblerGUI.tribler_window import TriblerWindow
  File "/snap/tribler-bittorrent/x1/usr/share/tribler/TriblerGUI/tribler_window.py", line 29, in <module>
    from TriblerGUI.debug_window import DebugWindow
  File "/snap/tribler-bittorrent/x1/usr/share/tribler/TriblerGUI/debug_window.py", line 15, in <module>
    import matplotlib
  File "/snap/tribler-bittorrent/x1/usr/lib/python2.7/dist-packages/matplotlib/__init__.py", line 127, in <module>
    from matplotlib.rcsetup import defaultParams, validate_backend, cycler
  File "/snap/tribler-bittorrent/x1/usr/lib/python2.7/dist-packages/matplotlib/rcsetup.py", line 29, in <module>
    from matplotlib.fontconfig_pattern import parse_fontconfig_pattern
  File "/snap/tribler-bittorrent/x1/usr/lib/python2.7/dist-packages/matplotlib/fontconfig_pattern.py", line 32, in <module>
    from backports.functools_lru_cache import lru_cache
ImportError: No module named backports.functools_lru_cache
Traceback (most recent call last):
  File "/snap/tribler-bittorrent/x1/usr/share/tribler/run_tribler.py", line 132, in <module>
    error_and_exit("Import Error", "Import error: {0}".format(ie))
  File "/snap/tribler-bittorrent/x1/usr/share/tribler/check_os.py", line 27, in error_and_exit
    root = Tk()
  File "/snap/tribler-bittorrent/x1/usr/lib/python2.7/lib-tk/Tkinter.py", line 1822, 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 /snap/tribler-bittorrent/x1/usr/lib/tcl8.6 /snap/tribler-bittorrent/x1/lib/tcl8.6 /snap/tribler-bittorrent/x1/usr/library /snap/tribler-bittorrent/x1/library /snap/tribler-bittorrent/x1/tcl8.6.8/library /snap/tribler-bittorrent/tcl8.6.8/library



This probably means that Tcl wasn't installed properly.

Seems issue with matplotlib now

@qstokkink

This comment has been minimized.

Copy link
Contributor

qstokkink commented Feb 18, 2019

We probably need to explicitly install pip install backports.functools_lru_cache.

@xoriole

This comment has been minimized.

Copy link
Contributor

xoriole commented Feb 21, 2019

After struggling with matplotlib and several other dependencies, now its QT's turn.

sandip@sandip-OptiPlex-9020:~/tudelft/tribler-snap$ tribler-bittorrent.tribler 
INFO    1550742317.46              font_manager:1071 (matplotlib.font_manager)  font search path ['/snap/tribler-bittorrent/x1/lib/python2.7/site-packages/matplotlib/mpl-data/fonts/ttf', '/snap/tribler-bittorrent/x1/lib/python2.7/site-packages/matplotlib/mpl-data/fonts/afm', '/snap/tribler-bittorrent/x1/lib/python2.7/site-packages/matplotlib/mpl-data/fonts/pdfcorefonts']
INFO    1550742318.38              font_manager:1458 (matplotlib.font_manager)  generated new fontManager
INFO    1550742319.57        single_application:23   (root)  __init__()
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Reinstalling the application may fix this problem.
Aborted (core dumped)

Related: https://stackoverflow.com/questions/17106315/failed-to-load-platform-plugin-xcb-while-launching-qt5-app-on-linux-without

@qstokkink

This comment has been minimized.

Copy link
Contributor

qstokkink commented Feb 21, 2019

Possibly this answer? https://stackoverflow.com/a/25437758

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.