Le Thu, Aug 18, 2022 at 10:40:40AM +0200, Uwe Werler a écrit :
> On 18 Aug 10:20, Renaud Allard wrote:
> > 
> > 
> > On 8/18/22 08:25, Landry Breuil wrote:
> > > Le Thu, Aug 18, 2022 at 08:24:42AM +0200, Landry Breuil a écrit :
> > > > Hi,
> > > > 
> > > > so now that we have poetry-core in ports thanks to sthen@, here's a wip
> > > > diff for synapse using MODPY_PEP517 = poetry-core. Note that i haven't
> > > > tested it at all *yet*, and the do-test target fails:
> > > > 
> > > > ===>  Regression tests for synapse-1.65.0
> > > > cd /usr/obj/ports/synapse-1.65.0/synapse-1.65.0 && /usr/bin/env -i 
> > > > PYTHONPATH=. /usr/local/bin/trial tests
> > > > tests ...                                                               
> > > > [ERROR]
> > > > 
> > > > ===============================================================================
> > > > [ERROR]
> > > > Traceback (most recent call last):
> > > >    File 
> > > > "/usr/local/lib/python3.9/site-packages/twisted/trial/runner.py", line 
> > > > 691, in loadByName
> > > >      return self.suiteFactory([self.findByName(name, recurse=recurse)])
> > > >    File 
> > > > "/usr/local/lib/python3.9/site-packages/twisted/trial/runner.py", line 
> > > > 451, in findByName
> > > >      obj = reflect.namedModule(searchName)
> > > >    File 
> > > > "/usr/local/lib/python3.9/site-packages/twisted/python/reflect.py", 
> > > > line 156, in namedModule
> > > >      topLevel = __import__(name)
> > > >    File 
> > > > "/usr/obj/ports/synapse-1.65.0/synapse-1.65.0/tests/__init__.py", line 
> > > > 18, in <module>
> > > >      from synapse.util.patch_inline_callbacks import do_patch
> > > >    File 
> > > > "/usr/obj/ports/synapse-1.65.0/synapse-1.65.0/synapse/__init__.py", 
> > > > line 71, in <module>
> > > >      import synapse.util
> > > >    File 
> > > > "/usr/obj/ports/synapse-1.65.0/synapse-1.65.0/synapse/util/__init__.py",
> > > >  line 195, in <module>
> > > >      SYNAPSE_VERSION = 
> > > > get_distribution_version_string("matrix-synapse", __file__)
> > > > builtins.TypeError: get_distribution_version_string() takes 1 
> > > > positional argument but 2 were given
> > > > 
> > > > so a bit more work is needed, but that's a start for getting us 
> > > > up-to-date for
> > > > 7.2.
> > > 
> > > now with 100% more diffs..
> > 
> > I tried to start it on 7.1-stable, where I have my homeserver, but it fails
> > at start with the same error:
> > Traceback (most recent call last):
> >   File "/usr/local/bin/synctl", line 5, in <module>
> >     from synapse._scripts.synctl import main
> >   File "/usr/local/lib/python3.9/site-packages/synapse/__init__.py", line
> > 71, in <module>
> >     import synapse.util
> >   File "/usr/local/lib/python3.9/site-packages/synapse/util/__init__.py",
> > line 195, in <module>
> >     SYNAPSE_VERSION = get_distribution_version_string("matrix-synapse",
> > __file__)
> > TypeError: get_distribution_version_string() takes 1 positional argument but
> > 2 were given
> > 
> > It seems this is due to py3-matrix_common which needs an update.
> 
> Hi all,
> 
> after upgrading py3-matrix_common I get the following:
> 
> matrix-home:/<../ports/packages/amd64/all# doas -u _synapse
> /usr/local/bin/synctl start /var/synapse/homeserver.yaml ERROR:root:Synapse
> 1.65.0 needs canonicaljson<2.0.0,>=1.5.0, but got canonicaljson==1.4.0
> ERROR:root:Synapse 1.65.0 needs unpaddedbase64>=2.1.0, but got
> unpaddedbase64==1.1.0 Missing Requirements: "canonicaljson", "unpaddedbase64"
> To install run: pip install --upgrade --force "canonicaljson" "unpaddedbase64"
> synapse.app.homeserver(/var/synapse/homeserver.yaml) failed to start (exit
> code: 1). Check the Synapse logfile, or run synctl with --no-daemonize.

yes, check the two other diffs renaud sent to upgrade them too. My last
diff enforces the use of the updated versions.

Landry

Reply via email to