question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

setuptools_rust should not be a runtime dep

See original GitHub issue

Description

This is a build time dep and not a runtime dep. At startup synapse should not check for this anymore.

Steps to reproduce

try to start synapse without setuptools_rust installed.

Homeserver

another home server

Synapse Version

1.68.0

Installation Method

Other (please mention below)

Platform

openSUSE Tumbleweed rpm

Relevant log output

Sep 28 03:06:30 tengu matrix-synapse[4251]: ERROR:root:Synapse 1.68.0 needs setuptools_rust, but it is not installed
Sep 28 03:06:30 tengu matrix-synapse[4251]: Missing Requirements: "setuptools_rust"
Sep 28 03:06:30 tengu matrix-synapse[4251]: To install run:
Sep 28 03:06:30 tengu matrix-synapse[4251]:     pip install --upgrade --force "setuptools_rust"

Anything else that would be useful to know?

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
DMRobertsoncommented, Sep 28, 2022

i.e. if the build requirements are ignored when doing poetry install

I would like to once again declare that I hate Python packaging.

0reactions
DMRobertsoncommented, Sep 29, 2022

could you advice which lines i should patch to workaround this issue until a fix is ready?

It’s difficult to say without knowing how the openSUSE Tumbleweed rpm is built. You could comment out this line for the time being.

https://github.com/matrix-org/synapse/blob/bf9d549e3ad944e1e53a2ecc898640d690bf1eac/synapse/util/check_dependencies.py#L197

Read more comments on GitHub >

github_iconTop Results From Across the Web

poetry install does not honor build-system.requires #6154
Running poetry build with the above pyproject.toml does the right ... setuptools_rust should not be a runtime dep matrix-org/synapse#13926.
Read more >
1906490 – Review Request: python-setuptools-rust
I see imports from setuptools in the code, so it seems likely that it's actually a dependency at runtime. Probably "setuptools>=46.1" should ......
Read more >
Dependencies Management in Setuptools
When your project is installed (e.g., using pip), all of the dependencies not already installed will be located (via PyPI), downloaded, built (if...
Read more >
Failed to install Python Cryptography package with PIP and ...
I had a similar issue, and found I was simply missing a dependency (libssl-dev, for me).
Read more >
distutils-r1 — standard Python build systems
Runtime dependencies are enforced only when starting installed programs via entry points. In other cases, dependencies are listed in additional files named e.g. ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found