Auto updater breaks dependency auto installer
Summary
Auto updater fails to clean the libs folder, making dependency auto installer on start believe the dependencies are correctly installed when they're not.
- Addon version: Develop (0.5.0)
- Blender version: 3.0/3.1
- OS: ArchLinux
Steps to reproduce
- Install Blender from zip or Steam (important)
- Install multi-user
- Restart Blender so dependencies are installed
- Update multi-user to Develop through the auto-updater panel
- Restart Blender
- Watch it fail with the following:
ImportError: cannot import name 'Delta' from 'deepdiff' (unknown location)
What is the current bug behavior?
Auto Installer partially deletes the libs folder, specifically it leaves the folder libs/deepdiff
empty, leaving zmq and replication available, which in turn makes dependency auto installer not run, resulting in the failure to find deepdiff.
This can be checked by monitoring the libs folder. After running auto-updater, the deepdiff folder will be empty, zmq and replication folders will contain data.
Relevant logs and/or screenshots
Traceback (most recent call last):
File "/media/Mayohiga/opt/SteamLibrary/steamapps/common/Blender/3.0/scripts/modules/addon_utils.py", line 387, in enable
mod.register()
File "/media/Makai/home/.config/blender/3.0/scripts/addons/multi_user/__init__.py", line 60, in register
from . import presence
File "/media/Makai/home/.config/blender/3.0/scripts/addons/multi_user/presence.py", line 36, in <module>
from replication.interface import session
File "/media/Makai/home/.config/blender/3.0/scripts/addons/multi_user/libs/replication/replication/interface.py", line 58, in <module>
from .repository import Repository
File "/media/Makai/home/.config/blender/3.0/scripts/addons/multi_user/libs/replication/replication/repository.py", line 29, in <module>
from deepdiff import Delta
ImportError: cannot import name 'Delta' from 'deepdiff' (unknown location)
Possible fixes [optionnal]
Either delete the libs folder on update, or make dependency auto installer check for deepdiff as well.
/cc @project-manager