I had the same issue with poetry some time ago:python-poetry/poetry#6035(resolved bypython-poetry/poetry#8359). Noteuv venv --system-site-packagesexists since#2101, but "we won't take the system site packages into account in subsequent commands". I think this is related to UV upgrades pa...
kivy_path=$venv_path"/lib/python3.9/site-packages/kivy/tools/packaging/pyinstaller_hooks" sed 's/from PyInstaller.compat import modname_tkinter/#/' $kivy_path"/__init__.py" > tmp.txt && mv tmp.txt $kivy_path"/__init__.py"