dev-python/pycurl does not use the pycurl you are about to install for its tests but the system installed. Way to reproduce: # emerge -C pycurl && FEATURES="test" emerge pycurl fails due to make check cannot import module pycurl, however: # FEATURES="-test" emerge pycurl && FEATURES="test" emerge pycurl passes all checks fine.
*** Bug 319357 has been marked as a duplicate of this bug. ***
>>> Source compiled. * Testing of dev-python/pycurl-7.19.0 with CPython 2.6... Traceback (most recent call last): File "tests/test_internals.py", line 33, in <module> import pycurl ImportError: No module named pycurl * ERROR: dev-python/pycurl-7.19.0 failed: Guuuuh.
Fixed.