|Summary:||dev-python/scrapy-0.14.4 fails in setup while parsing urlparse_monkeypatches.py|
|Product:||Gentoo Linux||Reporter:||Willard Dawson <wfdawson>|
|Component:||[OLD] Development||Assignee:||Maxim Koltsov (RETIRED) <maksbotan>|
|Package list:||Runtime testing required:||---|
Description Willard Dawson 2012-05-28 17:27:46 UTC
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
Comment 3 Willard Dawson 2012-05-28 17:30:48 UTC
Created attachment 313409 [details] Emerge environment
Comment 4 Kacper Kowalik (Xarthisius) (RETIRED) 2012-05-28 19:48:15 UTC
urlparse is a part of Python's stdlib. Your python installation is somehow crippled. I don't know what may have caused that :/
Comment 5 Willard Dawson 2012-06-14 14:48:15 UTC
(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.
Comment 6 Arfrever Frehtes Taifersar Arahesis 2012-06-14 16:23:18 UTC
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
Comment 7 Willard Dawson 2012-06-14 16:40:49 UTC
(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.
Comment 8 Willard Dawson 2014-03-29 14:46:12 UTC
This bug is way old. Is it still valid?
Comment 9 Willard Dawson 2016-06-08 02:21:35 UTC
Inasmuch as dev-python/scrapy-1.0.3 installed OK for me just now, this really old bug is clearly obsolete. Please close it.