MapsModelsImporter
MapsModelsImporter copied to clipboard
Cannot import RDC file - WinError 87
Hello, if anyone can help please do as I've tried everything I can think of and am at a total dead end.
I'm able to generate the RDC file without trouble but whenever I try to import, Blender is having none of it and keep getting the WinError 87 error. I've tried the following to fix the issue (I should point out that I'm not a programmer and my understanding of coding is virtually non-existent):
- Tried every version of the addon from 0.3.0 up, each time with the versions of Blender and RenderDoc specified plus some other combos people have said worked for them. Same error every time.
- Tried with sample RDC files provided. Again, same error.
- Using a PYTHONPATH environment variable set to version of Python used in Blender and RenderDoc, and a standalone python install. Blender just ignores this...
- Also using the RENDERDOC_PYTHON_PREFIX64 with each of the above python versions (saw it on the RenderDoc python documentation but again, I'm not a programmer so may not be relevant)
If anyone can help me fix this would be a massive help! I'll post the RDC file along with the error and some screenshots of the results of some import requests in the scripting console (basically looked at every forum response I could find on the issue and saw this requested a few times but was never given). Also, if someone is able to load it into Blender, would they be able to save it to an FBX file and send it to me? Want to use it in an art project I'm working on for fun. Thanks in advanced!
- Files - https://u.pcloud.link/publink/show?code=kZFblCXZoPBxu1etuukcuFNs85a58jdLJYrk (for whatever reason, Github won't let me upload anything, even allowed files so I'm having to do it this way 🤦♂️🤦♂️🤦♂️)
- GPU - GTX 780 TI
- MapsModelsImporter-0.4.1-rc1
- Blender 2.93.1
- RenderDoc 1.13
Hi @oggy1189, thanks for having tried hard before reporting here. Did you try installing vc_redist.x64? https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0
Hi @oggy1189, thanks for having tried hard before reporting here. Did you try installing vc_redist.x64? https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0
Hi, just installed it and tried again. Same error
Python: Traceback (most recent call last): File "C:\Users\luke\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\MapsModelsImporter\operators.py", line 54, in execute importCapture(context, self.filepath, self.max_blocks, pref) File "C:\Users\luke\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\MapsModelsImporter\google_maps.py", line 307, in importCapture captureToFiles(context, filepath, prefix, max_blocks) File "C:\Users\luke\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\MapsModelsImporter\google_maps.py", line 79, in captureToFiles out = subprocess.check_output([python, SCRIPT_PATH, filepath, prefix, str(max_blocks)], stderr=subprocess.STDOUT, text=True) File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\lib\subprocess.py", line 424, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\lib\subprocess.py", line 505, in run with Popen(*popenargs, **kwargs) as process: File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\lib\subprocess.py", line 951, in init self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\lib\subprocess.py", line 1420, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, OSError: [WinError 87] The parameter is incorrect
location:
Try the incoming 0.4.1: https://github.com/eliemichel/MapsModelsImporter/releases/tag/v0.4.1-rc1
In Blender's Python console do the following and copy the output here:
import sys
print(sys.executable)
Check that the file C:\Users\luke\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\MapsModelsImporter\google_maps_rd.py exists.
Put the capture file in at a path with no special character in directory names.
That's the version I was using 👌
Python response = C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\bin\python.EXE
Yes the file is there
And have placed on the desktop.
Let me know if you need anything else 👍
Okey in the same console now try:
filepath = "THE/PATH/TO/YOUR/CAPTURE.rdc"
import subprocess
import os
subprocess.check_output([
r"C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\bin\python.EXE",
r"C:\Users\luke\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\MapsModelsImporter\google_maps_rd.py",
filepath,
os.path.dirname(filepath),
"-1"
], stderr=subprocess.STDOUT)
(I hope I did not make a typo I did not test the script)
Sorry, deleted the last one as wanted to check something.
Kinda weird, when I paste the code as your wrote it it comes in fine
...yet when I alter the path section I get a syntax error
I've tried pasting the full address and also inverted the dashes just to be sure and it's the same each time. Apologies for sucking at coding lol
EDIT: I wasn't sure if you wanted me to compile the code you sent as is so I tried. Ended up with the Win87 error again
import bpy from bpy import data as D from bpy import context as C from mathutils import * from math import *
#~ PYTHON INTERACTIVE CONSOLE 3.9.2 (default, Mar 1 2021, 08:18:55) [MSC v.1916 64 bit (AMD64)]
#~
#~ Builtin Modules: bpy, bpy.data, bpy.ops, bpy.props, bpy.types, bpy.context, bpy.utils, bgl, blf, mathutils
#~ Convenience Imports: from mathutils import *; from math import *
#~ Convenience Variables: C = bpy.context, D = bpy.data
#~
filepath = "THE/PATH/TO/YOUR/CAPTURE.rdc"
import subprocess
import os
subprocess.check_output([
r"C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\bin\python.EXE",
r"C:\Users\luke\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\MapsModelsImporter\google_maps_rd.py",
filepath,
os.path.dirname(filepath),
"-1"
], stderr=subprocess.STDOUT)
#! Traceback (most recent call last):
#! File "<blender_console>", line 1, in
Mmh it may come from antoher of your add-ons, try disabling all of them (see #149)
Just tried, no luck. Same win87 error
Are you able to run "C:\Program Files\Blender Foundation\Blender 2.93\2.93\python\bin\python.EXE" at all? You can try Win+E, then paste this, with quotes around, it should start a Python console.
Yep, opens it fine
I'm sorry this is a tough one... I really don't get why subprocess fails at spawning this python.exe then. Could you try the same lines of code I had you run in Blender's console but this time in that console you got in the last test?
Just tried and it's giving the same error 😔
Out of curiosity I tried running it on a standalone install of python 3.9.2. It gave the Win87 error but with different file locations. Don't know if that gives any clues but I'll include as well.
Have you gotten anywhere on this? I believe I am running into a similar problem:
Read prefs: C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\config\userpref.blend Info: Deleted 3 object(s)
========================================================================================== google_maps_rd failed and returned: Error: Failed to load the RenderDoc Module. It however seems to exist. This might be due to one of the following reasons:
- Your Blender version uses another version of python than used to build the RenderDoc Module
- An additional file required by the RenderDoc Module is missing (i.E. renderdoc.dll)
- Something completely different
Remember, you must use exactly the same version of python to load the RenderDoc Module as was used to build it. Find more information about building the RenderDoc Module here: https://github.com/baldurk/renderdoc/blob/v1.x/docs/CONTRIBUTING/Compiling.md
sys.platform: win32 Python version: 3.7.7 (default, Jun 13 2020, 11:11:23) [MSC v.1916 64 bit (AMD64)] err.name: renderdoc err.path: C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MapsModelsImporter\bin\win64\renderdoc.pyd Error Message: DLL load failed: The specified module could not be found.
Extra info:
- python = K:\Program Files\2.92\python\bin\python.EXE
- python_home = K:\Program Files\2.92\python Info: No new files have been packed
========================================================================================== google_maps_rd failed and returned: Error: Failed to load the RenderDoc Module. It however seems to exist. This might be due to one of the following reasons:
- Your Blender version uses another version of python than used to build the RenderDoc Module
- An additional file required by the RenderDoc Module is missing (i.E. renderdoc.dll)
- Something completely different
Remember, you must use exactly the same version of python to load the RenderDoc Module as was used to build it. Find more information about building the RenderDoc Module here: https://github.com/baldurk/renderdoc/blob/v1.x/docs/CONTRIBUTING/Compiling.md
sys.platform: win32 Python version: 3.7.7 (default, Jun 13 2020, 11:11:23) [MSC v.1916 64 bit (AMD64)] err.name: renderdoc err.path: C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MapsModelsImporter\bin\win64\renderdoc.pyd Error Message: DLL load failed: The specified module could not be found.
Extra info:
- python = K:\Program Files\2.92\python\bin\python.EXE
- python_home = K:\Program Files\2.92\python
========================================================================================== google_maps_rd failed and returned: Error: Failed to load the RenderDoc Module. It however seems to exist. This might be due to one of the following reasons:
- Your Blender version uses another version of python than used to build the RenderDoc Module
- An additional file required by the RenderDoc Module is missing (i.E. renderdoc.dll)
- Something completely different
Remember, you must use exactly the same version of python to load the RenderDoc Module as was used to build it. Find more information about building the RenderDoc Module here: https://github.com/baldurk/renderdoc/blob/v1.x/docs/CONTRIBUTING/Compiling.md
sys.platform: win32 Python version: 3.7.7 (default, Jun 13 2020, 11:11:23) [MSC v.1916 64 bit (AMD64)] err.name: renderdoc err.path: C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MapsModelsImporter\bin\win64\renderdoc.pyd Error Message: DLL load failed: The specified module could not be found.
Extra info:
- python = K:\Program Files\2.92\python\bin\python.EXE
- python_home = K:\Program Files\2.92\python Exception in module unregister(): 'K:\Program Files\2.92\scripts\addons\io_scene_gltf2\init.py' Traceback (most recent call last): File "K:\Program Files\2.92\scripts\modules\addon_utils.py", line 434, in disable mod.unregister() File "K:\Program Files\2.92\scripts\addons\io_scene_gltf2_init_.py", line 1083, in unregister bpy.utils.unregister_class(c) RuntimeError: unregister_class(...):, missing bl_rna attribute from 'RNAMeta' instance (may not be registered)
Error: Traceback (most recent call last): File "K:\Program Files\2.92\scripts\modules\addon_utils.py", line 434, in disable mod.unregister() File "K:\Program Files\2.92\scripts\addons\io_scene_gltf2_init_.py", line 1083, in unregister bpy.utils.unregister_class(c) RuntimeError: unregister_class(...):, missing bl_rna attribute from 'RNAMeta' instance (may not be registered)
Python: Traceback (most recent call last): File "C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py", line 739, in poll if operator.is_draco_available: File "K:\Program Files\2.92\scripts\modules\bpy_types.py", line 721, in getattribute return super().getattribute(attr) AttributeError: 'IMP_OP_GoogleMapsCapture' object has no attribute 'is_draco_available'
location:
C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py:745 Python: Traceback (most recent call last): File "C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py", line 739, in poll if operator.is_draco_available: File "K:\Program Files\2.92\scripts\modules\bpy_types.py", line 721, in getattribute return super().getattribute(attr) AttributeError: 'IMP_OP_GoogleMapsCapture' object has no attribute 'is_draco_available'
location:
C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py:745 Python: Traceback (most recent call last): File "C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py", line 739, in poll if operator.is_draco_available: File "K:\Program Files\2.92\scripts\modules\bpy_types.py", line 721, in getattribute return super().getattribute(attr) AttributeError: 'IMP_OP_GoogleMapsCapture' object has no attribute 'is_draco_available'
location:
C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py:745 Python: Traceback (most recent call last): File "C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py", line 739, in poll if operator.is_draco_available: File "K:\Program Files\2.92\scripts\modules\bpy_types.py", line 721, in getattribute return super().getattribute(attr) AttributeError: 'IMP_OP_GoogleMapsCapture' object has no attribute 'is_draco_available'
location:
C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py:745 Python: Traceback (most recent call last): File "C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py", line 739, in poll if operator.is_draco_available: File "K:\Program Files\2.92\scripts\modules\bpy_types.py", line 721, in getattribute return super().getattribute(attr) AttributeError: 'IMP_OP_GoogleMapsCapture' object has no attribute 'is_draco_available'
location:
C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py:745 Python: Traceback (most recent call last): File "C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py", line 739, in poll if operator.is_draco_available: File "K:\Program Files\2.92\scripts\modules\bpy_types.py", line 721, in getattribute return super().getattribute(attr) AttributeError: 'IMP_OP_GoogleMapsCapture' object has no attribute 'is_draco_available'
location:
C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py:745 Python: Traceback (most recent call last): File "C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py", line 739, in poll if operator.is_draco_available: File "K:\Program Files\2.92\scripts\modules\bpy_types.py", line 721, in getattribute return super().getattribute(attr) AttributeError: 'IMP_OP_GoogleMapsCapture' object has no attribute 'is_draco_available'
location:
C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py:745 Python: Traceback (most recent call last): File "C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py", line 739, in poll if operator.is_draco_available: File "K:\Program Files\2.92\scripts\modules\bpy_types.py", line 721, in getattribute return super().getattribute(attr) AttributeError: 'IMP_OP_GoogleMapsCapture' object has no attribute 'is_draco_available'
location:
C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py:745 Python: Traceback (most recent call last): File "C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py", line 739, in poll if operator.is_draco_available: File "K:\Program Files\2.92\scripts\modules\bpy_types.py", line 721, in getattribute return super().getattribute(attr) AttributeError: 'IMP_OP_GoogleMapsCapture' object has no attribute 'is_draco_available'
location:
C:\Users\KJJoh\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\MSFSToolkit\exporter_init_.py:745
@KJJohnson37 The last version of the addon is for Blender 2.93, because 2.92 used a different version of Python. The last version that supports 2.92 is v0.3.7. You must use RenderDoc 1.10 if you use this version of the add-on.
@oggy1189 Really I don't know, sorry, the error is beyond the scope of this very add-on I fear.
@Eliemichel thanks for your amazing plugin. I had the exact same WinError 87, strange location error. (Win10/RenderDoc1.13/MMIv0.4.1/Blender v3.0.1/SacreCoeur). => It turned out, this was my COMODO Antivirus software. messing somehow. I disabled its Antivirus/AutoContainment/VirusScope features just during the .rdc import in Blender => Problem SOLVED.