Open RoflanTsar opened 2 years ago
Just double checked on my system and the Project Acoustics marketplace plugin worked on a blank project in 5.0.3.
One thing I'm curious for you to try is to create a blank project and only enable the Python plugin. See if that crashes. I don't see Project Acoustics in your callstack so I want to check if it's your Python plugin.
Just double checked on my system and the Project Acoustics marketplace plugin worked on a blank project in 5.0.3.
One thing I'm curious for you to try is to create a blank project and only enable the Python plugin. See if that crashes. I don't see Project Acoustics in your callstack so I want to check if it's your Python plugin.
Python plugin is always enabled by default it seems - no crashes.
Can you run your project through the debugger, then enable the plugin and restart. See if you can get more info
Could not get more info other than this
python39!_PyImport_LoadDynamicModuleWithSpec() [D:\_w\1\s\Python\importdl.c:165]
python39!_imp_create_dynamic_impl() [D:\_w\1\s\Python\import.c:2302]
python39!_imp_create_dynamic() [D:\_w\1\s\Python\clinic\import.c.h:330]
python39!cfunction_vectorcall_FASTCALL() [D:\_w\1\s\Objects\methodobject.c:430]
python39!PyVectorcall_Call() [D:\_w\1\s\Objects\call.c:248]
python39!_PyObject_Call() [D:\_w\1\s\Objects\call.c:287]
python39!do_call_core() [D:\_w\1\s\Python\ceval.c:5095]
python39!_PyEval_EvalFrameDefault() [D:\_w\1\s\Python\ceval.c:3581]
python39!_PyEval_EvalCode() [D:\_w\1\s\Python\ceval.c:4327]
python39!_PyFunction_Vectorcall() [D:\_w\1\s\Objects\call.c:396]
python39!_PyEval_EvalFrameDefault() [D:\_w\1\s\Python\ceval.c:3487]
python39!_PyEval_EvalFrameDefault() [D:\_w\1\s\Python\ceval.c:3504]
python39!_PyEval_EvalFrameDefault() [D:\_w\1\s\Python\ceval.c:3518]
python39!_PyEval_EvalFrameDefault() [D:\_w\1\s\Python\ceval.c:3518]
python39!_PyEval_EvalFrameDefault() [D:\_w\1\s\Python\ceval.c:3518]
python39!_PyFunction_Vectorcall() [D:\_w\1\s\Objects\call.c:367]
python39!_PyObject_VectorcallTstate() [D:\_w\1\s\Include\cpython\abstract.h:118]
python39!object_vacall() [D:\_w\1\s\Objects\call.c:792]
python39!_PyObject_CallMethodIdObjArgs() [D:\_w\1\s\Objects\call.c:886]
python39!import_find_and_load() [D:\_w\1\s\Python\import.c:1774]
python39!PyImport_ImportModuleLevelObject() [D:\_w\1\s\Python\import.c:1875]
python39!import_name() [D:\_w\1\s\Python\ceval.c:5215]
python39!_PyEval_EvalFrameDefault() [D:\_w\1\s\Python\ceval.c:1377]
python39!_PyEval_EvalCode() [D:\_w\1\s\Python\ceval.c:4327]
python39!_PyEval_EvalCodeWithName() [D:\_w\1\s\Python\ceval.c:4366]
python39!PyEval_EvalCodeEx() [D:\_w\1\s\Python\ceval.c:4382]
python39!PyEval_EvalCode() [D:\_w\1\s\Python\ceval.c:832]
python39!builtin_exec_impl() [D:\_w\1\s\Python\bltinmodule.c:1045]
python39!builtin_exec() [D:\_w\1\s\Python\clinic\bltinmodule.c.h:396]
python39!cfunction_vectorcall_FASTCALL() [D:\_w\1\s\Objects\methodobject.c:430]
python39!PyVectorcall_Call() [D:\_w\1\s\Objects\call.c:248]
python39!_PyObject_Call() [D:\_w\1\s\Objects\call.c:287]
python39!do_call_core() [D:\_w\1\s\Python\ceval.c:5095]
python39!_PyEval_EvalFrameDefault() [D:\_w\1\s\Python\ceval.c:3581]
python39!_PyEval_EvalCode() [D:\_w\1\s\Python\ceval.c:4327]
python39!_PyFunction_Vectorcall() [D:\_w\1\s\Objects\call.c:396]
python39!_PyEval_EvalFrameDefault() [D:\_w\1\s\Python\ceval.c:3487]
python39!_PyEval_EvalFrameDefault() [D:\_w\1\s\Python\ceval.c:3504]
python39!_PyEval_EvalFrameDefault() [D:\_w\1\s\Python\ceval.c:3518]
python39!_PyEval_EvalFrameDefault() [D:\_w\1\s\Python\ceval.c:3518]
python39!_PyFunction_Vectorcall() [D:\_w\1\s\Objects\call.c:367]
python39!_PyObject_VectorcallTstate() [D:\_w\1\s\Include\cpython\abstract.h:118]
python39!object_vacall() [D:\_w\1\s\Objects\call.c:792]
python39!_PyObject_CallMethodIdObjArgs() [D:\_w\1\s\Objects\call.c:886]
python39!import_find_and_load() [D:\_w\1\s\Python\import.c:1774]
python39!PyImport_ImportModuleLevelObject() [D:\_w\1\s\Python\import.c:1875]
python39!import_name() [D:\_w\1\s\Python\ceval.c:5215]
python39!_PyEval_EvalFrameDefault() [D:\_w\1\s\Python\ceval.c:1377]
python39!_PyEval_EvalCode() [D:\_w\1\s\Python\ceval.c:4327]
python39!_PyEval_EvalCodeWithName() [D:\_w\1\s\Python\ceval.c:4366]
python39!PyEval_EvalCodeEx() [D:\_w\1\s\Python\ceval.c:4382]
python39!PyEval_EvalCode() [D:\_w\1\s\Python\ceval.c:832]
UnrealEditor_PythonScriptPlugin!FPythonScriptPlugin::EvalString() [D:\build\++UE5\Sync\Engine\Plugins\Experimental\PythonScriptPlugin\Source\PythonScriptPlugin\Private\PythonScriptPlugin.cpp:1277]
UnrealEditor_PythonScriptPlugin!FPythonScriptPlugin::RunFile() [D:\build\++UE5\Sync\Engine\Plugins\Experimental\PythonScriptPlugin\Source\PythonScriptPlugin\Private\PythonScriptPlugin.cpp:1397]
UnrealEditor_PythonScriptPlugin!FPythonScriptPlugin::Tick() [D:\build\++UE5\Sync\Engine\Plugins\Experimental\PythonScriptPlugin\Source\PythonScriptPlugin\Private\PythonScriptPlugin.cpp:1151]
UnrealEditor_PythonScriptPlugin!<lambda_ed9a9427d3827751aac9c4c6d16c6bda>::operator()() [D:\build\++UE5\Sync\Engine\Plugins\Experimental\PythonScriptPlugin\Source\PythonScriptPlugin\Private\PythonScriptPlugin.cpp:903]
UnrealEditor_Core!FTSTicker::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Private\Containers\Ticker.cpp:110]
UnrealEditor!FEngineLoop::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5439]
UnrealEditor!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:183]
UnrealEditor!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:147]
UnrealEditor!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:283]
UnrealEditor!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:330]
UnrealEditor!__scrt_common_main_seh() [d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
The error 0xe0434352 is a rather generic "CLR error", implying something went wrong in .NET land. What version of .NET desktop do you have installed? What version of Windows are you running?
.NET Framework 4-4.6, SDK 5.0.410 Windows 10 Pro 19044.1826
Hi @RoflanTsar. We need to try to get more information on your errors.
First I want to try running our plugin's Python code in Unreal without loading the plugin. To do that, could you:
Hi @RoflanTsar. We need to try to get more information on your errors.
First I want to try running our plugin's Python code in Unreal without loading the plugin. To do that, could you:
1. Open a regular project WITHOUT ProjectAcoustics enabled 2. Make sure the Python Editor Script Plugin is enabled 3. In Output Log, enter Python mode 4. Run the ProjectAcoustics Python script from your engine's marketplace directory and let us know the output. For instance, mine is at "C:\Program Files\Epic Games\UE_5.0\Engine\Plugins\Marketplace\ProjectAcousticsNative\Content\Python\init_project_acoustics.py". ![image](https://user-images.githubusercontent.com/1233941/180019492-7bbc47fe-8e51-45ac-8962-6ff32fda2976.png)
Here's what's in the log after execution:
[2022.07.21-04.42.23:570][420]Cmd: C:\Program Files\Epic Games\UE_5.0\Engine\Plugins\Marketplace\ProjectAcousticsNative\Content\Python\init_project_acoustics.py
[2022.07.21-04.42.35:126][395]LogPython: C:\Program Files\Epic Games\UE_5.0\Engine\Plugins\Marketplace\ProjectAcousticsNative\Content\Python\init_project_acoustics.py
[2022.07.21-04.42.35:131][395]LogPython: Warning: C:/Program Files/Epic Games/UE_5.0/Engine/Plugins/Marketplace/ProjectAcousticsNative/Content/Python/init_project_acoustics.py:21: DeprecationWarning: invalid escape sequence \.
search_path = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "..\..\Source\ThirdParty\Win64\Release"))
[2022.07.21-04.42.36:397][395]LogWindows: Error: === Critical error: ===
[2022.07.21-04.42.36:397][395]LogWindows: Error:
[2022.07.21-04.42.36:397][395]LogWindows: Error: Fatal error!
[2022.07.21-04.42.36:397][395]LogWindows: Error:
[2022.07.21-04.42.36:397][395]LogWindows: Error: Unhandled Exception: 0xe0434352
[2022.07.21-04.42.36:397][395]LogWindows: Error:
And then the same crash happens
@RoflanTsar
Thank you for providing more information about this issue. Unfortunately, I don't think it provided any more data about where the system is failing so if we could get you to run the following commands in the UE python interpreter window one by one and share the results of each command, that would be useful for isolating the component that is failing. It looks like there might be an assembly importing issue that's happening so this set of commands should help us understand which component is failing during the loading process.
Commands to execute: import sys print(sys.version) print(sys.flags) print(sys.getwindowsversion().platform_version) print(sys.modules)
import os search_path = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath("C:\Program Files\Epic Games\UE_5.0\Engine\Plugins\Marketplace\ProjectAcousticsNative\Content\Python\init_project_acoustics.py")), "..\..\Source\ThirdParty\Win64\Release")) sys.path.append(search_path)
import clr from System import AppDomain, Convert, String from System.Security.Cryptography import ProtectedData from System.Security.Cryptography import DataProtectionScope from System.Text import Encoding from Microsoft.Azure.Batch import ContainerRegistry clr.AddReference("Triton.BakeService") from Microsoft.Cloud.Acoustics import *
import sys print(sys.version) print(sys.flags) print(sys.getwindowsversion().platform_version) print(sys.modules)
LogPython: import sys
LogPython: print(sys.version)
LogPython: 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)]
LogPython: print(sys.flags)
LogPython: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=1, no_site=0, ignore_environment=1, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=1, dev_mode=False, utf8_mode=0)
LogPython: print(sys.getwindowsversion().platform_version)
LogPython: (10, 0, 19041)
LogPython: print(sys.modules)
LogPython: {'sys': <module 'sys' (built-in)>, 'builtins': <module 'builtins' (built-in)>, '_frozen_importlib': <module 'importlib._bootstrap' (frozen)>, '_imp': <module '_imp' (built-in)>, '_thread': <module '_thread' (built-in)>, '_warnings': <module '_warnings' (built-in)>, '_weakref': <module '_weakref' (built-in)>, '_io': <module 'io' (built-in)>, 'marshal': <module 'marshal' (built-in)>, 'nt': <module 'nt' (built-in)>, 'winreg': <module 'winreg' (built-in)>, '_frozen_importlib_external': <module 'importlib._bootstrap_external' (frozen)>, 'time': <module 'time' (built-in)>, 'zipimport': <m
odule 'zipimport' (frozen)>, '_codecs': <module '_codecs' (built-in)>, 'codecs': <module 'codecs' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win64\\../../../Engine/Binaries/ThirdParty/Python3/Win64\\lib\\codecs.py'>, 'encodings.aliases': <module 'encodings.aliases' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win64\\../../../Engine/Binaries/ThirdParty/Python3/Win64\\lib\\encodings\\aliases.py'>, 'encodings': <module 'encodings' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win64\\../../../Engine/Binaries/ThirdParty/Python3/Win64\\lib\\enco
dings\\__init__.py'>, 'encodings.utf_8': <module 'encodings.utf_8' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win64\\../../../Engine/Binaries/ThirdParty/Python3/Win64\\lib\\encodings\\utf_8.py'>, 'encodings.latin_1': <module 'encodings.latin_1' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win64\\../../../Engine/Binaries/ThirdParty/Python3/Win64\\lib\\encodings\\latin_1.py'>, '_abc': <module '_abc' (built-in)>, 'abc': <module 'abc' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win64\\../../../Engine/Binaries/ThirdParty/Python3/Win64\\lib\\a
bc.py'>, 'io': <module 'io' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win64\\../../../Engine/Binaries/ThirdParty/Python3/Win64\\lib\\io.py'>, '__main__': <module '__main__' (built-in)>, '_stat': <module '_stat' (built-in)>, 'stat': <module 'stat' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win64\\../../../Engine/Binaries/ThirdParty/Python3/Win64\\lib\\stat.py'>, '_collections_abc': <module '_collections_abc' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win64\\../../../Engine/Binaries/ThirdParty/Python3/Win64\\lib\\_collections_abc.py'>,
'genericpath': <module 'genericpath' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win64\\../../../Engine/Binaries/ThirdParty/Python3/Win64\\lib\\genericpath.py'>, 'ntpath': <module 'ntpath' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win64\\../../../Engine/Binaries/ThirdParty/Python3/Win64\\lib\\ntpath.py'>, 'os.path': <module 'ntpath' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win64\\../../../Engine/Binaries/ThirdParty/Python3/Win64\\lib\\ntpath.py'>, 'os': <module 'os' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win
64\\../../../Engine/Binaries/ThirdParty/Python3/Win64\\lib\\os.py'>, '_sitebuiltins': <module '_sitebuiltins' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win64\\../../../Engine/Binaries/ThirdParty/Python3/Win64\\lib\\_sitebuiltins.py'>, '_locale': <module '_locale' (built-in)>, '_bootlocale': <module '_bootlocale' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\_bootlocale.py'>, 'encodings.cp1251': <module 'encodings.cp1251' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win64\\../../../Engine/Binaries/ThirdPart
y/Python3/Win64\\lib\\encodings\\cp1251.py'>, 'site': <module 'site' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win64\\../../../Engine/Binaries/ThirdParty/Python3/Win64\\lib\\site.py'>, 'warnings': <module 'warnings' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\warnings.py'>, 'unreal': <module 'unreal'>, '_unreal_core': <module '_unreal_core'>, '_heapq': <module '_heapq' (built-in)>, 'heapq': <module 'heapq' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\heapq.py'>, 'itertool
s': <module 'itertools' (built-in)>, 'keyword': <module 'keyword' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\keyword.py'>, '_operator': <module '_operator' (built-in)>, 'operator': <module 'operator' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\operator.py'>, 'reprlib': <module 'reprlib' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\reprlib.py'>, '_collections': <module '_collections' (built-in)>, 'collections': <module 'collections' from 'C:
\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\collections\\__init__.py'>, 'types': <module 'types' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\types.py'>, 'enum': <module 'enum' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\enum.py'>, '_socket': <module '_socket' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\DLLs\\_socket.pyd'>, '_ssl': <module '_ssl' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Bina
ries\\ThirdParty\\Python3\\Win64\\DLLs\\_ssl.pyd'>, 'collections.abc': <module 'collections.abc' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\collections\\abc.py'>, 'math': <module 'math' (built-in)>, 'select': <module 'select' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\DLLs\\select.pyd'>, 'selectors': <module 'selectors' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\selectors.py'>, 'errno': <module 'errno' (built-in)>, 'socket': <module 'socket'
from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\socket.py'>, '_sre': <module '_sre' (built-in)>, 'sre_constants': <module 'sre_constants' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\sre_constants.py'>, 'sre_parse': <module 'sre_parse' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\sre_parse.py'>, 'sre_compile': <module 'sre_compile' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\sre_compile.py'>, '_
functools': <module '_functools' (built-in)>, 'functools': <module 'functools' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\functools.py'>, 'copyreg': <module 'copyreg' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\copyreg.py'>, 're': <module 're' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\re.py'>, '_struct': <module '_struct' (built-in)>, 'struct': <module 'struct' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Py
thon3\\Win64\\lib\\struct.py'>, 'binascii': <module 'binascii' (built-in)>, 'base64': <module 'base64' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\base64.py'>, 'ssl': <module 'ssl' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\ssl.py'>, '_signal': <module '_signal' (built-in)>, 'signal': <module 'signal' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\signal.py'>, '_weakrefset': <module '_weakrefset' from 'C:\\Program Files\\Epic Games\\UE_5.0\\E
ngine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\_weakrefset.py'>, 'threading': <module 'threading' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\threading.py'>, 'contextlib': <module 'contextlib' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\contextlib.py'>, 'msvcrt': <module 'msvcrt' (built-in)>, '_winapi': <module '_winapi' (built-in)>, 'subprocess': <module 'subprocess' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\subprocess.py'>, 'platform
': <module 'platform' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\platform.py'>, '_unreal_slate': <module '_unreal_slate'>, '_unreal_engine': <module '_unreal_engine'>, '_unreal_editor': <module '_unreal_editor'>, '_unreal_inputcore': <module '_unreal_inputcore'>, '_unreal_coreonline': <module '_unreal_coreonline'>, '_unreal_netcore': <module '_unreal_netcore'>, '_unreal_chaos': <module '_unreal_chaos'>, '_unreal_physicscore': <module '_unreal_physicscore'>, '_unreal_toolmenus': <module '_unreal_toolmenus'>, '_unreal_interchangecore': <module
'_unreal_interchangecore'>, '_unreal_moviescenecapture': <module '_unreal_moviescenecapture'>, '_unreal_moviescenetools': <module '_unreal_moviescenetools'>, '_unreal_interchangeengine': <module '_unreal_interchangeengine'>, '_unreal_vreditor': <module '_unreal_vreditor'>, '_unreal_mrmesh': <module '_unreal_mrmesh'>, '_unreal_augmentedreality': <module '_unreal_augmentedreality'>, '_unreal_headmounteddisplay': <module '_unreal_headmounteddisplay'>, '_unreal_viewportinteraction': <module '_unreal_viewportinteraction'>, '_unreal_gameplaytags': <module '_unreal_gameplaytags'>, '_unreal_aimodule'
: <module '_unreal_aimodule'>, '_unreal_umg': <module '_unreal_umg'>, '_unreal_contentbrowserdata': <module '_unreal_contentbrowserdata'>, '_unreal_animationblueprintlibrary': <module '_unreal_animationblueprintlibrary'>, '_unreal_animgraphruntime': <module '_unreal_animgraphruntime'>, '_unreal_moviescenetracks': <module '_unreal_moviescenetracks'>, '_unreal_moviescene': <module '_unreal_moviescene'>, '_unreal_mediautils': <module '_unreal_mediautils'>, '_unreal_audiomixer': <module '_unreal_audiomixer'>, '_unreal_mediaassets': <module '_unreal_mediaassets'>, '_unreal_foliage': <module '_unrea
l_foliage'>, '_unreal_datasmithcontent': <module '_unreal_datasmithcontent'>, '_unreal_onlinesubsystem': <module '_unreal_onlinesubsystem'>, '_unreal_onlinesubsystemutils': <module '_unreal_onlinesubsystemutils'>, '_unreal_functionaltesting': <module '_unreal_functionaltesting'>, '_unreal_datavalidation': <module '_unreal_datavalidation'>, '_unreal_audiosynesthesia': <module '_unreal_audiosynesthesia'>, '_unreal_locationservicesbplibrary': <module '_unreal_locationservicesbplibrary'>, '_unreal_python': <module '_unreal_python'>, '_unreal_typedelementframework': <module '_unreal_typedelementfra
mework'>, '_unreal_typedelementruntime': <module '_unreal_typedelementruntime'>, '_unreal_gameplaytasks': <module '_unreal_gameplaytasks'>, '_unreal_chaossolverengine': <module '_unreal_chaossolverengine'>, '_unreal_jsonutilities': <module '_unreal_jsonutilities'>, '_unreal_assetregistry': <module '_unreal_assetregistry'>, '_unreal_meshdescription': <module '_unreal_meshdescription'>, '_unreal_staticmeshdescription': <module '_unreal_staticmeshdescription'>, '_unreal_audioextensions': <module '_unreal_audioextensions'>, '_unreal_animationcore': <module '_unreal_animationcore'>, '_unreal_widget
carousel': <module '_unreal_widgetcarousel'>, '_unreal_livelinkinterface': <module '_unreal_livelinkinterface'>, '_unreal_assettools': <module '_unreal_assettools'>, '_unreal_materialbaking': <module '_unreal_materialbaking'>, '_unreal_materialeditor': <module '_unreal_materialeditor'>, '_unreal_cinematiccamera': <module '_unreal_cinematiccamera'>, '_unreal_subobjectdatainterface': <module '_unreal_subobjectdatainterface'>, '_unreal_sourcecontrol': <module '_unreal_sourcecontrol'>, '_unreal_timemanagement': <module '_unreal_timemanagement'>, '_unreal_levelsequence': <module '_unreal_levelseque
nce'>, '_unreal_imagewritequeue': <module '_unreal_imagewritequeue'>, '_unreal_variantmanagercontent': <module '_unreal_variantmanagercontent'>, '_unreal_fieldsystemengine': <module '_unreal_fieldsystemengine'>, '_unreal_overlay': <module '_unreal_overlay'>, '_unreal_paper2d': <module '_unreal_paper2d'>, '_unreal_enginesettings': <module '_unreal_enginesettings'>, '_unreal_audiolinkcore': <module '_unreal_audiolinkcore'>, '_unreal_clothingsystemruntimeinterface': <module '_unreal_clothingsystemruntimeinterface'>, '_unreal_interactivetoolsframework': <module '_unreal_interactivetoolsframework'>
, '_unreal_sequencerecorder': <module '_unreal_sequencerecorder'>, '_unreal_contentbrowser': <module '_unreal_contentbrowser'>, '_unreal_sequencer': <module '_unreal_sequencer'>, '_unreal_virtualtexturingeditor': <module '_unreal_virtualtexturingeditor'>, '_unreal_leveleditor': <module '_unreal_leveleditor'>, '_unreal_editorsubsystem': <module '_unreal_editorsubsystem'>, '_unreal_componentvisualizers': <module '_unreal_componentvisualizers'>, '_unreal_gameplaydebugger': <module '_unreal_gameplaydebugger'>, '_unreal_navigationsystem': <module '_unreal_navigationsystem'>, '_unreal_foliageedit':
<module '_unreal_foliageedit'>, '_unreal_clothingsystemruntimecommon': <module '_unreal_clothingsystemruntimecommon'>, '_unreal_curveeditor': <module '_unreal_curveeditor'>, '_unreal_datalayereditor': <module '_unreal_datalayereditor'>, '_unreal_subobjecteditor': <module '_unreal_subobjecteditor'>, '_unreal_blueprinteditorlibrary': <module '_unreal_blueprinteditorlibrary'>, '_unreal_kismet': <module '_unreal_kismet'>, '_unreal_editorframework': <module '_unreal_editorframework'>, '_unreal_animgraph': <module '_unreal_animgraph'>, '_unreal_blueprintgraph': <module '_unreal_blueprintgraph'>, '_u
nreal_audiolinkengine': <module '_unreal_audiolinkengine'>, '_unreal_landscape': <module '_unreal_landscape'>, '_unreal_developersettings': <module '_unreal_developersettings'>, '_unreal_audioeditor': <module '_unreal_audioeditor'>, '_unreal_animationmodifiers': <module '_unreal_animationmodifiers'>, '_unreal_chaoscloth': <module '_unreal_chaoscloth'>, '_unreal_landscapeeditorutilities': <module '_unreal_landscapeeditorutilities'>, '_unreal_umgeditor': <module '_unreal_umgeditor'>, '_unreal_behaviortreeeditor': <module '_unreal_behaviortreeeditor'>, '_unreal_overlayeditor': <module '_unreal_ov
erlayeditor'>, '_unreal_clothingsystemruntimenv': <module '_unreal_clothingsystemruntimenv'>, '_unreal_animationdatacontroller': <module '_unreal_animationdatacontroller'>, '_unreal_androidfileserver': <module '_unreal_androidfileserver'>, '_unreal_actorsequence': <module '_unreal_actorsequence'>, '_unreal_environmentqueryeditor': <module '_unreal_environmentqueryeditor'>, '_unreal_animationsharing': <module '_unreal_animationsharing'>, '_unreal_facialanimation': <module '_unreal_facialanimation'>, '_unreal_blutility': <module '_unreal_blutility'>, '_unreal_audioanalyzer': <module '_unreal_aud
ioanalyzer'>, '_unreal_imgmediaengine': <module '_unreal_imgmediaengine'>, '_unreal_soundfields': <module '_unreal_soundfields'>, '_unreal_audioplatformconfiguration': <module '_unreal_audioplatformconfiguration'>, 'importlib._bootstrap': <module 'importlib._bootstrap' (frozen)>, 'importlib._bootstrap_external': <module 'importlib._bootstrap_external' (frozen)>, 'importlib': <module 'importlib' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\importlib\\__init__.py'>, 'unreal_core': <module 'unreal_core' from 'C:\\Program Files/Epic Games/UE_5.0/E
ngine/Plugins/Experimental/PythonScriptPlugin/Content/Python\\unreal_core.py'>, '_unreal_myproject4': <module '_unreal_myproject4'>, '_unreal_animationmodifierlibrary': <module '_unreal_animationmodifierlibrary'>, '_unreal_variantmanagercontenteditor': <module '_unreal_variantmanagercontenteditor'>, '_unreal_animationsharinged': <module '_unreal_animationsharinged'>, '_unreal_curveeditortools': <module '_unreal_curveeditortools'>, '_unreal_editorscriptingutilities': <module '_unreal_editorscriptingutilities'>, '_unreal_staticmesheditor': <module '_unreal_staticmesheditor'>, '_unreal_speedtreei
mporter': <module '_unreal_speedtreeimporter'>, '_unreal_actorlayerutilities': <module '_unreal_actorlayerutilities'>, '_unreal_paper2deditor': <module '_unreal_paper2deditor'>, '_unreal_paperspritesheetimporter': <module '_unreal_paperspritesheetimporter'>, '_unreal_papertiledimporter': <module '_unreal_papertiledimporter'>, '_unreal_worldpartitionhlodutilities': <module '_unreal_worldpartitionhlodutilities'>, '_unreal_androidpermission': <module '_unreal_androidpermission'>, '_unreal_appleimageutils': <module '_unreal_appleimageutils'>, '_unreal_assettags': <module '_unreal_assettags'>, '_un
real_archvischaracter': <module '_unreal_archvischaracter'>, '_unreal_audiocapture': <module '_unreal_audiocapture'>, '_unreal_custommeshcomponent': <module '_unreal_custommeshcomponent'>, '_unreal_cablecomponent': <module '_unreal_cablecomponent'>, '_unreal_googlepad': <module '_unreal_googlepad'>, '_unreal_mobilepatchingutils': <module '_unreal_mobilepatchingutils'>, '_unreal_imgmedia': <module '_unreal_imgmedia'>, '_unreal_mediacompositing': <module '_unreal_mediacompositing'>, '_unreal_resonanceaudio': <module '_unreal_resonanceaudio'>, '_unreal_proceduralmeshcomponent': <module '_unreal_p
roceduralmeshcomponent'>, '_unreal_synthesis': <module '_unreal_synthesis'>, '_unreal_synthesiseditor': <module '_unreal_synthesiseditor'>, '_unreal_automationutils': <module '_unreal_automationutils'>, '_unreal_chaossolvereditor': <module '_unreal_chaossolvereditor'>, '_unreal_interchangeeditorpipelines': <module '_unreal_interchangeeditorpipelines'>, '_unreal_interchangenodes': <module '_unreal_interchangenodes'>, '_unreal_interchangeimport': <module '_unreal_interchangeimport'>, '_unreal_interchangeexport': <module '_unreal_interchangeexport'>, '_unreal_interchangepipelines': <module '_unre
al_interchangepipelines'>, '_unreal_megascansplugin': <module '_unreal_megascansplugin'>, '_unreal_audiosynesthesiaeditor': <module '_unreal_audiosynesthesiaeditor'>, '_unreal_aitestsuite': <module '_unreal_aitestsuite'>, '_unreal_persona': <module '_unreal_persona'>, '_unreal_worldpartitioneditor': <module '_unreal_worldpartitioneditor'>, '_unreal_introtutorials': <module '_unreal_introtutorials'>, '_unreal_logvisualizer': <module '_unreal_logvisualizer'>, '_unreal_skeletalmesheditor': <module '_unreal_skeletalmesheditor'>, '_unreal_landscapeeditor': <module '_unreal_landscapeeditor'>, '_unre
al_avfmediaeditor': <module '_unreal_avfmediaeditor'>, '_unreal_androidmediaeditor': <module '_unreal_androidmediaeditor'>, '_unreal_imgmediaeditor': <module '_unreal_imgmediaeditor'>, '_unreal_mediaplayereditor': <module '_unreal_mediaplayereditor'>, '_unreal_webmmediaeditor': <module '_unreal_webmmediaeditor'>, '_unreal_wmfmediaeditor': <module '_unreal_wmfmediaeditor'>, '_unreal_resonanceaudioeditor': <module '_unreal_resonanceaudioeditor'>, 'token': <module 'token' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\token.py'>, 'tokenize': <modul
e 'tokenize' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\tokenize.py'>, 'linecache': <module 'linecache' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\linecache.py'>, 'traceback': <module 'traceback' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\traceback.py'>}
-
import os search_path = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath("C:\Program Files\Epic Games\UE_5.0\Engine\Plugins\Marketplace\ProjectAcousticsNative\Content\Python\init_project_acoustics.py")), "....\Source\ThirdParty\Win64\Release")) sys.path.append(search_path)
LogPython: import os
LogPython: search_path = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath("C:\Program Files\Epic Games\UE_5.0\Engine\Plugins\Marketplace\ProjectAcousticsNative\Content\Python\init_project_acoustics.py")), "..\..\Source\ThirdParty\Win64\Release"))
sys.path.append(search_path)
LogPython: Error: SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 27-29: truncated \UXXXXXXXX escape (<string>, line 1)
-
import clr
Crash
-
from System import AppDomain, Convert, String from System.Security.Cryptography import ProtectedData from System.Security.Cryptography import DataProtectionScope from System.Text import Encoding from Microsoft.Azure.Batch import ContainerRegistry clr.AddReference("Triton.BakeService") from Microsoft.Cloud.Acoustics import *
LogPython: from System import AppDomain, Convert, String
LogPython: Error: Traceback (most recent call last):
LogPython: Error: File "<string>", line 1, in <module>
LogPython: Error: ModuleNotFoundError: No module named 'System'
LogPython: from System.Security.Cryptography import ProtectedData
LogPython: Error: Traceback (most recent call last):
LogPython: Error: File "<string>", line 1, in <module>
LogPython: Error: ModuleNotFoundError: No module named 'System'
LogPython: from System.Security.Cryptography import DataProtectionScope
LogPython: Error: Traceback (most recent call last):
LogPython: Error: File "<string>", line 1, in <module>
LogPython: Error: ModuleNotFoundError: No module named 'System'
LogPython: from System.Text import Encoding
LogPython: Error: Traceback (most recent call last):
LogPython: Error: File "<string>", line 1, in <module>
LogPython: Error: ModuleNotFoundError: No module named 'System'
LogPython: from Microsoft.Azure.Batch import ContainerRegistry
LogPython: Error: Traceback (most recent call last):
LogPython: Error: File "<string>", line 1, in <module>
LogPython: Error: ModuleNotFoundError: No module named 'Microsoft'
LogPython: clr.AddReference("Triton.BakeService")
LogPython: Error: Traceback (most recent call last):
LogPython: Error: File "<string>", line 1, in <module>
LogPython: Error: NameError: name 'clr' is not defined
LogPython: from Microsoft.Cloud.Acoustics import *
LogPython: Error: Traceback (most recent call last):
LogPython: Error: File "<string>", line 1, in <module>
LogPython: Error: ModuleNotFoundError: No module named 'Microsoft'
That's very interesting.
Could you try the following python commands from a Command Prompt and then re-run the "import clr" command from inside UE5 to see if the crash is still occurring?
C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64>python -m ensurepip Looking in links: c:\Users\noelc\AppData\Local\Temp\tmphmxq8dro Requirement already satisfied: setuptools in c:\program files\epic games\ue_5.0\engine\binaries\thirdparty\python3\win64\lib\site-packages (57.4.0) Requirement already satisfied: pip in c:\program files\epic games\ue_5.0\engine\binaries\thirdparty\python3\win64\lib\site-packages (22.1.2)
C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64>python -m pip install --upgrade pip Requirement already satisfied: pip in c:\program files\epic games\ue_5.0\engine\binaries\thirdparty\python3\win64\lib\site-packages (22.1.2) Collecting pip Downloading pip-22.2-py3-none-any.whl (2.0 MB) |████████████████████████████████| 2.0 MB 3.3 MB/s Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 22.1.2 Uninstalling pip-22.1.2: Successfully uninstalled pip-22.1.2 WARNING: The scripts pip.exe, pip3.9.exe and pip3.exe are installed in 'C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed pip-22.2
C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64>python -m pip install --upgrade wheel Requirement already satisfied: wheel in c:\program files\epic games\ue_5.0\engine\binaries\thirdparty\python3\win64\lib\site-packages (0.37.1)
C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64>python -m pip install --upgrade pythonnet Requirement already satisfied: pythonnet in c:\program files\epic games\ue_5.0\engine\binaries\thirdparty\python3\win64\lib\site-packages (2.5.2) Requirement already satisfied: pycparser in c:\program files\epic games\ue_5.0\engine\binaries\thirdparty\python3\win64\lib\site-packages (from pythonnet) (2.21)
C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64>python -m ensurepip
C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64>python -m ensurepip
Looking in links: c:\Users\123\AppData\Local\Temp\tmpbfex4lni
Requirement already satisfied: setuptools in c:\program files\epic games\ue_5.0\engine\binaries\thirdparty\python3\win64\lib\site-packages (57.4.0)
Requirement already satisfied: pip in c:\program files\epic games\ue_5.0\engine\binaries\thirdparty\python3\win64\lib\site-packages (22.1.2)
-
C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64>python -m pip install --upgrade pip
Requirement already satisfied: pip in c:\program files\epic games\ue_5.0\engine\binaries\thirdparty\python3\win64\lib\site-packages (22.1.2)
Collecting pip
Downloading pip-22.2-py3-none-any.whl (2.0 MB)
|████████████████████████████████| 2.0 MB 386 kB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 22.1.2
Uninstalling pip-22.1.2:
Successfully uninstalled pip-22.1.2
WARNING: The scripts pip.exe, pip3.9.exe and pip3.exe are installed in 'C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-22.2
-
C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64>python -m pip install --upgrade wheel
Requirement already satisfied: wheel in c:\program files\epic games\ue_5.0\engine\binaries\thirdparty\python3\win64\lib\site-packages (0.37.1)
-
C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64>python -m pip install --upgrade pythonnet
Requirement already satisfied: pythonnet in c:\program files\epic games\ue_5.0\engine\binaries\thirdparty\python3\win64\lib\site-packages (2.5.2)
Requirement already satisfied: pycparser in c:\program files\epic games\ue_5.0\engine\binaries\thirdparty\python3\win64\lib\site-packages (from pythonnet) (2.21)
-
Yep, and still the same crash.
Hmm...let's go back to the UE's python folder and launch the python interpreter via the command: python -v
Then try to "import clr" and see what happens. Here's the output from my machine:
>>> import clr
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\platform.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\platform.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\platform.cpython-39.pyc'
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\collections\__pycache__\__init__.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\collections\__init__.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\collections\\__pycache__\\__init__.cpython-39.pyc'
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\heapq.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\heapq.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\heapq.cpython-39.pyc'
import '_heapq' # <class '_frozen_importlib.BuiltinImporter'>
import 'heapq' # <_frozen_importlib_external.SourceFileLoader object at 0x00000212872B0D30>
import 'itertools' # <class '_frozen_importlib.BuiltinImporter'>
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\keyword.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\keyword.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\keyword.cpython-39.pyc'
import 'keyword' # <_frozen_importlib_external.SourceFileLoader object at 0x00000212872BA2E0>
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\operator.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\operator.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\operator.cpython-39.pyc'
import '_operator' # <class '_frozen_importlib.BuiltinImporter'>
import 'operator' # <_frozen_importlib_external.SourceFileLoader object at 0x00000212872BA370>
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\reprlib.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\reprlib.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\reprlib.cpython-39.pyc'
import 'reprlib' # <_frozen_importlib_external.SourceFileLoader object at 0x00000212872BA430>
import '_collections' # <class '_frozen_importlib.BuiltinImporter'>
import 'collections' # <_frozen_importlib_external.SourceFileLoader object at 0x00000212856CC1F0>
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\re.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\re.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\re.cpython-39.pyc'
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\enum.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\enum.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\enum.cpython-39.pyc'
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\types.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\types.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\types.cpython-39.pyc'
import 'types' # <_frozen_importlib_external.SourceFileLoader object at 0x00000212872C5EB0>
import 'enum' # <_frozen_importlib_external.SourceFileLoader object at 0x00000212872BABB0>
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\sre_compile.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\sre_compile.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\sre_compile.cpython-39.pyc'
import '_sre' # <class '_frozen_importlib.BuiltinImporter'>
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\sre_parse.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\sre_parse.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\sre_parse.cpython-39.pyc'
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\sre_constants.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\sre_constants.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\sre_constants.cpython-39.pyc'
import 'sre_constants' # <_frozen_importlib_external.SourceFileLoader object at 0x00000212872F7EE0>
import 'sre_parse' # <_frozen_importlib_external.SourceFileLoader object at 0x00000212872F74F0>
import 'sre_compile' # <_frozen_importlib_external.SourceFileLoader object at 0x00000212872CDC10>
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\functools.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\functools.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\functools.cpython-39.pyc'
import '_functools' # <class '_frozen_importlib.BuiltinImporter'>
import 'functools' # <_frozen_importlib_external.SourceFileLoader object at 0x00000212873163D0>
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\copyreg.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\copyreg.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\copyreg.cpython-39.pyc'
import 'copyreg' # <_frozen_importlib_external.SourceFileLoader object at 0x000002128731FAF0>
import 're' # <_frozen_importlib_external.SourceFileLoader object at 0x00000212856CC520>
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\subprocess.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\subprocess.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\subprocess.cpython-39.pyc'
import 'errno' # <class '_frozen_importlib.BuiltinImporter'>
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\signal.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\signal.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\signal.cpython-39.pyc'
import 'signal' # <_frozen_importlib_external.SourceFileLoader object at 0x00000212873401C0>
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\threading.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\threading.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\threading.cpython-39.pyc'
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\_weakrefset.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\_weakrefset.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\_weakrefset.cpython-39.pyc'
import '_weakrefset' # <_frozen_importlib_external.SourceFileLoader object at 0x000002128735A460>
import 'threading' # <_frozen_importlib_external.SourceFileLoader object at 0x0000021287340490>
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\warnings.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\warnings.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\warnings.cpython-39.pyc'
import 'warnings' # <_frozen_importlib_external.SourceFileLoader object at 0x000002128734FD30>
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\contextlib.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\contextlib.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\contextlib.cpython-39.pyc'
import 'contextlib' # <_frozen_importlib_external.SourceFileLoader object at 0x000002128736A520>
import 'msvcrt' # <class '_frozen_importlib.BuiltinImporter'>
import '_winapi' # <class '_frozen_importlib.BuiltinImporter'>
import 'subprocess' # <_frozen_importlib_external.SourceFileLoader object at 0x0000021287316B50>
import 'platform' # <_frozen_importlib_external.SourceFileLoader object at 0x00000212856B5AF0>
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\socket.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\socket.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\socket.cpython-39.pyc'
# extension module '_socket' loaded from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\DLLs\\_socket.pyd'
# extension module '_socket' executed from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\DLLs\\_socket.pyd'
import '_socket' # <_frozen_importlib_external.ExtensionFileLoader object at 0x000002129FB56AF0>
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\selectors.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\selectors.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\selectors.cpython-39.pyc'
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\collections\__pycache__\abc.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\collections\abc.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\collections\\__pycache__\\abc.cpython-39.pyc'
import 'collections.abc' # <_frozen_importlib_external.SourceFileLoader object at 0x000002129FB63D60>
import 'math' # <class '_frozen_importlib.BuiltinImporter'>
# extension module 'select' loaded from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\DLLs\\select.pyd'
# extension module 'select' executed from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\DLLs\\select.pyd'
import 'select' # <_frozen_importlib_external.ExtensionFileLoader object at 0x000002129FB63E80>
import 'selectors' # <_frozen_importlib_external.SourceFileLoader object at 0x000002129FB56C40>
import 'socket' # <_frozen_importlib_external.SourceFileLoader object at 0x000002129FB38E50>
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\traceback.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\traceback.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\traceback.cpython-39.pyc'
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\linecache.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\linecache.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\linecache.cpython-39.pyc'
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\tokenize.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\tokenize.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\tokenize.cpython-39.pyc'
# C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\__pycache__\token.cpython-39.pyc matches C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\token.py
# code object from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\__pycache__\\token.cpython-39.pyc'
import 'token' # <_frozen_importlib_external.SourceFileLoader object at 0x000002129FB79F10>
import 'tokenize' # <_frozen_importlib_external.SourceFileLoader object at 0x000002129FB797F0>
import 'linecache' # <_frozen_importlib_external.SourceFileLoader object at 0x000002129FB79B20>
import 'traceback' # <_frozen_importlib_external.SourceFileLoader object at 0x000002129FB6CFA0>
# extension module 'clr' loaded from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\site-packages\\clr.pyd'
# extension module 'clr' executed from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\site-packages\\clr.pyd'
import 'clr' # <_frozen_importlib_external.ExtensionFileLoader object at 0x00000212856A0CD0>
Unhandled Exception: System.InvalidProgramException: Common Language Runtime detected an invalid program. at clrModule.PyInit_clr()
Python 3.7.7 was successful.
But in UE5.0.3, it became Python 3.9.7, and it seems to fail.
Python 3.7.7 was successful.
But in UE5.0.3, it became Python 3.9.7, and it seems to fail.
can confirm, in UE 4.27 (python 3.7.7) "import clr" doesn't crash.
@RoflanTsar @tamuranetsu I've tried both a standalone python (3.9.7) and the one in UE5.0.3 (also 3.9.7) and haven't been able to reproduce the issue on my machine.
Let's first try this to reinstall the pythonnet package:
pip install --force-reinstall pythonnet
Next, it would be good to share the output of running 'import clr' when python is running in verbose mode with the '-v' launch option for python when running outside of the Unreal Editor. This should give us more visibility of where the clr import process went awry.
My current guesses are: 1) the CLR or pythonnet installs are corrupt or 2) there is a folder on your path which is trying to load a module which is not compatible with your CLR installation or 3) there is a problem specific to Windows 10 compatibility or 4) code page differences (1252 vs. 1251) are leading to importing modules
Also, I see some important differences in the default modules loaded into python between my installation and your installation which I can't explain.
'_datetime': <module '_datetime' (built-in)>,
'zlib': <module 'zlib' (built-in)>,
'_bisect': <module '_bisect' (built-in)>,
'_random': <module '_random' (built-in)>,
'_sha512': <module '_sha512' (built-in)>,
'_json': <module '_json' (built-in)>,
'CLR': <module 'clr' from 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\site-packages\\clr.pyd'>,
'atexit': <module 'atexit' (built-in)>,
'clr._extras': <module 'clr._extras'>,
Given this, another thing to try is to see if python datetime functions work:
import datetime
datetime_object = datetime.datetime.now()
print(datetime_object)
import datetime datetime_object = datetime.datetime.now() print(datetime_object)
This worked
-
pip install --force-reinstall pythonnet
This didn't help. Then i tried to import clr in standalone python 3.9.7 - it crashed too (tested on two machines).
However, pip install --force-reinstall clr actually helped and import clr didn't crash anymore. So i used it in Unreal's python with Scripts\pip.exe install --force-reinstall clr
And finally, I was able to load the project with the Project Acoustics plugin enabled. There were some errors in log though:
LogPython: Error: Traceback (most recent call last):
LogPython: Error: File "C:/Program Files/Epic Games/UE_5.0/Engine/Plugins/Marketplace/ProjectAcousticsNative/Content/Python/init_unreal.py", line 3, in <module>
LogPython: Error: import init_project_acoustics
LogPython: Error: File "C:\Program Files/Epic Games/UE_5.0/Engine/Plugins/Marketplace/ProjectAcousticsNative/Content/Python\init_project_acoustics.py", line 26, in <module>
LogPython: Error: import clr
LogPython: Error: File "C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\site-packages\clr\__init__.py", line 3, in <module>
LogPython: Error: from clr.style_builder import StyleBuilder, _styles
LogPython: Error: File "C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\Python3\Win64\lib\site-packages\clr\style_builder.py", line 4, in <module>
LogPython: Error: _enabled = sys.stdout.isatty()
LogPython: Error: AttributeError: '_Logger' object has no attribute 'isatty'
-
And then the next problem appeared: editor crashes when i click on the Bake tab in the Bake Acoustics mode.
Assertion failed: IsValid() [File:D:\RocketSync\5.0.0-19505902+++UE5+Release-5.0\Working\Engine\Source\Runtime\Core\Public\Templates\SharedPointer.h] [Line: 1074]
0x00007ffd24583a6e UnrealEditor-ProjectAcousticsBakeUI.dll!SAcousticsBakeTab::Refresh() [D:\build\U5M-Marketplace\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\ProjectAcoustics\Source\ProjectAcousticsBakeUI\Private\AcousticsBakeTab.cpp:217]
0x00007ffd2454e8f5 UnrealEditor-ProjectAcousticsBakeUI.dll!FAcousticsEdMode::OnClickBakeTab() [D:\build\U5M-Marketplace\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\ProjectAcoustics\Source\ProjectAcousticsBakeUI\Public\AcousticsEdMode.h:111]
0x00007ffd2454cfdc UnrealEditor-ProjectAcousticsBakeUI.dll!SAcousticsEdit::OnActiveTabChanged() [D:\build\U5M-Marketplace\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\ProjectAcoustics\Source\ProjectAcousticsBakeUI\Public\SAcousticsEdit.h:90]
0x00007ffd2450765a UnrealEditor-ProjectAcousticsBakeUI.dll!TBaseSPMethodDelegateInstance<0,SAcousticsEdit,1,void __cdecl(enum AcousticsActiveTab),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\RocketSync\5.0.0-19505902+++UE5+Release-5.0\Working\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:309]
0x00007ffd244af650 UnrealEditor-ProjectAcousticsBakeUI.dll!SSegmentedControl<enum AcousticsActiveTab>::CommitValue() [D:\RocketSync\5.0.0-19505902+++UE5+Release-5.0\Working\Engine\Source\Runtime\Slate\Public\Widgets\Input\SSegmentedControl.h:540]
0x00007ffd243f2163 UnrealEditor-ProjectAcousticsBakeUI.dll!UE::Core::Private::Tuple::TTupleBase<TIntegerSequence<unsigned int,0>,enum AcousticsActiveTab>::ApplyAfter<void (__cdecl SSegmentedControl<enum AcousticsActiveTab>::*const &)(enum ECheckBoxState,enum AcousticsActiveTab),SSegmentedControl<enum AcousticsActiveTab> * &,enum ECheckBoxState &>() [D:\RocketSync\5.0.0-19505902+++UE5+Release-5.0\Working\Engine\Source\Runtime\Core\Public\Templates\Tuple.h:324]
0x00007ffd24506be8 UnrealEditor-ProjectAcousticsBakeUI.dll!TBaseSPMethodDelegateInstance<0,SSegmentedControl<enum AcousticsActiveTab>,1,void __cdecl(enum ECheckBoxState),FDefaultDelegateUserPolicy,enum AcousticsActiveTab>::ExecuteIfSafe() [D:\RocketSync\5.0.0-19505902+++UE5+Release-5.0\Working\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:309]
0x00007ffd63dc55e4 UnrealEditor-Slate.dll!SCheckBox::ToggleCheckedState() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Widgets\Input\SCheckBox.cpp:390]
0x00007ffd63da3076 UnrealEditor-Slate.dll!SCheckBox::OnMouseButtonUp() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Widgets\Input\SCheckBox.cpp:248]
0x00007ffd63b44034 UnrealEditor-Slate.dll!<lambda_51e270ca99ea7ce852539efd04dd453f>::operator()() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:4959]
0x00007ffd63b26fc6 UnrealEditor-Slate.dll!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_51e270ca99ea7ce852539efd04dd453f> >() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:405]
0x00007ffd63ba02ee UnrealEditor-Slate.dll!FSlateApplication::RoutePointerUpEvent() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:4945]
0x00007ffd63b891b1 UnrealEditor-Slate.dll!FSlateApplication::ProcessMouseButtonUpEvent() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5493]
0x00007ffd63b7d5dc UnrealEditor-Slate.dll!FSlateApplication::OnMouseUp() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5458]
0x00007ffd882ea92e UnrealEditor-ApplicationCore.dll!FWindowsApplication::ProcessDeferredMessage() [D:\build\++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2210]
0x00007ffd882d9247 UnrealEditor-ApplicationCore.dll!FWindowsApplication::DeferMessage() [D:\build\++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2699]
0x00007ffd882ece51 UnrealEditor-ApplicationCore.dll!FWindowsApplication::ProcessMessage() [D:\build\++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:1078]
0x00007ffd882d49a7 UnrealEditor-ApplicationCore.dll!FWindowsApplication::AppWndProc() [D:\build\++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:916]
0x00007ffda806e858 USER32.dll!UnknownFunction []
0x00007ffda806e299 USER32.dll!UnknownFunction []
0x00007ffd882ee148 UnrealEditor-ApplicationCore.dll!FWindowsPlatformApplicationMisc::PumpMessages() [D:\build\++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsPlatformApplicationMisc.cpp:138]
0x00007ff68f377114 UnrealEditor.exe!FEngineLoop::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5139]
0x00007ff68f390d9c UnrealEditor.exe!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:183]
0x00007ff68f390e8a UnrealEditor.exe!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:147]
0x00007ff68f393c4d UnrealEditor.exe!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:283]
0x00007ff68f3a5564 UnrealEditor.exe!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:330]
0x00007ff68f3a8736 UnrealEditor.exe!__scrt_common_main_seh() [d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
0x00007ffda7d67034 KERNEL32.DLL!UnknownFunction []
0x00007ffda9d42651 ntdll.dll!UnknownFunction []
There is a page dedicated to this issue: #89
But none of the suggested solutions worked for me...
Maybe I should try reinstalling UE5?
@RoflanTsar At this point, these issues appear to be happening with core packages so perhaps trying to re-install UE5 will clear things up. Otherwise, I'm not sure what else to suggest. The fact that reinstalling the clr fixed a few things means to me that there was an installation issue at some point, but I'm not sure how this would impact multiple machines.
Alright, i reinstalled UE5 and Visual Studio. This time python in UE didn't have CLR module at all - so i had to manually install it.
I have no idea why this is happening - maybe it has something to do with internet/IP/geolocation/OS language issues because I don't see anything else in common between machines we tested this on.
I can launch the project, but issues 2 and 3 from #89 still persist and we can't do anything with them, unfortunately.
I guess that's it for now, but i'm open to any possible solution!
pip install clr
need it?
https://pypi.org/project/clr/
pythonnet 2.5.2 doesn't support Python3.9, can I still use it? https://pypi.org/project/pythonnet/
Catching up on this issue after being away.
pip install clr need it?
Normally we don't need to explicitly install this.
pythonnet 2.5.2 doesn't support Python3.9, can I still use it?
Yes. They don't officially support 3.9, but you can either use the pre-built package I mentioned in #89 or if you have the right components, your PC will build the correct version that works in 3.9.
There is one other thing I can think of. This happened to me once. Python will cache pip packages that you have installed previously and re-use cached packages when you install/re-install them. So it's possible that you have an old pythonnet package that will not work in 3.9, and when you re-install pythonnet, it is re-using that incompatible package. You have to do the following commands to remove cached packages. Run these in your UE5 Python3.9 instance and then try to run our script.
pip uninstall pythonnet
pip cache purge
solved. Thank you.
python -m pip uninstall pythonnet
python -m pip cache purge
python.exe -m pip install <downloaded whl>
I also referred to the following https://github.com/microsoft/ProjectAcoustics/issues/89#issuecomment-1132307029
python -m pip uninstall pythonnet
python -m pip cache purge
Download pythonnet‑2.5.2‑cp39‑cp39‑win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pythonnet
python.exe -m pip install <downloaded whl>
Didn't work for me
@RoflanTsar something changed? Have you solved the problem? Also have crash on bake after fixing error on project start
@RoflanTsar something changed? Have you solved the problem? Also have crash on bake after fixing error on project start
Nope, nothing yet. Maybe in UE 5.1
Something new to try.
Pythonnet released version 3.0 12 days ago, which has support for newer python versions. If you do the uninstall and cache purge steps then re-launch the editor, you should get pythonnet version 3.0 pulled down. Unfortunately, this doesn't work out of the box as there was an API change. You'll need to update the python script included in the Project Acoustic plugin at Plugins\ProjectAcousticsNative\Content\Python\init_project_acoustics.py to add the following two lines:
clr.AddReference("System.Security") clr.AddReference("Microsoft.Azure.Batch")
You'll want to add these lines after the line: from System import AppDomain, Convert, String
Make the python script changes before launching the editor.
Tested on 3 different PCs - same issue everywhere. Visual Studio 19 with Python 3.9 and .Net desktop are installed.
Steps to reproduce:
Crash log: