2026-03-11_4

This commit is contained in:
2026-03-17 15:34:28 -06:00
parent 9706bc055f
commit eef5547a2c
474 changed files with 113268 additions and 27500 deletions
@@ -57,6 +57,26 @@ class InstallLibsButton(bpy.types.Operator):
self.report({'ERROR'}, error_str)
return {'CANCELLED'}
# Try importing all the libraries to see if they are installed correctly
try:
print("Verifying library installation by importing them...")
import boto3
from cryptography.fernet import Fernet
from gql import gql, Client
from gql.transport.appsync_websockets import AppSyncWebsocketsTransport
from gql.transport.appsync_auth import AppSyncApiKeyAuthentication
from gql.transport.websockets import log as websockets_logger
from lz4 import frame
except Exception as e:
trace = traceback.format_exc()
error_str = f"Library installation failed! Please restart Blender and try again." \
f"\nIf the error persists, let us know." \
f"\n\nFull Error: \n\n{trace}"
print(error_str)
library_manager.lib_manager.reset_current_library_installation()
self.report({'ERROR'}, error_str)
return {'CANCELLED'}
# Save login manager data
classes_logged_in = login_manager.user.classes_logged_in
classes_logged_out = login_manager.user.classes_logged_out
@@ -78,10 +98,11 @@ class InstallLibsButton(bpy.types.Operator):
return {'FINISHED'}
def install_libs(self):
missing = library_manager.lib_manager.install_libraries(["websockets", "gql", "cryptography", "boto3"])
missing = library_manager.lib_manager.install_libraries(["websockets", "gql==3.5.3", "cryptography", "boto3"])
if missing:
raise ImportError("The following libraries could not be installed: "
"\n- " + " \n- ".join(missing) +
" \n\nTry running Blender as an admin and install the libraries again."
" \nSee console for more information.")
library_manager.lib_manager.install_libraries(["lz4"])
importlib.invalidate_caches()