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.
No comments:
Post a Comment