Open CodeShakingSheep opened 3 days ago
Hello,
Look like clearly an upstream issue related to the new feature https://github.com/YunoHost/yunohost/pull/1851 .
Anyway we can debug it here.
Firstly what is your yunohost version exactly ?
What is the result of theses following commands:
dpkg -l | grep pkg
and
python3 -c 'import pkg_resources; print("OK")'
Thanks for your reply @Josue-T . My YNH version is 11.2.20.1
. Also added it to the original post. Here are the outputs of the commands.
dpkg -l | grep pkg
ii dpkg 1.20.13 amd64 Debian package management system
ii dpkg-dev 1.20.13 all Debian package development tools
ii libapt-pkg6.0:amd64 2.2.4 amd64 package management runtime library
ii libdpkg-perl 1.20.13 all Dpkg perl modules
ii pkg-config 0.29.2-1 amd64 manage compile and link flags for libraries
ii python-apt-common 2.2.1 all Python interface to libapt-pkg (locales)
ii python3-apt 2.2.1 amd64 Python 3 interface to libapt-pkg
ii python3-pkg-resources 52.0.0-4 all Package Discovery and Resource Access using pkg_resources
python3 -c 'import pkg_resources; print("OK")'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'pkg_resources'
Can you share me the list of all app installed on your instance ? Did you do some customization with python packages ?
And also can you share me the result of this command:
apt install tree && tree /usr/lib/python3/dist-packages/pkg_resources
Than can you also try this command:
apt install --reinstall python3-pkg-resources && python3 -c 'import pkg_resources; print("OK")'
I will check the list of all installed apps using python later. No, I didn't do any customization with python packages.
I had tree
already installed. The first command tree /usr/lib/python3/dist-packages/pkg_resources
prints
/usr/lib/python3/dist-packages/pkg_resources [error opening dir]
0 directories, 0 files
Indeed, the directory pkg_resources
is not present in /usr/lib/python3/dist-packages/dist-packages
.
Will try your second command later too as I'm on the move right now.
I had
tree
already installed. The first commandtree /usr/lib/python3/dist-packages/pkg_resources
prints/usr/lib/python3/dist-packages/pkg_resources [error opening dir] 0 directories, 0 files
Well, look like that your python package python3-pkg-resources
is broken. So reinstalling should fix the issue. But it should be interesting to understand why this package was broken. Maybe an other python apps which didn't manage correctly the packages, I don't know but would be interesting to know.
Describe the bug
Upgrading from version 1.108.0~ynh1 to 1.109.0~ynh1 fails. Fortunately, restoring worked.
Context
Steps to reproduce
Just hit the upgrade button in webadmin.
Expected behavior
Synapse app should be upgraded successfully.
Logs
https://paste.yunohost.org/raw/wecegizotu
Relevant part: