Created attachment 313403 [details] emerge --info The error is short enough to use as the description: # emerge -uDN dev-python/scrapy Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-python/scrapy-0.14.4 * Scrapy-0.14.4.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking Scrapy-0.14.4.tar.gz to /var/tmp/portage/dev-python/scrapy-0.14.4/work >>> Source unpacked in /var/tmp/portage/dev-python/scrapy-0.14.4/work >>> Preparing source in /var/tmp/portage/dev-python/scrapy-0.14.4/work/Scrapy-0.14.4 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/scrapy-0.14.4/work/Scrapy-0.14.4 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/scrapy-0.14.4/work/Scrapy-0.14.4 ... * Building of dev-python/scrapy-0.14.4 with CPython 2.7... python2.7 setup.py build -b build-2.7 Traceback (most recent call last): File "setup.py", line 93, in <module> version = __import__('scrapy').__version__ File "/var/tmp/portage/dev-python/scrapy-0.14.4/work/Scrapy-0.14.4/scrapy/__init__.py", line 18, in <module> from scrapy.xlib import twisted_250_monkeypatches, urlparse_monkeypatches File "/var/tmp/portage/dev-python/scrapy-0.14.4/work/Scrapy-0.14.4/scrapy/xlib/urlparse_monkeypatches.py", line 1, in <module> from urlparse import urlparse, uses_netloc, uses_query ImportError: cannot import name uses_query
Created attachment 313405 [details] build log
Created attachment 313407 [details] emerge -pqv
Created attachment 313409 [details] Emerge environment
urlparse is a part of Python's stdlib. Your python installation is somehow crippled. I don't know what may have caused that :/
(In reply to comment #4) > urlparse is a part of Python's stdlib. Your python installation is somehow > crippled. I don't know what may have caused that :/ I figured it out. I had installed the progress overlay for some reason (probably related to a screen scraping tool from the pentoo overlay), but can safely live without the progress overlay - having removed it and rebuilt the affected builds (especially, python), scrapy installs as it should. So - this bug is basically invalid. Thanks.
This is a valid bug, which will also occur for users of >=dev-lang/python-2.7.4:2.7::gentoo. uses_query has been removed: http://hg.python.org/cpython/rev/79e6ff3d9afd dev-python/scrapy should be fixed. I have reported upstream issue: https://github.com/scrapy/scrapy/issues/144
(In reply to comment #6) > This is a valid bug, which will also occur for users of > >=dev-lang/python-2.7.4:2.7::gentoo. > > uses_query has been removed: > http://hg.python.org/cpython/rev/79e6ff3d9afd > > dev-python/scrapy should be fixed. I have reported upstream issue: > https://github.com/scrapy/scrapy/issues/144 Interesting. I didn't bother reporting it, but I had tested locally by removing uses_query and making a custom distfile for myself, and of course that worked. I wasn't sure whether it affected the runtime for scrapy as I did not put it through regression tests of any sort.
This bug is way old. Is it still valid?
Inasmuch as dev-python/scrapy-1.0.3 installed OK for me just now, this really old bug is clearly obsolete. Please close it.