Bug 1182213 - [abrt] s3ql: pkg_resources.py:567:resolve:pkg_resources.DistributionNotFound: requests
Summary: [abrt] s3ql: pkg_resources.py:567:resolve:pkg_resources.DistributionNotFound:...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: s3ql
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Marcel Wysocki
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:aa502da3294947651dc4aa14104...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-14 15:56 UTC by Sean Pryor
Modified: 2015-07-10 19:15 UTC (History)
3 users (show)

Fixed In Version: s3ql-2.13-1.fc21
Clone Of:
Environment:
Last Closed: 2015-07-10 19:10:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.30 KB, text/plain)
2015-01-14 15:56 UTC, Sean Pryor
no flags Details
File: environ (2.09 KB, text/plain)
2015-01-14 15:56 UTC, Sean Pryor
no flags Details

Description Sean Pryor 2015-01-14 15:56:06 UTC
Description of problem:
using mkfs.s3ql to create a local filesystem caused a stack trace

Version-Release number of selected component:
s3ql-2.9-2.fc21

Additional info:
reporter:       libreport-2.3.0
cmdline:        /usr/bin/python3 /bin/mkfs.s3ql local://s3ql
executable:     /bin/mkfs.s3ql
kernel:         3.17.8-300.fc21.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
pkg_resources.py:567:resolve:pkg_resources.DistributionNotFound: requests

Traceback (most recent call last):
  File "/bin/mkfs.s3ql", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 2709, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 664, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 567, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: requests

Local variables in innermost frame:
env: <pkg_resources.Environment object at 0x7f1163b9d550>
best: {'requests': None}
installer: None
processed: {Requirement.parse('defusedxml'): True, Requirement.parse('dugong>=3.1'): True, Requirement.parse('s3ql==2.9'): True, Requirement.parse('llfuse>=0.39'): True}
req: Requirement.parse('requests')
to_activate: [s3ql 2.9 (/usr/lib64/python3.4/site-packages), llfuse 0.40 (/usr/lib64/python3.4/site-packages), dugong 3.3 (/usr/lib/python3.4/site-packages), defusedxml 0.4.1 (/usr/lib/python3.4/site-packages)]
dist: None
requirements: [Requirement.parse('pycrypto'), Requirement.parse('apsw>=3.7.0')]
self: <pkg_resources.WorkingSet object at 0x7f1163b9d518>

Comment 1 Sean Pryor 2015-01-14 15:56:08 UTC
Created attachment 980093 [details]
File: backtrace

Comment 2 Sean Pryor 2015-01-14 15:56:08 UTC
Created attachment 980094 [details]
File: environ

Comment 3 Don Law 2015-02-05 16:30:19 UTC
I found a similar problem in Fedora 21.  My traceback was this:


Traceback (most recent call last):
  File "/bin/mkfs.s3ql", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 2709, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 664, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 567, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: requests

A workaround solution for the problem is this (as root or under sudo):

    yum install python3-requests

Hope this helps Googler's out there.

Comment 4 Sean Pryor 2015-02-05 16:44:36 UTC
Yeah, it seems like the package is just missing a dependency on python3-requests

Comment 5 Sean Pryor 2015-02-05 17:01:47 UTC
First attempt at using diff to make a patch

--- s3ql.spec   2015-02-05 11:57:53.614556434 -0500
+++ s3ql.spec.new       2015-02-05 11:58:35.990513643 -0500
@@ -22,6 +22,7 @@
 Requires:       python3-defusedxml
 Requires:       python3-dugong
 Requires:       python3-llfuse
+Requires:       python3-requests
 
 %description
 S3QL is a file system that stores all its data online using storage services

I believe something like that resolves it?

Comment 6 Fedora Update System 2015-06-29 11:42:09 UTC
s3ql-2.13-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/s3ql-2.13-1.fc21

Comment 7 Fedora Update System 2015-06-29 11:43:17 UTC
s3ql-2.13-1.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/s3ql-2.13-1.fc22

Comment 8 Fedora Update System 2015-06-30 00:00:34 UTC
Package s3ql-2.13-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing s3ql-2.13-1.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-10869/s3ql-2.13-1.fc22
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2015-07-10 19:10:22 UTC
s3ql-2.13-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2015-07-10 19:15:22 UTC
s3ql-2.13-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.