Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 770391 - dev-python/urwidtrees-1.0.3: pkg_resources.DistributionNotFound: The 'mock' distribution was not found and is required by urwidtrees
Summary: dev-python/urwidtrees-1.0.3: pkg_resources.DistributionNotFound: The 'mock' d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Guillaume Seren
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2021-02-13 16:35 UTC by Aaron D Borden
Modified: 2021-04-13 07:30 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,6.69 KB, text/plain)
2021-02-13 16:37 UTC, Aaron D Borden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron D Borden 2021-02-13 16:35:38 UTC
urwidtrees-1.0.3 requires `mock` but it is not installed by portage. This looks like a bug upstream (and [fixed][1]).

[1]: https://github.com/pazz/urwidtrees/commit/ed39dbc4fc67b0e0249bf108116a88cd18543aa9

Reproducible: Always

Steps to Reproduce:
1. USE=-doc emerge dev-python/alot dev-python/urwidtrees
2. Run alot
    $ alot
Actual Results:  
pkg_resources.DistributionNotFound: The 'mock' distribution was not found and is required by urwidtrees


Expected Results:  
mock continues to not be installed, but programs like alot startup without error.
Comment 1 Aaron D Borden 2021-02-13 16:37:35 UTC
Created attachment 686577 [details]
emerge --info
Comment 2 Aaron D Borden 2021-02-13 16:39:25 UTC
I tested the [patch][1] locally and it resolves the issue.

[1]: https://github.com/pazz/urwidtrees/commit/ed39dbc4fc67b0e0249bf108116a88cd18543aa9.patch
Comment 3 Guillaume Seren 2021-04-01 03:46:02 UTC
Hello Aaron sorry to be late,
I have sent the change for review / merge.

Thank you.
Comment 4 Larry the Git Cow gentoo-dev 2021-04-13 07:30:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=818d8236625a6e14b9c8d57ac2197b2711e458bd

commit 818d8236625a6e14b9c8d57ac2197b2711e458bd
Author:     Guillaume Seren <guillaumeseren@gmail.com>
AuthorDate: 2021-04-01 03:39:10 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-04-13 07:17:01 +0000

    dev-python/urwidtrees: Fix mock dependency bug #770391
    
    Closes: https://bugs.gentoo.org/770391
    Package-Manager: Portage-3.0.17, Repoman-3.0.2
    Signed-off-by: Guillaume Seren <guillaumeseren@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/20214
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 ...mock-dependency-to-install-when-necessary.patch | 30 ++++++++++++++++++++++
 dev-python/urwidtrees/urwidtrees-1.0.3.ebuild      |  4 +++
 2 files changed, 34 insertions(+)