Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403505 - net-p2p/tribler 5.5.10 should depend on >=dev-lang/python-2.5[sqlite]
Summary: net-p2p/tribler 5.5.10 should depend on >=dev-lang/python-2.5[sqlite]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-02-14 03:54 UTC by Sylvain Alain (RETIRED)
Modified: 2012-02-14 20:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Corrected tribler ebuild (tribler-5.5.12.ebuild,1.33 KB, text/plain)
2012-02-14 04:09 UTC, Jean-Francis Roy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain Alain (RETIRED) gentoo-dev 2012-02-14 03:54:08 UTC
If tribler is build agains python that doesn't have the sqlite use flag, Tribler will crash big time.

Reproducible: Always

Steps to Reproduce:
1. time emerge -av tribler
2. /usr/bin/tribler
3.
Actual Results:  
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/MainFrame.py", line 23, in <module>
    from Tribler.Main.vwxGUI.TopSearchPanel import TopSearchPanel,\
  File "/usr/share/tribler/Tribler/Main/vwxGUI/TopSearchPanel.py", line 4, in <module>
    from GuiUtility import GUIUtility
  File "/usr/share/tribler/Tribler/Main/vwxGUI/GuiUtility.py", line 14, in <module>
    from Tribler.Core.BuddyCast.buddycast import BuddyCastFactory
  File "/usr/share/tribler/Tribler/Core/BuddyCast/buddycast.py", line 179, in <module>
    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 33, in <module>
    from Tribler.Core.dispersy.dispersy import Dispersy
  File "/usr/share/tribler/Tribler/Core/dispersy/dispersy.py", line 55, in <module>
    from dispersydatabase import DispersyDatabase
  File "/usr/share/tribler/Tribler/Core/dispersy/dispersydatabase.py", line 14, in <module>
    from database import Database
  File "/usr/share/tribler/Tribler/Core/dispersy/database.py", line 14, in <module>
    import sqlite3
ImportError: No module named sqlite3

Expected Results:  
starting the application
Comment 1 Sylvain Alain (RETIRED) gentoo-dev 2012-02-14 03:56:12 UTC
Tribler should depends on python with the use flag sqlite that is enable.

When I recompiled my python with sqlite support, now Tribler works.
Comment 2 Jean-Francis Roy 2012-02-14 04:09:45 UTC
Created attachment 301873 [details]
Corrected tribler ebuild

See attached tribler ebuild with corrected python dependency.

Note that the version number of the ebuild is for version 5.5.12. Tribler moves very fast with bug corrections as it is getting very popular. Let me know if you want me to fill a bump request bug.

Thanks!
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-14 18:44:12 UTC
Comment on attachment 301873 [details]
Corrected tribler ebuild

--- tribler-5.5.10.ebuild       2012-02-10 04:19:49.000000000 +0100
+++ -   2012-02-14 19:43:11.087689022 +0100
@@ -15,7 +15,7 @@
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
-RDEPEND=">=dev-lang/python-2.5
+RDEPEND=">=dev-lang/python-2.5[sqlite]
        >=dev-python/m2crypto-0.16
        >=dev-python/wxpython-2.8
        >=dev-python/apsw-3.6
Comment 4 Anthony Basile gentoo-dev 2012-02-14 20:41:49 UTC
Fixed.  Thanks for catching that!
Comment 5 Sylvain Alain (RETIRED) gentoo-dev 2012-02-14 20:46:13 UTC
No problem :P