Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 263743

Summary: dev-python/kaa-metadata should DEPEND on dev-lang/python[threads]
Product: Gentoo Linux Reporter: Aelia <diego.abelenda>
Component: New packagesAssignee: Robert Buchholz (RETIRED) <rbu>
Status: RESOLVED FIXED    
Severity: normal CC: ian, python
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: kaa-metadata build.log

Description Aelia 2009-03-25 15:29:51 UTC
dev-python/kaa-metadata fails to compile on a system with python installed without USE="threads".

Reproducible: Always

Steps to Reproduce:
1. USE="-threads" emerge -uN python
2. emerge dev-python/kaa-metadata


Actual Results:  
fails to compile complaining about missing kaa.base python package.

Expected Results:  
portage should say we need python with USE threads
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-26 20:56:50 UTC
Please post the exact error message or even better attach the build log of the failed emerge to this bug.
Comment 2 Aelia 2009-03-27 08:13:00 UTC
Created attachment 186390 [details]
kaa-metadata build.log

useless :p
Comment 3 Aelia 2009-03-27 08:16:14 UTC
so I'll add here how I found out the real problem:

I opened the setup.py file and saw :
import sys

try:
    # kaa base imports
    from kaa.distribution.core import Extension, setup
except ImportError:
    print 'kaa.base not installed'
    sys.exit(1)

from here it was clear that the problem wasn't really kaa.base so I opened a python interpreter and pasted only 
import sys
 from kaa.distribution.core import Extension

and the real error appeared


Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "//usr/lib64/python2.5/site-packages/kaa/__init__.py", line 33, in <module>
    from kaa.notifier import *
  File "//usr/lib64/python2.5/site-packages/kaa/notifier/__init__.py", line 42, in <module>
    from async import TimeoutException, InProgress, InProgressCallback, InProgressSignals
  File "//usr/lib64/python2.5/site-packages/kaa/notifier/async.py", line 41, in <module>
    import threading
  File "/usr/lib64/python2.5/threading.py", line 6, in <module>
    import thread
ImportError: No module named thread
Comment 4 Patrick Lauer gentoo-dev 2009-04-27 21:42:15 UTC
+  27 Apr 2009; Patrick Lauer <patrick@gentoo.org> kaa-metadata-0.7.5:
+  Bump to eapi2, adding python[threads] dep, fixes #263743
+

since kaa-base already has a python[threads] dep this is strictly speaking not needed, but makes things more predictable.