Closed joannevebby closed 2 years ago
Hey @joannevebby can you remove the Send to Unreal addon from Blender, then shut blender down and then restart it, then install the latest addon? Sometimes this is needed to reset the python imports, especially if the update contains new python modules. Let me know how that goes
Hello there @james-baber ! Thanks for replying, I did try that but I'm still getting that error. I noticed that if I disable the Python Remote Execution in Unreal and then try to export in blender, it says that it couldn't find an Unreal Editor open, once I enable remote execution it gives me that error. I don't know if that's useful at all. I was using the previous plugin with the previous version of unreal/blender just fine but it doesn't seem to work now.
So provided that you have a fresh blender and unreal python environments. Send to Unreal 2.1.1 does have that rpc module inside it. What the code does here https://github.com/EpicGames/BlenderTools/blob/cca29b8cef8b9fb1908a36172599fbd35f8b4ab3/send2ue/dependencies/unreal.py#L194
Is it sends over the code that adds the rpc server to unreal. It needs remote execution to do this initially. One way to trouble shoot this would be to go to C:\Users\joann\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\send2ue\dependencies\unreal.py
at line 190 replace the call with
result = run_commands(
[
'import sys',
f'sys.path.append(r"{dependencies_path}")',
f'print(r"{dependencies_path}")',
'from pprint import pprint',
'pprint(list(sys.path))',
'from rpc import unreal_server',
'rpc_server = unreal_server.RPCServer()',
'rpc_server.start(threaded=True)',
]
)
Note that after you change this code you will need to shutdown blender and restart it.
When you re-run this you should see some paths printed out in the unreal output log before the error occurs. Can you copy the output here?
Before I changed the python code that you gave me, Unreal was showing this in the output log:
LogPython: Display: Generating Python API stub file...
LogPython: Display: ...generating Python API: glue code
LogPython: Display: ...generating Python API: additional code
LogPython: Display: ...generated: C:/Users/joann/Documents/Unreal Projects/Project3POW/Intermediate/PythonStub/unreal.py
LogSlate: Only BGRA pngs, bmps or icos are supported in by External Image Picker
LogUObjectGlobals: Warning: Failed to find object 'Class None.Physics'
LogPython: Display: Generating Python API stub file...
LogPython: Display: ...generating Python API: glue code
LogPython: Display: ...generating Python API: additional code
LogPython: Display: ...generated: C:/Users/joann/Documents/Unreal Projects/Project3POW/Intermediate/PythonStub/unreal.py
LogSlate: Window 'Project Settings' being destroyed
LogSlate: Window 'Project Settings' being destroyed
LogPython: No module named 'rpc'
LogSlate: Window 'Plugins' being destroyed
LogSlate: Window 'Plugins' being destroyed
LogDirectoryWatcher: A directory notification for '../../../Engine/Plugins/' was aborted.
LogDirectoryWatcher: A directory notification for '../../../../../../Users/joann/Documents/Unreal Projects/Project3POW/Plugins/' was aborted.
LogDerivedDataCache: C:/Users/joann/AppData/Local/UnrealEngine/Common/DerivedDataCache: Maintenance finished in +00:00:00.317 and deleted 0 file(s) with total size 0 MiB.
LogPython: No module named 'rpc'
After I changed the code, it told me that it coulnd't find the Unreal Editor while in the Unreal output logs I got these:
LogPython: C:\Users\joann\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\send2ue\dependencies
LogPython: [
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\python39.zip'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\DLLs'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic Games\\UE_5.0\\Engine\\Binaries\\Win64'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Binaries\\ThirdParty\\Python3\\Win64\\lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Users\\joann\\Documents\\Unreal '
LogPython: 'Projects\\Project3POW\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Users\\joann\\Documents\\Unreal '
LogPython: 'Projects\\Project3POW\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Bridge\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Bridge\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\2D\\Paper2D\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\2D\\Paper2D\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\FX\\Niagara\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\FX\\Niagara\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:/Program Files/Epic '
LogPython: 'Games/UE_5.0/Engine/Plugins/Animation/ControlRig/Content/Python'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Animation\\ControlRig\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Animation\\ControlRig\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Animation\\ControlRigSpline\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Animation\\ControlRigSpline\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Animation\\IKRig\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Animation\\IKRig\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Enterprise\\DatasmithContent\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Enterprise\\DatasmithContent\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Editor\\GeometryMode\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Editor\\GeometryMode\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Developer\\AnimationSharing\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Developer\\AnimationSharing\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Editor\\ModelingToolsEditorMode\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Editor\\ModelingToolsEditorMode\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Editor\\SpeedTreeImporter\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Editor\\SpeedTreeImporter\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Media\\MediaCompositing\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Media\\MediaCompositing\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:/Program Files/Epic '
LogPython: 'Games/UE_5.0/Engine/Plugins/MovieScene/SequencerScripting/Content/Python'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\MovieScene\\SequencerScripting\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\MovieScene\\SequencerScripting\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\ChaosClothEditor\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\ChaosClothEditor\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\ChaosNiagara\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\ChaosNiagara\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\ChaosSolverPlugin\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\ChaosSolverPlugin\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\FullBodyIK\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\FullBodyIK\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\GeometryCollectionPlugin\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\GeometryCollectionPlugin\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\GeometryFlow\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\GeometryFlow\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\MeshModelingToolsetExp\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\MeshModelingToolsetExp\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\MeshLODToolset\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\MeshLODToolset\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:/Program Files/Epic '
LogPython: 'Games/UE_5.0/Engine/Plugins/Experimental/PythonScriptPlugin/Content/Python'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\PythonScriptPlugin\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Experimental\\PythonScriptPlugin\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Runtime\\AudioSynesthesia\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Runtime\\AudioSynesthesia\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Runtime\\GeometryProcessing\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Runtime\\GeometryProcessing\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Runtime\\HairStrands\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Runtime\\HairStrands\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Runtime\\MeshModelingToolset\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Runtime\\MeshModelingToolset\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Runtime\\ResonanceAudio\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Runtime\\ResonanceAudio\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Runtime\\Synthesis\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Runtime\\Synthesis\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Runtime\\SunPosition\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Program Files\\Epic '
LogPython: 'Games\\UE_5.0\\Engine\\Plugins\\Runtime\\SunPosition\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:/Users/joann/Documents/Unreal '
LogPython: 'Projects/Project3POW/Plugins/VRM4U/Content/Python'
LogPython: ,
LogPython: 'C:\\Users\\joann\\Documents\\Unreal '
LogPython: 'Projects\\Project3POW\\Plugins\\VRM4U\\Content\\Python\\Lib\\Win64\\site-packages'
LogPython: ,
LogPython: 'C:\\Users\\joann\\Documents\\Unreal '
LogPython: 'Projects\\Project3POW\\Plugins\\VRM4U\\Content\\Python\\Lib\\site-packages'
LogPython: ,
LogPython: 'C:\\Users\\joann\\AppData\\Roaming\\Blender '
LogPython: 'Foundation\\Blender\\3.2\\scripts\\addons\\send2ue\\dependencies'
LogPython: ,
LogPython: 'C:\\Users\\joann\\AppData\\Roaming\\Blender '
LogPython: 'Foundation\\Blender\\3.2\\scripts\\addons\\send2ue\\dependencies'
LogPython: ,
LogPython: 'C:\\Users\\joann\\AppData\\Roaming\\Blender '
LogPython: 'Foundation\\Blender\\3.2\\scripts\\addons\\send2ue\\dependencies'
LogPython: ]
LogPython: No module named 'rpc'
I did also just install blender 3.2 fresh as well as the latest send2ue 2.1.2 version just in case it worked but it didn't
Well, I ended up uninstalling UE5 and freshly installing it again. It seems to have fixed the errors/issues I was having, I'm not sure why, given the fact that I didn't tweak anything on the previous installation. Thank you for wanting to help out, I appreciate it!
Ok glad to hear it is working for you!
I Installed the latest version of Unreal today (5.0.3) as well as the latest blender version (3.2.1). Downloaded the 2.1.1 version of send2ue as well from the 'Releases' but I keep getting this error when I try to export. Yes the plugins and execution are enabled in Unreal.