Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 799836 - dev-python/pyphen-0.11.0 doesn’t include dictionaries
Summary: dev-python/pyphen-0.11.0 doesn’t include dictionaries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Thomas Deutschmann (RETIRED)
URL:
Whiteboard:
Keywords:
: 805923 (view as bug list)
Depends on:
Blocks: 805422
  Show dependency tree
 
Reported: 2021-07-02 09:34 UTC by Guillaume Ayoub
Modified: 2021-08-01 12:41 UTC (History)
3 users (show)

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


Attachments
New pyphen-0.11.0 ebuild (pyphen-0.11.0.ebuild,419 bytes, text/plain)
2021-07-02 12:33 UTC, Guillaume Ayoub
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Ayoub 2021-07-02 09:34:31 UTC
When installed, pyphen-0.11.0 doesn’t include dictionaries, leading to this backtrace when trying to import it:

>>> import pyphen
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.9/site-packages/pyphen/__init__.py", line 45, in <module>
    for filename in sorted(os.listdir(dictionaries_root)):
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.9/site-packages/pyphen/dictionaries'

The packaging system has been changed between 0.10.0 and 0.11.0, that’s probably the cause of the problem. But the source package works when used with pip for example.

(PS: I’m the maintainer of Pyphen)

Reproducible: Always

Steps to Reproduce:
1. Install pyphen
2. Launch python
3. Type "import pyphen"
Actual Results:  
It crashes.

Expected Results:  
It imports the module.
Comment 1 Guillaume Ayoub 2021-07-02 12:33:04 UTC
Created attachment 720993 [details]
New pyphen-0.11.0 ebuild

This is a more simple ebuild for Pyphen. It relies on the source package distributed on PyPI instead of GitHub’s repository export. No need for pyproject2setuppy, the source package already contains generated setup.py. It’s a bit more "future-proof", as it doesn’t depend on the packaging tool.

(I also changed the project homepage.)
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-08-01 07:11:08 UTC
Comment on attachment 720993 [details]
New pyphen-0.11.0 ebuild

It also doesn't run tests which makes it unsuitable.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-08-01 07:11:47 UTC
(that said, it's my fault, I'll look into fixing it today)
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-08-01 10:10:27 UTC
*** Bug 805923 has been marked as a duplicate of this bug. ***
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-08-01 10:43:37 UTC
Ok, this is actually a bug in pyproject2setuppy.

I'm going to revert the version bump until I've fixed it, and then readd with new revision and appropriate pyproj2setuppy dep.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-08-01 10:44:27 UTC
..or actually, I think p.mask would be better.
Comment 7 Larry the Git Cow gentoo-dev 2021-08-01 12:25:09 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f7e22dcbaa9151fb09523ee73acf0f03fa08b00

commit 3f7e22dcbaa9151fb09523ee73acf0f03fa08b00
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2021-08-01 10:46:15 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2021-08-01 12:24:09 +0000

    package.mask: Mask broken =pyphen-0.11.0
    
    Bug: https://bugs.gentoo.org/799836
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 profiles/package.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 8 Larry the Git Cow gentoo-dev 2021-08-01 12:41:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c5752c28fff71b00c44491ea790cbe5678de241

commit 9c5752c28fff71b00c44491ea790cbe5678de241
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2021-08-01 12:32:51 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2021-08-01 12:33:41 +0000

    dev-python/pyphen: Require pyproj2setuppy with dict install fix
    
    Closes: https://bugs.gentoo.org/799836
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/pyphen/{pyphen-0.11.0.ebuild => pyphen-0.11.0-r1.ebuild} | 2 +-
 profiles/package.mask                                               | 5 -----
 2 files changed, 1 insertion(+), 6 deletions(-)