If python is compiled with the nothreads USE-flag this error message occurs when trying to use equery: $ equery belongs /bin/bash Traceback (most recent call last): File "/usr/bin/equery", line 24, in ? import gentoolkit File "/usr/lib/gentoolkit/pym/gentoolkit/__init__.py", line 28, in ? from threading import Lock File "/usr/lib/python2.4/threading.py", line 6, in ? import thread ImportError: No module named thread
Created attachment 153981 [details, diff] patch for gentoolkit ebuilds
This patch isn't correct anymore. The 'nothreads' USE flag disappeared in >= python-2.4.4-r10. They introduced the 'threads' USE flag in python now. ... if ! built_with_use 'dev-lang/python' 'threads' ; then eerror "dev-lang/python is missing thread support. Please add" eerror "'threads' to your USE flags, and re-emerge dev-lang/python." die "dev-lang/python needs thread support" fi ...
Created attachment 159956 [details] /usr/lib/gentoolkit/pym/gentoolkit/__init__.py gentoolkit only requires thread support if it is used in a multi-threaded application. I've fixed it so that if you don't have threads enabled, it defines a "null" Lock class. $ svn commit -m "Fix gentoolkit to work without thread support in python. (Bug 223255)" ChangeLog src/gentoolkit/__init__.py Sending ChangeLog Sending src/gentoolkit/__init__.py Transmitting file data .. Committed revision 491.
Released in gentoolkit-0.2.4_rc5.
*** Bug 230021 has been marked as a duplicate of this bug. ***