Blender Kitsu: Fix Gazu Module out of sync #119

Merged
Nick Alberelli merged 11 commits from :fix/restore-gazu-out-of-sync into main 2023-07-13 19:39:30 +02:00
5 changed files with 24 additions and 0 deletions
Showing only changes of commit 68d3ea339b - Show all commits

View File

@ -263,6 +263,14 @@ blender-kitsu has different checks that are performed during file load or during
![image info](/media/addons/blender_kitsu/error_animation.jpg)
## Development
### Update Dependencies
To update the dependencies of `Blender_Kitsu` please follow these steps.
1. `cd scripts-blender/addons/blender_kitsu/wheels` To enter the directory of dependant modules
2. `rm -r *.whl` To remove any existing packages (or manually remove .whl files if you are on windows)
3. `pip download gazu` to get the latest gazu and it's dependencies as wheels
4. `rm certifi* charset_normalizer* idna* requests* urllib3* websocket_client*` to remove the modules that are already included in blender
## Troubleshoot
blender-kitsu makes good use of logging and status reports. Most of the operators report information in the blender info bar. More detailed logs can be found in the blender system console. If you feel like anything went wrong, consider opening a console and check the logs.

View File

@ -0,0 +1,16 @@
# SPDX-License-Identifier: GPL-3.0-or-later
def preload_modules() -> None:
"""Pre-load the datetime module from a wheel so that the API can find it."""
import sys
if "gazu" in sys.modules:
return
from . import wheels
wheels.load_wheel_global("bidict", "bidict")
wheels.load_wheel_global("engineio", "python_engineio")
wheels.load_wheel_global("socketio", "python_socketio")
wheels.load_wheel_global("gazu", "gazu")