Bug 1190841 - [abrt] python-scrapy: pkg_resources.py:567:resolve:DistributionNotFound: w3lib>=1.8.0
Summary: [abrt] python-scrapy: pkg_resources.py:567:resolve:DistributionNotFound: w3li...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-scrapy
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Eduardo Echeverria
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:7e23ad04c77b4cece798ea6b8da...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-09 17:42 UTC by frywalker
Modified: 2015-03-01 06:49 UTC (History)
2 users (show)

Fixed In Version: python-w3lib-1.11.0-1.fc21
Clone Of:
Environment:
Last Closed: 2015-03-01 06:49:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.66 KB, text/plain)
2015-02-09 17:42 UTC, frywalker
no flags Details
File: environ (3.24 KB, text/plain)
2015-02-09 17:42 UTC, frywalker
no flags Details

Description frywalker 2015-02-09 17:42:54 UTC
Description of problem:
scrapy software just doest work:

scrapy startproject tutorial
Traceback (most recent call last):
  File "/usr/bin/scrapy", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2713, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 567, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: w3lib>=1.8.0

Version-Release number of selected component:
python-scrapy-0.24.4-1.fc21

Additional info:
reporter:       libreport-2.3.0
cmdline:        /usr/bin/python2 /usr/bin/scrapy
dso_list:       python-setuptools-2.0-8.fc21.noarch
executable:     /usr/bin/scrapy
kernel:         3.17.7-300.fc21.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
pkg_resources.py:567:resolve:DistributionNotFound: w3lib>=1.8.0

Traceback (most recent call last):
  File "/usr/bin/scrapy", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2713, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 567, in resolve
    raise DistributionNotFound(req)
DistributionNotFound: w3lib>=1.8.0

Local variables in innermost frame:
dist: None
to_activate: [Scrapy 0.24.4 (/usr/lib/python2.7/site-packages), six 1.7.3 (/usr/lib/python2.7/site-packages), cssselect 0.9.1 (/usr/lib/python2.7/site-packages), pyOpenSSL 0.13.1 (/usr/lib64/python2.7/site-packages), lxml 3.3.6 (/usr/lib64/python2.7/site-packages), queuelib 1.1.1 (/usr/lib/python2.7/site-packages)]
req: Requirement.parse('w3lib>=1.8.0')
requirements: [Requirement.parse('Twisted>=10.0.0')]
processed: {Requirement.parse('pyOpenSSL'): True, Requirement.parse('six>=1.5.2'): True, Requirement.parse('Scrapy==0.24.4'): True, Requirement.parse('lxml'): True, Requirement.parse('cssselect>=0.9'): True, Requirement.parse('queuelib'): True}
env: <pkg_resources.Environment object at 0x7fb531d6ef90>
installer: None
self: <pkg_resources.WorkingSet object at 0x7fb531d6ee90>
best: {'lxml': lxml 3.3.6 (/usr/lib64/python2.7/site-packages), 'pyopenssl': pyOpenSSL 0.13.1 (/usr/lib64/python2.7/site-packages), 'six': six 1.7.3 (/usr/lib/python2.7/site-packages), 'w3lib': None, 'scrapy': Scrapy 0.24.4 (/usr/lib/python2.7/site-packages), 'cssselect': cssselect 0.9.1 (/usr/lib/python2.7/site-packages), 'queuelib': queuelib 1.1.1 (/usr/lib/python2.7/site-packages)}

Comment 1 frywalker 2015-02-09 17:42:56 UTC
Created attachment 989812 [details]
File: backtrace

Comment 2 frywalker 2015-02-09 17:42:58 UTC
Created attachment 989813 [details]
File: environ

Comment 3 Eduardo Echeverria 2015-02-15 04:37:10 UTC
traceback it is caused because scrapy needs w3lib>=1.8.0 and fedora system-wide it is in 1.3.0, I will talk with the mantainer of w3lib for update and rebuild

Comment 4 Fedora Update System 2015-02-15 07:59:49 UTC
python-w3lib-1.11.0-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/python-w3lib-1.11.0-1.fc21

Comment 5 Fedora Update System 2015-02-16 03:24:53 UTC
Package python-w3lib-1.11.0-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-w3lib-1.11.0-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-2110/python-w3lib-1.11.0-1.fc21
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-03-01 06:49:59 UTC
python-w3lib-1.11.0-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.