Skip to content

cannot install Synapse on fedora minimal v43 with Python v3.14 - Pydantic v1 errors #19130

@ekimminau

Description

@ekimminau

Description

Performing install in docker container on fedora minimal v43. Ive tried forcing updrages, removing pydantc v1. This is a brand new clean install. Ive searched and can't seem to find anyone else seeing these messages.:

/usr/local/lib64/python3.14/site-packages/synapse/_pydantic_compat.py:36: UserWarning: Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater.
from pydantic.v1 import (
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/usr/local/lib64/python3.14/site-packages/synapse/app/homeserver.py", line 33, in
from synapse.api.urls import (
...<7 lines>...
)
File "/usr/local/lib64/python3.14/site-packages/synapse/api/urls.py", line 31, in
from synapse.config.homeserver import HomeServerConfig
File "/usr/local/lib64/python3.14/site-packages/synapse/config/homeserver.py", line 40, in
from .mas import MasConfig
File "/usr/local/lib64/python3.14/site-packages/synapse/config/mas.py", line 34, in
class MasConfigModel(ParseModel):
...<21 lines>...
return v
File "/usr/local/lib/python3.14/site-packages/pydantic/v1/main.py", line 221, in new
inferred = ModelField.infer(
name=var_name,
...<3 lines>...
config=config,
)
File "/usr/local/lib/python3.14/site-packages/pydantic/v1/fields.py", line 504, in infer
return cls(
name=name,
...<7 lines>...
field_info=field_info,
)
File "/usr/local/lib/python3.14/site-packages/pydantic/v1/fields.py", line 434, in init
self.prepare()
~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/pydantic/v1/fields.py", line 544, in prepare
self._set_default_and_type()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/pydantic/v1/fields.py", line 576, in set_default_and_type
raise errors
.ConfigError(f'unable to infer type for attribute "{self.name}"')
pydantic.v1.errors.ConfigError: unable to infer type for attribute "secret"

Steps to reproduce

  • list the steps
  • that reproduce the bug
  • using hyphens as bullet points

Homeserver

another local homeserver

Synapse Version

1.140+

Installation Method

Docker (matrixdotorg/synapse)

Database

a single postgres v17.6

Workers

Single process

Platform

Fedora minimal v43 container within Docker desktop

Configuration

No response

Relevant log output

/usr/local/lib64/python3.14/site-packages/synapse/_pydantic_compat.py:36: UserWarning: Core Pydantic V1 functionality isn't compatible with Python 3.14 or greater.

  from pydantic.v1 import (

Traceback (most recent call last):

  File "<frozen runpy>", line 198, in _run_module_as_main

  File "<frozen runpy>", line 88, in _run_code

  File "/usr/local/lib64/python3.14/site-packages/synapse/app/homeserver.py", line 33, in <module>

    from synapse.api.urls import (

    ...<7 lines>...

    )

  File "/usr/local/lib64/python3.14/site-packages/synapse/api/urls.py", line 31, in <module>

    from synapse.config.homeserver import HomeServerConfig

  File "/usr/local/lib64/python3.14/site-packages/synapse/config/homeserver.py", line 40, in <module>

    from .mas import MasConfig

  File "/usr/local/lib64/python3.14/site-packages/synapse/config/mas.py", line 34, in <module>

    class MasConfigModel(ParseModel):

    ...<21 lines>...

            return v

  File "/usr/local/lib/python3.14/site-packages/pydantic/v1/main.py", line 221, in __new__

    inferred = ModelField.infer(

        name=var_name,

    ...<3 lines>...

        config=config,

    )

  File "/usr/local/lib/python3.14/site-packages/pydantic/v1/fields.py", line 504, in infer

    return cls(

        name=name,

    ...<7 lines>...

        field_info=field_info,

    )

  File "/usr/local/lib/python3.14/site-packages/pydantic/v1/fields.py", line 434, in __init__

    self.prepare()

    ~~~~~~~~~~~~^^

  File "/usr/local/lib/python3.14/site-packages/pydantic/v1/fields.py", line 544, in prepare

    self._set_default_and_type()

    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^

  File "/usr/local/lib/python3.14/site-packages/pydantic/v1/fields.py", line 576, in _set_default_and_type

    raise errors_.ConfigError(f'unable to infer type for attribute "{self.name}"')

pydantic.v1.errors.ConfigError: unable to infer type for attribute "secret"

Anything else that would be useful to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions