Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

synapse fails to install with poetry 1.6.0 - "No module named 'synapse.synapse_rust'" at runtime #16147

@michaelkaye

Description

@michaelkaye

Description

originally reported in: michaelkaye/setup-matrix-synapse#95

This was last known working on 18 Aug at 17:00 UTC

No error seems to occur when poetry install is run.

Steps to reproduce

Steps we do for install are written in the GHA action: https://github.com/michaelkaye/setup-matrix-synapse/blob/main/create.js#L18

See github action results for the error: https://github.com/michaelkaye/setup-matrix-synapse/actions/runs/5924305224

Homeserver

testing server in GHA

Synapse Version

main

Installation Method

Other (please mention below)

Database

n/a - can't start synapse

Workers

Single process

Platform

Installed via michaelkaye/setup-matrix-synapse in a GHA worker

Configuration

N/A - can't start synapse

Relevant log output

/opt/pipx_bin/poetry run python -m synapse.app.homeserver --server-name localhost --config-path homeserver.yaml --generate-config --report-stats=no
Traceback (most recent call last):
  File "<frozen runpy>", line 189, in _run_module_as_main
  File "<frozen runpy>", line 112, in _get_module_details
  File "/home/runner/work/setup-matrix-synapse/setup-matrix-synapse/synapse/synapse/__init__.py", line 24, in <module>
    from synapse.util.rust import check_rust_lib_up_to_date
  File "/home/runner/work/setup-matrix-synapse/setup-matrix-synapse/synapse/synapse/util/rust.py", line 20, in <module>
    from synapse.synapse_rust import get_rust_file_digest
ModuleNotFoundError: No module named 'synapse.synapse_rust'
Error: The process '/opt/pipx_bin/poetry' failed with exit code 1

Anything else that would be useful to know?

Installing via pip works fine - see alternate test cases in the github action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-PackagingOur Debian packages, docker images; or issues relevant to downstream packagersO-OccasionalAffects or can be seen by some users regularly or most users rarelyS-MajorMajor functionality / product severely impaired, no satisfactory workaround.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.Z-Future-MaintenanceThings that can't yet be done, but will need cleaning up in a couple of months/releases

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions