[solved] Tribler 5.5.24 won't start on Ubuntu 12.04

Please create a single thread for each bug report in this forum

[solved] Tribler 5.5.24 won't start on Ubuntu 12.04

Postby kurtosis » Mon Apr 23, 2012 1:45 am

I just upgraded Ubuntu Desktop 11.10 to 12.04 using
Code: Select all
sudo do-release-upgrade -d
. I had Tribler 5.5.19 installed, but it would no longer start after the upgrade.

When running it from the command line, it doesn't give an error, just
Code: Select all
Starting Tribler ...
and then exit to commandline, no error message. There's no tribler in htop, so it's not running in the background or anything.

I uninstalled Tribler, installed the 5.5.24 .deb package, and reinstalled 5.5.24, but same problem. I also renamed ~/.Tribler to ~/.Tribler.backup and tried starting it, but no luck. It doesn't create a new ~/.Tribler that way, as I thought it might.

Any suggestions how to get a detailed error message? strace is a little too detailed, and appending -v, -verbose, --verbose doesn't do anything.

Thanks!
Last edited by kurtosis on Tue Jun 12, 2012 6:28 am, edited 1 time in total.
kurtosis
Visitor
 
Posts: 8
Joined: Sun Mar 04, 2012 10:44 pm

Re: Tribler 5.5.24 won't start on Ubuntu 12.04 (final beta)

Postby schaap » Mon Apr 23, 2012 10:48 am

Currently 12.04 is not officially supported. That doesn't mean we wouldn't like to be running on it once it's there. I can't help you any further myself, but one of the other developers might if you have some more information. I think the important parts are a full uname (uname -a) and the versions of the packages tribler depends on (gconf2 (>= 2.12.1-1), python, python-wxgtk2.8, python-m2crypto, python-apsw, vlc (>= 1.1.0), ffmpeg). You can find the version with, e.g. apt-cache show python

Other than giving this information now all you can really do is wait for 12.04 to be released. I assume the next release of tribler after that will support 12.04.
schaap
Visitor
 
Posts: 130
Joined: Tue Jan 03, 2012 4:09 pm

Re: Tribler 5.5.24 won't start on Ubuntu 12.04 (final beta)

Postby kurtosis » Tue Apr 24, 2012 7:30 am

Cool, thanks. Is it just intentionally disabled for 12.04 right now, with an internal flag or param or something? Or is there a real error causing it to crash on startup?

If the latter I'm just dying to see the error message and maybe attempt to hack it if it's not too complicated. Once you go Tribler it's really difficult to go back to any other client, and now I find myself going through withdrawal syndrome.

System info:

Code: Select all
$> uname -a
Linux hp-dm1-4050us 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Code: Select all
$> apt-cache show python
Package: python
Priority: important
Section: python
Installed-Size: 658
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Matthias Klose <doko@debian.org>
Architecture: amd64
Source: python-defaults
Version: 2.7.3-0ubuntu2
Replaces: python-dev (<< 2.6.5-2)
Provides: python-ctypes, python-email, python-importlib, python-profiler, python-wsgiref
Depends: python2.7 (>= 2.7.3), python-minimal (= 2.7.3-0ubuntu2)
Suggests: python-doc (= 2.7.3-0ubuntu2), python-tk (= 2.7.3-0ubuntu2)
Conflicts: python-central (<< 0.5.5)
Breaks: python-bz2 (<< 1.1-8), python-csv (<< 1.0-4), python-email (<< 2.5.5-3), update-manager-core (<< 0.200.5-2)
Filename: pool/main/p/python-defaults/python_2.7.3-0ubuntu2_amd64.deb
Size: 166114
MD5sum: 5e0615e173a3834d0b2e97768bfe4d2c
SHA1: a748ba4f38c3dd94bc6d782a8421499b01c406f3
SHA256: ec8a24ec3cf3dfdf42581fa529e0ee69dc08bd8c29aeb601c329c337e5605e0e
Description-en: interactive high-level object-oriented language (default version)
 Python, the high-level, interactive object oriented language,
 includes an extensive class library with lots of goodies for
 network programming, system administration, sounds and graphics.
 .
 This package is a dependency package, which depends on Debian's default
 Python version (currently v2.7).
Homepage: http://www.python.org/
Description-md5: d1ea97f755d8153fe116080f2352859b
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: minimal
Code: Select all
$> apt-cache show gconf2
Package: gconf2
Priority: optional
Section: libs
Installed-Size: 598
Maintainer: Ubuntu Desktop Team <ubuntu-desktop@lists.ubuntu.com>
Original-Maintainer: Josselin Mouette <joss@debian.org>
Architecture: amd64
Source: gconf
Version: 3.2.5-0ubuntu2
Depends: gconf-service, libc6 (>= 2.14), libgconf-2-4 (>= 2.31.1), libglib2.0-0 (>= 2.31.2), libxml2 (>= 2.7.4), gconf-service-backend (= 3.2.5-0ubuntu2), psmisc, dbus-x11, python
Suggests: gconf-defaults-service
Filename: pool/main/g/gconf/gconf2_3.2.5-0ubuntu2_amd64.deb
Size: 79712
MD5sum: 02beb5ba743e374f6a895daa010b4c30
SHA1: 8b7363ee3c81095d2a8a3a39fddd5096a5163a94
SHA256: 58366252ac4c0ae63fc39a393b8466bd36671e0486d1937f2d09aa173b393c14
Description-en: GNOME configuration database system (support tools)
 GConf is a configuration database system for storing application
 preferences. It supports default or mandatory settings set by the
 administrator, and changes to the database are instantly applied to all
 running applications. It is written for the GNOME desktop but doesn't
 require it.
 .
 This package contains the command line tools: gconftool and
 gconf-merge-tree.
Multi-Arch: foreign
Homepage: http://projects.gnome.org/gconf/
Description-md5: c44e6944a0e1021dcd2391ea71d64fb4
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: ubuntu-desktop, ubuntu-usb, edubuntu-desktop, edubuntu-usb, edubuntu-desktop-kde, xubuntu-desktop, mythbuntu-frontend, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master, lubuntu-desktop, ubuntustudio-desktop
Code: Select all
$> apt-cache show python-m2crypto
Package: python-m2crypto
Priority: optional
Section: libs
Installed-Size: 850
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Dima Barsky <dima@debian.org>
Architecture: amd64
Source: m2crypto
Version: 0.21.1-2ubuntu2
Provides: m2crypto, python2.7-m2crypto
Depends: python2.7, python (>= 2.7.1-0ubuntu2), python (<< 2.8), libc6 (>= 2.4), libssl1.0.0 (>= 1.0.0)
Pre-Depends: dpkg (>= 1.15.6)
Filename: pool/main/m/m2crypto/python-m2crypto_0.21.1-2ubuntu2_amd64.deb
Size: 156726
MD5sum: 85591f3c043e7712e094ae91d880e3bd
SHA1: f5ad2e55567c893798fcc88e05fd051bcc9646ea
SHA256: 3fa2a2e24fad3505253d62debe2170302bcb48bc509b471ca6ad45c535b79c53
Description-en: a crypto and SSL toolkit for Python
 m2crypto features the following:
   * RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including AES).
   * SSL functionality to implement clients and servers.
   * HTTPS extensions to Python's httplib, urllib, and xmlrpclib.
   * Unforgeable HMAC'ing AuthCookies for web session management.
   * FTP/TLS client and server.
   * S/MIME.
   * ZServerSSL: A HTTPS server for Zope.
   * ZSmime: An S/MIME messenger for Zope.
Homepage: http://chandlerproject.org/Projects/MeTooCrypto
Description-md5: b54d1b882769b6db2f78c4d46dd9ebb4
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: cloud-image
Code: Select all
$> apt-cache show python-wxgtk2.8
Package: python-wxgtk2.8
Priority: optional
Section: universe/python
Installed-Size: 21815
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: wxWidgets Maintainers <freewx-maint@lists.alioth.debian.org>
Architecture: amd64
Source: wxwidgets2.8
Version: 2.8.12.1-6ubuntu2
Replaces: libwxgtk2.6-0-python, wxpython2.6-0
Provides: python2.7-wxgtk2.8
Depends: python-wxversion (>= 2.6.3.2.2-2), python2.7, python (>= 2.7.1-0ubuntu2), python (<< 2.8), libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1), libwxbase2.8-0 (>= 2.8.12.1), libwxgtk2.8-0 (>= 2.8.12.1)
Suggests: wx2.8-doc, wx2.8-examples, editra
Conflicts: libwxgtk2.6-0-python, python-wxaddons, wxpython2.6-0
Filename: pool/universe/w/wxwidgets2.8/python-wxgtk2.8_2.8.12.1-6ubuntu2_amd64.deb
Size: 5377032
MD5sum: a4d8749cf60fef528b4cf8fb4e4c12bc
SHA1: 8426efaefc88e4c20133b18f77d97279e869c961
SHA256: d565aa69ae9972aa8a3a768c21d7d3920071e576dd8807f5876b760d9b95b8a6
Description-en: wxWidgets Cross-platform C++ GUI toolkit (wxPython binding)
 wxWidgets (formerly known as wxWindows) is a class library for C++ providing
 GUI components and other facilities on several popular platforms (and some
 unpopular ones as well).
 .
 This package provides a Python binding to the wxGTK library and the
 wxPython runtime support libraries.
Homepage: http://www.wxpython.org/
Description-md5: 512d862ab885e743c6f3b61ad713b1a9
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Task: edubuntu-desktop-gnome, ubuntustudio-graphics
Code: Select all
$> apt-cache show python-apsw
Package: python-apsw
Priority: optional
Section: universe/python
Installed-Size: 334
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Joel Rosdahl <joel@debian.org>
Architecture: amd64
Version: 3.7.6.3-r1-1build1
Replaces: python2.3-apsw, python2.4-apsw
Provides: python2.7-apsw
Depends: libc6 (>= 2.4), libsqlite3-0 (>= 3.7.6.1), python2.7, python (>= 2.7), python (<< 2.8)
Suggests: python-apsw-doc
Conflicts: python2.3-apsw, python2.4-apsw
Filename: pool/universe/p/python-apsw/python-apsw_3.7.6.3-r1-1build1_amd64.deb
Size: 101722
MD5sum: f198a58c202510d98af1726910750391
SHA1: 5bb78646c81af6f55933ac00c59ffdc241b4d4af
SHA256: f44caf23b2d9072686a8b4c4196cebb1d37fdf6162d2f3b4ace21432e9a27077
Description-en: another Python SQLite 3 wrapper
 APSW (Another Python SQLite Wrapper) is an SQLite 3 wrapper that
 provides the thinnest layer over SQLite 3 possible. Everything you
 can do from the C API to SQLite 3, you can do from Python. Although
 APSW's API looks vaguely similar to Python's DB-API, it is not
 compliant with that API and instead works the way SQLite 3 does.
Description-md5: 16856dcbef9b3202479fc17febfca203
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Code: Select all
$> apt-cache show vlc
Package: vlc
Priority: optional
Section: universe/graphics
Installed-Size: 3501
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
Architecture: amd64
Version: 2.0.1-4
Replaces: vlc-data (<< 1.1.5), vlc-nox (<< 1.1.5)
Provides: mp3-decoder
Depends: ttf-freefont, vlc-nox (= 2.0.1-4), libaa1 (>= 1.4p5), libavcodec53 (>= 4:0.8-1~) | libavcodec-extra-53 (>= 4:0.8-1~), libavutil51 (>= 4:0.8-1~) | libavutil-extra-51 (>= 4:0.8-1~), libc6 (>= 2.15), libfreetype6 (>= 2.2.1), libfribidi0 (>= 0.19.2), libgcc1 (>= 1:4.1.1), libgl1-mesa-glx | libgl1, libqtcore4 (>= 4:4.8.0), libqtgui4 (>= 4:4.7.0~beta1), libsdl-image1.2 (>= 1.2.10), libsdl1.2debian (>= 1.2.10-1), libstdc++6 (>= 4.6), libtar0, libva-x11-1 (>> 1.0.15~), libva1 (>> 1.0.15~), libvlccore5 (>= 2.0.0), libx11-6, libxcb-composite0, libxcb-keysyms1 (>= 0.3.8), libxcb-randr0 (>= 1.1), libxcb-shm0, libxcb-xv0 (>= 1.2), libxcb1 (>= 1.6), libxext6, libxinerama1, libxpm4, zlib1g (>= 1:1.2.3.3.dfsg)
Recommends: vlc-plugin-notify (= 2.0.1-4), vlc-plugin-pulse (= 2.0.1-4), xdg-utils
Suggests: videolan-doc
Breaks: vlc-data (<< 1.1.5), vlc-nox (<< 1.1.5)
Filename: pool/universe/v/vlc/vlc_2.0.1-4_amd64.deb
Size: 1359752
MD5sum: e637d2a9dd2105dd3a21e1684f7d2472
SHA1: 004de522e4a22ccfeb348cd352d8b2da170f130f
SHA256: 026497f54a0406a0e7fe7032062266a67afe9400bdcd8473741a4d03df4aa8a2
Description-en: multimedia player and streamer
 VLC is the VideoLAN project's media player. It plays MPEG, MPEG-2, MPEG-4,
 DivX, MOV, WMV, QuickTime, WebM, FLAC, MP3, Ogg/Vorbis files, DVDs, VCDs,
 podcasts, and multimedia streams from various network sources.
 .
 VLC can also be used as a streaming server that duplicates the stream it
 reads and multicasts them through the network to other clients, or serves
 them through HTTP.
 .
 VLC has support for on-the-fly transcoding of audio and video formats, either
 for broadcasting purposes or for movie format transformations. Support for
 most output methods is provided by this package, but features can be added
 by installing additional audio plugins (vlc-plugin-pulse, vlc-plugin-sdl)
 or video plugins (vlc-plugin-sdl).
Homepage: http://www.videolan.org/vlc/
Description-md5: ade490894197577c48a5c98707cbcbcf
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Task: mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master
Code: Select all
$> apt-cache show ffmpeg
Package: ffmpeg
Priority: optional
Section: graphics
Installed-Size: 66
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian multimedia packages maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
Architecture: all
Source: libav
Version: 4:0.8.1-0ubuntu1
Depends: libav-tools
Filename: pool/main/liba/libav/ffmpeg_0.8.1-0ubuntu1_all.deb
Size: 2220
MD5sum: 121d8a3844610da5696580a3c0bacdda
SHA1: da37118c20b648110f33806256003f4194a1dce0
SHA256: ecee06069f911528017fd0ea292fc964863cee3933270816a415ad9d6d023a22
Description-en: Multimedia player, server, encoder and transcoder (transitional package)
 Libav is a complete, cross-platform solution to decode, encode, record,
 convert and stream audio and video.
 .
 This package is only used for transitional purposes and can be safely
 removed when no other packages depend on this package.
Homepage: http://libav.org/
Description-md5: 7d289d6cf1350e7e0ddcc4c8f883c772
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: ubuntustudio-video
Last edited by kurtosis on Tue Apr 24, 2012 4:46 pm, edited 1 time in total.
kurtosis
Visitor
 
Posts: 8
Joined: Sun Mar 04, 2012 10:44 pm

Re: Tribler 5.5.24 won't start on Ubuntu 12.04 (final beta)

Postby schaap » Tue Apr 24, 2012 9:06 am

Thanks for the extended system information. All the provided versions you provided look good to me, but I'm not familiar with specific defects or incompatibilities if such exist.

As you probably noticed yourself
Code: Select all
apt-cache show vic

gave no result (in fact: an error). The package is called vlc, with an L not an I. Try
Code: Select all
apt-cache show vlc

and check that its version is at least 1.1.

Why Tribler doesn't start? I have no idea. I can't imagine anyone putting a flag in to make sure it doesn't under Ubuntu 12.04, since that would make absolutely no sense whatsoever. So it must be something else. If you can find it we'd be happy to hear about it. Tribler is all open source, so you can get cracking whenever you feel like. Check the svn for the code. And when you start hacking: start with reading your log file, that might already give you a hint. You can find it in /tmp/USERNAME-tribler.log

Good luck and have fun!
schaap
Visitor
 
Posts: 130
Joined: Tue Jan 03, 2012 4:09 pm

Re: Tribler 5.5.24 won't start on Ubuntu 12.04 (final beta)

Postby kurtosis » Tue Apr 24, 2012 5:38 pm

Ah, vlc, yes I have that. Updated previous post with the correction and sys info.

Found the error log, it looks like a Python module from the python-wxgtk2.8 library is missing:
Code: Select all
$> less /tmp/kurtosis-tribler.log
Traceback (most recent call last):
  File "Tribler/Main/tribler.py", line 27, in <module>
    from Tribler.Main.vwxGUI.MainFrame import FileDropTarget
  File "/usr/share/tribler/Tribler/Main/vwxGUI/__init__.py", line 10, in <module>
    from Tribler.Main.Utility.GuiDBHandler import onWorkerThread, startWorker
  File "/usr/share/tribler/Tribler/Main/Utility/GuiDBHandler.py", line 6, in <module>
    from wx.lib.delayedresult import SenderWxEvent, SenderCallAfter, AbortedException,\
ImportError: No module named delayedresult


The import statement that's causing it, in /usr/share/tribler/Tribler/Main/Utility/GuiDBHandler.py:

Code: Select all
#Written by Niels Zeilemaker
#Extending wx.lib.delayedresult with a startWorker method which uses single producer
#Additionally DelayedResult is returned, allowing a thread to wait for result

import wx
from wx.lib.delayedresult import SenderWxEvent, SenderCallAfter, AbortedException,\
    DelayedResult, SenderNoWx
...


However, it appears that the delayedresult.py module is installed and where it looks like it should be (eg, in wx/lib/delayedresult.py):

Code: Select all
$> less /var/lib/dpkg/info/python-wxgtk2.8.list|grep delayed
/usr/share/pyshared/wx-2.8-gtk2-unicode/wx/lib/delayedresult.py
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/lib/delayedresult.py
$> locate delayedresult.py
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/lib/delayedresult.py
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/lib/delayedresult.pyc
/usr/share/pyshared/wx-2.8-gtk2-unicode/wx/lib/delayedresult.py


/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/lib/delayedresult.py is a symbolic link to /usr/share/pyshared/wx-2.8-gtk2-unicode/wx/lib/delayedresult.py, so lets just verify it contains the missing class DelayedResult...

Code: Select all
$> less /usr/share/pyshared/wx-2.8-gtk2-unicode/wx/lib/delayedresult.py|grep DelayedResult
only requirement on consumer is that it must accept a DelayedResult instance
    'Handler', 'DelayedResult', 'Producer', 'startWorker', 'PreProcessChain')
    simply added as attribute whenever a DelayedResult is created.
        delayedResult = DelayedResult(result, jobID=self.__jobID)
        exception will be raised when DelayedResult.get() is called."""
        delayedResult = DelayedResult(extraInfo,
class DelayedResult:
        """You should never have to call this yourself. A DelayedResult


Yup, it's there. So can I import wx.lib.delayedresult.DelayedResult in the Python interpreter?

Code: Select all
$> python
Python 2.7.3 (default, Apr 20 2012, 22:39:59)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> from wx import DelayedResult
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name DelayedResult
>>> import wx.lib.delayedresult
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named delayedresult
>>> import wx.lib
>>> import wx.lib.delayedresult
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named delayedresult


Aha. Tribler can't import the class DelayedResult because it can't find its module delayedresult.py. I'm not a Python expert, so I'm not sure where to go from here. Not sure why this module can't be imported, even though it appears to be where where Tribler expects. Any ideas?
kurtosis
Visitor
 
Posts: 8
Joined: Sun Mar 04, 2012 10:44 pm

Re: Tribler 5.5.24 won't start on Ubuntu 12.04 (final beta)

Postby kurtosis » Wed Apr 25, 2012 8:30 am

Update: Google only had one relevant link with the error "ImportError: No module named delayedresult":

https://bugs.launchpad.net/keryx/+bug/503056

Looks like the error could be caused with the wrong version of wxPython or multiple versions.

I checked and found two versions, python-wxgtk2.6 and python-wxgtk2.8. Uninstalld 2.6, and the tribler startup error changed to:

Code: Select all
Traceback (most recent call last):
  File "Tribler/Main/tribler.py", line 27, in <module>
    from Tribler.Main.vwxGUI.MainFrame import FileDropTarget
  File "/usr/share/tribler/Tribler/Main/vwxGUI/__init__.py", line 5, in <module>
    import wx
ImportError: No module named wx


Code: Select all
$> aptitude search python-wxgtk
p   python-wxgtk2.6                                                     - wxWidgets Cross-platform C++ GUI toolkit (wxPython binding)                 
p   python-wxgtk2.6:i386                                                - wxWidgets Cross-platform C++ GUI toolkit (wxPython binding)                 
p   python-wxgtk2.6-dbg                                                 - wxWidgets Cross-platform C++ GUI toolkit (wxPython binding, debug version)   
p   python-wxgtk2.6-dbg:i386                                            - wxWidgets Cross-platform C++ GUI toolkit (wxPython binding, debug version)   
i   python-wxgtk2.8                                                     - wxWidgets Cross-platform C++ GUI toolkit (wxPython binding)                 
p   python-wxgtk2.8:i386                                                - wxWidgets Cross-platform C++ GUI toolkit (wxPython binding)                 
i   python-wxgtk2.8-dbg                                                 - wxWidgets Cross-platform C++ GUI toolkit (wxPython binding, debug version)   
p   python-wxgtk2.8-dbg:i386                                            - wxWidgets Cross-platform C++ GUI toolkit (wxPython binding, debug version)   


Now it can't find the entire wx module. No idea what's going on here.
kurtosis
Visitor
 
Posts: 8
Joined: Sun Mar 04, 2012 10:44 pm

Re: Tribler 5.5.24 won't start on Ubuntu 12.04 (final beta)

Postby schaap » Wed Apr 25, 2012 8:39 am

Well, that at least gives a direction for solving the issue. If I try that import statement here it works and, looking at the wxgtk docs, it should work if everything is fine.

However, look at this: https://bugs.launchpad.net/keryx/+bug/503056 . It's stated there that an incompatible version of wxPython might cause the problem. Apart from reporting the problem to Ubuntu and allow them to fix it, you can try and build the wxPython module from source and see if that works: http://wxpython.org/ Nothin else to it right now, I'm afraid.
schaap
Visitor
 
Posts: 130
Joined: Tue Jan 03, 2012 4:09 pm

Re: Tribler 5.5.24 won't start on Ubuntu 12.04 (final beta)

Postby kurtosis » Wed Apr 25, 2012 3:56 pm

Fixed it, woohoo! The problem is that /usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/ is not in Python's sys.path for some reason.

Code: Select all
>>> import sys
>>> print sys.path


Adding that location to $PYTHONPATH in .profile adds it to sys.path and allows Tribler to start, at least for the current user.

Code: Select all
export PYTHONPATH="$PYTHONPATH":/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/


Now just gotta figure out why that location is no longer in the system's sys.path on 12.04. Looks like there needs to be a .pth file in /usr/lib/python2.7/site-packages that adds that location to sys.path. Gotta find out why it's not there.
kurtosis
Visitor
 
Posts: 8
Joined: Sun Mar 04, 2012 10:44 pm

Re: Tribler 5.5.24 won't start on Ubuntu 12.04 (final beta)

Postby kurtosis » Thu Apr 26, 2012 3:35 pm

No worries, I got it fixed, don't need any dev time on this. I just wanted to record it all here in case the problem isn't specific to just my installation and someone else comes along searching for it.

It sounds like an Ubuntu issue anyway, and if it's universal to 12.04 there is an easy fix for tribler devs - add the missing lib to $PYTHONPATH in /usr/bin/tribler launch script, where _TRIBLERPATH is constructed.
kurtosis
Visitor
 
Posts: 8
Joined: Sun Mar 04, 2012 10:44 pm

Re: Tribler 5.5.24 won't start on Ubuntu 12.04 (final beta)

Postby schaap » Fri Apr 27, 2012 12:27 pm

Thanks for figuring this out, kurtosis! I'll soon have the upgrade to the release of 12.04 finished (it's running as I write) and I'll have look if it persists. If so, I'll make sure the launch is updated for a later release.

I also removed a post before the last post of kurtosis above this one: it was most likely spam.
schaap
Visitor
 
Posts: 130
Joined: Tue Jan 03, 2012 4:09 pm


Return to Bug Reports

Who is online

Users browsing this forum: Bing [Bot] and 1 guest