-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Missing dependency to lxml for URL previewing #2425
Comments
Got the same problem here. (debian stable package from repository (0.22.1-1) |
we deliberately didn't include lxml in the deps for synapse as it's a beast and only needed for optional url previews. so the readme asks users to install manually when needed. this was @erikjohnston's idea; i forget why we don't put it in the optional deps (other than possibly optional deps get installed anyway?) |
I mean, if it's not listed as a conditional dependency for URL previewing, that makes that section of the dependencies script entirely useless and misleading, so removing it entirely and listing it in e.g. the README or related document would be much better. |
fwiw, synapse does complain about the missing dependency in a sensible manner. |
it is listed in the readme. I think this is working as intended. |
I'd say it still feels very inconsistent and misleading to list some dependencies of URL previewing under |
oh, yes it is. sorry, I hadn't realised that we have a separate section of CONDITIONAL_REQUIREMENTS for preview_url. Could somebody just make a PR for this? |
Whether we necessarily want to install |
@erikjohnston: so why do we bother listing |
Fixed in #4298 . |
what is the workaround? I tried
but no luck |
Workaround:
|
URL previewing in Synapse requires the lxml library (
python[2]-lxml
) to work (source: tried to run Synapse without the lxml package installed and with URL previewing enabled and it crashed), but this optional dependency is missing fromsynapse/python_dependencies.py
.Should be an easy one to fix but I'm unsure about the lowest working version of lxml for this feature.
The text was updated successfully, but these errors were encountered: