!XaqDhxuTIlvldquJaV:matrix.org

#synapse-dev:matrix.org

305 Members
If you are not a dev contributing code to Synapse, please talk in #synapse:matrix.org instead. This room is *only* for coordination of dev work. If you want to grab the attention of a dev, do it in #synapse:matrix.org. 128 Servers

Load older messages


SenderMessageTime
16 Apr 2021
@erikj:jki.reErikmaybe its easier if I just do it, its not a big change15:50:26
@richvdh:sw1v.orgrichvdhindeed15:50:37
* @erikj:jki.reErik grumbles at mypy15:58:59
@jboi:jboi.nlJonathanpython typing is flawless and perfect :D (/s)16:00:35
@jboi:jboi.nlJonathan(slightly related: https://github.com/samuelcolvin/pydantic/issues/2678)16:00:57
@jboi:jboi.nlJonathan * python typing is flawless and perfect :D (/s)16:03:58
@fariz:matrix.edgy.networkfariz joined the room.16:05:33
@fariz:matrix.edgy.networkfariz left the room.16:07:43
@chrisguida:matrix.start9labs.comchrisguida

Hello synapse devs! I'm currently trying to figure out how to build synapse for arm32v7. I noticed that this architecture was removed from docker support after version 1.26. Does anyone have any pointers for how I might achieve this? I'm running into this error:

#13 502.8   running build_rust
#13 502.8       Updating crates.io index
#13 502.8   warning: spurious network error (2 tries remaining): could not read directory '/root/.cargo/registry/index/github.com-1ecc6299db9ec823/.git//refs': Value too large for defined data type; class=Os (2)
#13 502.8   warning: spurious network error (1 tries remaining): could not read directory '/root/.cargo/registry/index/github.com-1ecc6299db9ec823/.git//refs': Value too large for defined data type; class=Os (2)
#13 502.8   error: failed to fetch https://github.com/rust-lang/crates.io-index
#13 502.8   
#13 502.8   Caused by:
#13 502.8     could not read directory '/root/.cargo/registry/index/github.com-1ecc6299db9ec823/.git//refs': Value too large for defined data type; class=Os (2)
#13 502.8   
#13 502.8       =============================DEBUG ASSISTANCE=============================
#13 502.8       If you are seeing a compilation error please try the following steps to
#13 502.8       successfully install cryptography:
#13 502.8       1) Upgrade to the latest pip and try again. This will fix errors for most
#13 502.8          users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
#13 502.8       2) Read https://cryptography.io/en/latest/installation.html for specific
#13 502.8          instructions for your platform.
#13 502.8       3) Check our frequently asked questions for more information:
#13 502.8          https://cryptography.io/en/latest/faq.html
#13 502.8       4) Ensure you have a recent Rust toolchain installed:
#13 502.8          https://cryptography.io/en/latest/installation.html#rust
#13 502.8       5) If you are experiencing issues with Rust for *this release only* you may
#13 502.8          set the environment variable CRYPTOGRAPHY_DONT_BUILD_RUST=1.
#13 502.8       =============================DEBUG ASSISTANCE=============================
17:21:52
@_neb_github:matrix.orgGithubhttps://github.com/matrix-org/synapse/pull/13 : Request logging17:21:53
@chrisguida:matrix.start9labs.comchrisguida I didn't find anything particularly helpful on cryptography's docs 17:22:57
@jboi:jboi.nlJonathanalso, idk if anyone's seeing it yet:17:27:35
@jboi:jboi.nlJonathanimage.png
Download image.png
17:27:38
@jboi:jboi.nlJonathanbut setting "required" on the bk build doesn't work :(17:27:46
@andrewm:amorgan.xyzanoa

Yes, I believe this was one of the pain points that ultimately forced us to drop support. I wasn't one of the folks that worked through the many 32-bit errors which this might've been a part of (and they're probably away until tomorrow). Regardless, from searching online it looks like that error can be common on 32-bit systems, and can be worked around by setting some build flags: https://github.com/nextcloud/docker/issues/870

pycryptography's error here is a bit of a red herring, and just appears when compilation (which requires some rust compilation) fails. The docker image should have rustc installed. I'm not sure whether git or a rust implementation of git is raising Value too large for defined data type here though.

17:31:36
@andrewm:amorgan.xyzanoa
In reply to @chrisguida:matrix.start9labs.com
I didn't find anything particularly helpful on cryptography's docs
*

Yes, I believe this was one of the pain points that ultimately forced us to drop support. I wasn't one of the folks that worked through the many 32-bit errors which this might've been a part of (and they're probably away until tomorrow). Regardless, from searching online it looks like that error can be common on 32-bit systems, and can be worked around by setting some build flags: https://github.com/nextcloud/docker/issues/870

pycryptography's error here is a bit of a red herring, and just appears when compilation (which requires some rust compilation) fails. The docker image should have rustc installed. I'm not sure whether git or a rust implementation of git is raising Value too large for defined data type here though.

17:31:57
@arne:dramaticexit.deArneRedacted or Malformed Event17:32:03
@andrewm:amorgan.xyzanoa
In reply to @jboi:jboi.nl
but setting "required" on the bk build doesn't work :(
I'm not sure what you mean?
17:32:13
@jboi:jboi.nlJonathan more callahad, but i didnt wanna ping him explicitly 17:32:41
@jboi:jboi.nlJonathanhe mentioned a little while ago about setting it on required, but it doesnt seem to work17:32:59
@andrewm:amorgan.xyzanoaimage.png
Download image.png
17:34:26
@andrewm:amorgan.xyzanoaI mean, it looks like it's set.17:34:30
@andrewm:amorgan.xyzanoaWhat do you mean by "doesn't work"?17:35:16
@jboi:jboi.nlJonathanhmmm 🤔17:35:18
@jboi:jboi.nlJonathanin that dan only set it for the CI job that kicked off the other bk jobs17:35:37
@andrewm:amorgan.xyzanoaOh, sure. But that job won't pass unless all other bk jobs pass.17:36:08
@jboi:jboi.nlJonathanbut it looks like it could be enabled via that screen as well17:36:05
@andrewm:amorgan.xyzanoa
In reply to @andrewm:amorgan.xyz
Oh, sure. But that job won't pass unless all other bk jobs pass.
So you only need to set it for that one job.
17:36:31
@andrewm:amorgan.xyzanoa chrisguida: https://github.com/docker/buildx/issues/395 looks relevant 17:38:50
@chrisguida:matrix.start9labs.comchrisguida sweet, thanks for the response anoa ! I'll take a look :) 17:59:41

There are no newer messages yet.


Back to Room List