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
Created attachment 751214 [details] emerge --info
Thanks for the report.
Seems to be somewhat optional but not.. really: https://github.com/sqlalchemy/sqlalchemy/issues/7024.
(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)
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(+)
(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.
(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!
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(-)
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(-)