Catch other error variant of missing icu dependency#18261
Catch other error variant of missing icu dependency#18261MadLittleMods wants to merge 2 commits intodevelopfrom
icu dependency#18261Conversation
|
Not a big fan of merging this; this will conceal errors when you thought you had ICU installed but actually it's not installed properly. (Ironically such as yours) The problem in your case is that the underlying ICU library on your system has been updated to a new version, but you need to rebuild the Python package, because the ICU library has changed major version and is not ABI compatible with the previous one. To do so, you might have to clear your Python wheel cache and then reinstall the PyICU package. |
|
These kinds of problems shouldn't exist. The fact that Poetry can't figure out the right thing to do is such a big fail. Perhaps, it doesn't have enough info given how tenuous dynamically linked libraries are as far as I can tell. I can't seem to get the PyICU ( Commands I tried: $ poetry cache clear --all .$ poetry env list
$ poetry env remove matrix-synapse-xCtC9ulO-py3.13
$ poetry install --extras allTried removing them all: $ poetry env remove --all
$ poetry install --extras all
$ poetry env remove --all
$ poetry install --extras all --no-cache$ rm -rf ./matrix_synapse.egg-infoSince I'm not working on or even using search, I don't really care whether I have the Other posts that mention |
|
Yeah it's super painful. And definitely there's a fail somewhere in the package management system that this doesn't get figured out (but I refer back to many statements of 'Python Packaging is broken'). I think in the past for me, clearing |
Great tip! Works perfectly now 🌄 Thank you @reivilibre! I'll add this to our docs ⏩ $ rm -rf ~/.cache/pypoetry
$ poetry env remove --all
$ poetry install --extras all
# Works!
$ poetry run synapse_homeserver --config-path homeserver.yamlPoetry is crazy for their built-in commands not handling this. It looks like they store wheels in
|
|
Created #18283 to add this tip to our docs ✅ Created python-poetry/poetry#10304 to add this to the Poetry issue tracker ⏩ |
As shared by @reivilibre, #18261 (comment) Relevant Poetry issue around how this should be handled by them: python-poetry/poetry#10304
Catch other error variant of missing
icudependencyI'm not sure why I ran into this error as I think I have
icuinstalled on my system:Manjaro Linux (arch-based):
$ pamac search icu --installed lib32-icu 76.1-1 multilib International Components for Unicode library (32 bit) harfbuzz-icu 10.4.0-1 extra OpenType text shaping engine - ICU integration icu 76.1-1 core International Components for Unicode libraryPull Request Checklist
EventStoretoEventWorkerStore.".code blocks.(run the linters)