You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/pi/synapse/env/lib/python3.9/site-packages/synapse/app/homeserver.py", line 28, in <module>
from synapse.api.urls import (
File "/home/pi/synapse/env/lib/python3.9/site-packages/synapse/api/urls.py", line 22, in <module>
from synapse.config.homeserver import HomeServerConfig
File "/home/pi/synapse/env/lib/python3.9/site-packages/synapse/config/homeserver.py", line 55, in <module>
from .workers import WorkerConfig
File "/home/pi/synapse/env/lib/python3.9/site-packages/synapse/config/workers.py", line 97, in <module>
class InstanceTcpLocationConfig(ConfigModel):
File "pydantic/main.py", line 186, in pydantic.main.ModelMetaclass.__new__
TypeError: Argument 'bases' has incorrect type (expected list, got tuple)
I am running this on a PI 4, latest rasbian version
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/pi/synapse/env/lib/python3.9/site-packages/synapse/app/homeserver.py", line 28, in<module>
from synapse.api.urls import (
File "/home/pi/synapse/env/lib/python3.9/site-packages/synapse/api/urls.py", line 22, in<module>
from synapse.config.homeserver import HomeServerConfig
File "/home/pi/synapse/env/lib/python3.9/site-packages/synapse/config/homeserver.py", line 55, in<module>
from .workers import WorkerConfig
File "/home/pi/synapse/env/lib/python3.9/site-packages/synapse/config/workers.py", line 97, in<module>
class InstanceTcpLocationConfig(ConfigModel):
File "pydantic/main.py", line 186, in pydantic.main.ModelMetaclass.__new__
TypeError: Argument 'bases' has incorrect type (expected list, got tuple)
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered:
Thanks for the report. Unfortunately, I can't reproduce this myself on Python 3.11, 3.9 or 3.8.
It seems that others have seen this against Pydantic: pydantic/pydantic#7689 roughly a week ago. Eyeballing the discussion in that issue, it looks like this is a problem with the way some of their binaries were built.
pip install pydantic==1.10.12
it works, though not sure if this is a good solution
Good idea---this seems like the right thing to do here.
I don't think there's much the Synapse team can do to prevent this specific issue, so I'm going to close. It's worth mentioning however that this is a recurring theme: see #13315
@lukeg32 one more thought occurs to me, though: when you did your initial install, what version of pydantic (pip list pydantic) got installed? I'm assuming it was 1.10.13 given the issue I linked, but it would be good to confirm.
Description
I have been Installing as a Python module from PyPI
and after installing as the tutorial suggested, when I run
I get the following error:
I am running this on a PI 4, latest rasbian version
Steps to reproduce
Homeserver
other
Synapse Version
1.93
Installation Method
pip (from PyPI)
Database
psql
Workers
Single process
Platform
Raspberry Pi 4
cat /etc/os-release
works on my Ubuntu 22.04.3 LTS server
Configuration
No response
Relevant log output
Anything else that would be useful to know?
No response
The text was updated successfully, but these errors were encountered: