Bugzilla – Bug 1186156
python-postorius build gets stuck forever
Last modified: 2021-05-27 15:11:30 UTC
While working on reproducible builds for openSUSE, I found that our python-postorius package build gets stuck forever Steps To Reproduce: osc co openSUSE:Factory/python-postorius && cd $_ osc build --noservice --clean standard Actual results: [ 32s] raise VersionConflict(dist, req).with_context(dependent_req) [ 32s] pkg_resources.ContextualVersionConflict: (SQLAlchemy 1.4.13 (/usr/lib64/python3.8/site-packages), Requirement.parse('sqlalchemy<1.4,>=1.2.3'), {'mailman'}) [ 47s] Traceback (most recent call last): [ 47s] File "/usr/bin/runner", line 6, in <module> [ 47s] from pkg_resources import load_entry_point [ 47s] File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", l [ 47s] def _initialize_master_working_set(): [ 47s] File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", l [ 47s] f(*args, **kwargs) [ 47s] File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", l [ 47s] working_set = WorkingSet._build_master() [ 47s] File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", l [ 47s] return cls._build_from_requirements(__requires__) [ 47s] File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", l [ 47s] dists = ws.resolve(reqs, Environment()) [ 47s] File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", l [ 47s] raise DistributionNotFound(req, requirers) [ 47s] pkg_resources.DistributionNotFound: The 'sqlalchemy<1.4,>=1.2.3' distribution was not found and is required by mailman [stuck there] ps ax shows pytest3.8 and 2x python3.8 processes
You would need to unpin SQLAlchemy in the mailman-*.egg-info/requires.txt while ignoring [1] or provide a SQLAlchemy-1.3 package
(In reply to Benjamin Greiner from comment #1) > You would need to unpin SQLAlchemy in the mailman-*.egg-info/requires.txt > while ignoring [1] or provide a SQLAlchemy-1.3 package [1] https://gitlab.com/mailman/mailman/-/issues/899#note_576323267
It built fine for me: https://build.opensuse.org/package/show/home:gladiac:mailman3/python-postorius
Because Petr unpinned SQLAlchemy in mailman: https://build.opensuse.org/package/rdiff/devel:languages:python:mailman/python-mailman?linkrev=base&rev=48 .. but that doesn't fix the underlying problems with the SQLAlchemy 1.4. The mailman:test build fails.
Right, sorry for the confusion. I wanted to just show that sqlalchemy 1.4 is nogo currently for mailman.