Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 823794 - dev-python/sqlalchemy needs to depend on dev-python/greenlet
Summary: dev-python/sqlalchemy needs to depend on dev-python/greenlet
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-15 04:35 UTC by matoro
Modified: 2021-12-07 08:19 UTC (History)
2 users (show)

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


Attachments
emerge --info (info.txt,7.52 KB, text/plain)
2021-11-15 04:36 UTC, matoro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matoro archtester 2021-11-15 04:35:54 UTC
When attempting to use an application that uses dev-python/sqlalchemy, it will crash with a traceback like:

  File "", line 1, in <module>
    from requests.exceptions import ConnectionError
  File "/usr/lib/python3.9/site-packages/requests/__init__.py", line 133, in <module>
    from . import utils
  File "/usr/lib/python3.9/site-packages/requests/utils.py", line 26, in <module>
    from . import certs
  File "/usr/lib/python3.9/site-packages/requests/certs.py", line 15, in <module>
    from certifi import where
  File "/usr/lib/python3.9/site-packages/certifi/__init__.py", line 1, in <module>
    from .core import contents, where
  File "/usr/lib/python3.9/site-packages/certifi/core.py", line 3, in <module>
    from certifi._patch import _verify_dist_info
  File "/usr/lib/python3.9/site-packages/certifi/_patch.py", line 4, in <module>
    import pkg_resources
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'greenlet!=0.4.17' distribution was not found and is required by SQLAlchemy

This seems to be because dev-python/greenlet is now a mandatory dependency for recent versions in order to enable async functionality.  Please add as a runtime dependency.

Reproducible: Always
Comment 1 matoro archtester 2021-11-15 04:36:22 UTC
Created attachment 751214 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-15 04:46:14 UTC
Thanks for the report.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-15 04:47:59 UTC
Seems to be somewhat optional but not.. really: https://github.com/sqlalchemy/sqlalchemy/issues/7024.
Comment 4 matoro archtester 2021-11-15 04:51:33 UTC
(In reply to Sam James from comment #3)
> Seems to be somewhat optional but not.. really:
> https://github.com/sqlalchemy/sqlalchemy/issues/7024.

Yes, this should be behind an asyncio USE flag but it does detection on runtime based on architecture and they are clearly fumbling that so I suspect it would be easier just to make it an unconditional dependency (because the check does not take into account whether asyncio features are actually used)
Comment 5 Larry the Git Cow gentoo-dev 2021-11-15 04:59:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85cae71fdf4b2c3f946c8d7f87c5305b6163c751

commit 85cae71fdf4b2c3f946c8d7f87c5305b6163c751
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-15 04:53:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-15 04:58:41 +0000

    dev-python/sqlalchemy: add eventlet dependency
    
    Closes: https://bugs.gentoo.org/823794
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/sqlalchemy/sqlalchemy-1.4.27-r1.ebuild | 54 +++++++++++++++++++++++
 1 file changed, 54 insertions(+)
Comment 6 matoro archtester 2021-11-15 05:02:26 UTC
(In reply to Larry the Git Cow from comment #5)
> The bug has been closed via the following commit(s):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=85cae71fdf4b2c3f946c8d7f87c5305b6163c751
> 
> commit 85cae71fdf4b2c3f946c8d7f87c5305b6163c751
> Author:     Sam James <sam@gentoo.org>
> AuthorDate: 2021-11-15 04:53:38 +0000
> Commit:     Sam James <sam@gentoo.org>
> CommitDate: 2021-11-15 04:58:41 +0000
> 
>     dev-python/sqlalchemy: add eventlet dependency
>     
>     Closes: https://bugs.gentoo.org/823794
>     Signed-off-by: Sam James <sam@gentoo.org>
> 
>  dev-python/sqlalchemy/sqlalchemy-1.4.27-r1.ebuild | 54
> +++++++++++++++++++++++
>  1 file changed, 54 insertions(+)

Isn't this supposed to be greenlet, not eventlet?

I also noticed that there is apparently virtual/python-greenlit, I believe that should be used because greenlet is apparently built-in in pypy.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-15 05:07:27 UTC
(In reply to matoro from comment #6)
> (In reply to Larry the Git Cow from comment #5)
> > The bug has been closed via the following commit(s):
> > 
> > https://gitweb.gentoo.org/repo/gentoo.git/commit/
> > ?id=85cae71fdf4b2c3f946c8d7f87c5305b6163c751
> > 
> > commit 85cae71fdf4b2c3f946c8d7f87c5305b6163c751
> > Author:     Sam James <sam@gentoo.org>
> > AuthorDate: 2021-11-15 04:53:38 +0000
> > Commit:     Sam James <sam@gentoo.org>
> > CommitDate: 2021-11-15 04:58:41 +0000
> > 
> >     dev-python/sqlalchemy: add eventlet dependency
> >     
> >     Closes: https://bugs.gentoo.org/823794
> >     Signed-off-by: Sam James <sam@gentoo.org>
> > 
> >  dev-python/sqlalchemy/sqlalchemy-1.4.27-r1.ebuild | 54
> > +++++++++++++++++++++++
> >  1 file changed, 54 insertions(+)
> 
> Isn't this supposed to be greenlet, not eventlet?
> 
> I also noticed that there is apparently virtual/python-greenlit, I believe
> that should be used because greenlet is apparently built-in in pypy.

yes!
Comment 8 Larry the Git Cow gentoo-dev 2021-11-15 05:09:58 UTC
The bug has been closed via the following commit(s):

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

commit b31e0514edb8c37913095caf06b718bb498410c6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-15 05:08:25 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-15 05:09:42 +0000

    dev-python/sqlalchemy: fix greenlet dependency
    
    Closes: https://bugs.gentoo.org/823794
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/sqlalchemy/sqlalchemy-1.4.27-r1.ebuild | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
Comment 9 Larry the Git Cow gentoo-dev 2021-11-15 05:11:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73bb42158435a06d791b0f6de383f2a53ce5dcf8

commit 73bb42158435a06d791b0f6de383f2a53ce5dcf8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-15 05:11:10 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-15 05:11:10 +0000

    dev-python/sqlalchemy: revbump for fixed dependency
    
    Hopefully the last time this evening I need to fix a mistake
    of mine with this package...
    
    Closes: https://bugs.gentoo.org/823794
    Signed-off-by: Sam James <sam@gentoo.org>

 .../{sqlalchemy-1.4.27-r1.ebuild => sqlalchemy-1.4.27-r2.ebuild}          | 0
 1 file changed, 0 insertions(+), 0 deletions(-)