eliemichel / MapsModelsImporter

A Blender add-on to import models from google maps
https://blog.exppad.com/article/importing-actual-3d-models-from-google-maps
GNU General Public License v3.0
2.44k stars 299 forks source link

Cannot import RDC file in blender - #112

Closed fanatikmhd closed 3 years ago

fanatikmhd commented 3 years ago

All files is recent ones (MMI, RD, Blender...) I try it, but something is wrong when i need to import. I think, theres something installed in your blenders what i dont have....

problem

pumpa 3.zip

fpibbs commented 3 years ago

Same error...

camosquirrel commented 3 years ago

Precisely the same error for me.

Blender 2.91.0 Map Models Importer release 0.3.3 RDC file from https://blog.exppad.com/public/webgl-renderdoc/gmaps/capture.rdc (self captured RDC files give same error) Win 10 Pro release 19042.630

eliemichel commented 3 years ago

HIi @fanatikmhd, Your RDRC is valid: image

From your error screenshot it appears that the add-on cannot find python.exe that should be located at C:/Programy/Blender 2.91/2.91/python/bin/python.exe in your case. Can you tell if this file indeed exists? Or are you able to find it elsewhere?

robogrow commented 3 years ago

My python.exe is there. Still have same error as others.

mdibenigno commented 3 years ago

I have the same issue and can confirm python.exe exists in that folder.

mpentek commented 3 years ago

Hello,

I want to say that I have the same/similar issue, although the error messages are slightly different. The traceback consistently refers at the upper most level to line 54 in operators.py and from thereon a false/corrupt file path. Currently testing on 3 systems and asking a colleague to try it out as well. Here the errors on various systems when trying to import the HongKong.rdc sample model, after a setup as in your YouTube video.

System 1 info : Win 10 (OS build 19042.630) + (RenderDoc v1.11) Blender 2.90.1 + Python 3.7.7 (within Blender) system_1_info.txt

bpy.context.space_data.system_bookmarks_active = 3
Traceback (most recent call last):
  File "C:\Users\pmt\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MapsModelsImporter\operators.py", line 54, in execute
    importCapture(context, self.filepath, self.max_blocks, pref)
  File "C:\Users\pmt\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MapsModelsImporter\google_maps.py", line 272, in importCapture
    captureToFiles(context, filepath, prefix, max_blocks)
  File "C:\Users\pmt\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MapsModelsImporter\google_maps.py", line 50, in captureToFiles
    os.environ["PYTHONPATH"] += os.pathsep + os.path.abspath(getBinaryDir())
  File "C:\Users\pmt\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\MapsModelsImporter\utils.py", line 47, in getBinaryDir
    }[platform.system()][platform.architecture()[0]]
  File "C:\Program Files\Blender Foundation\Blender 2.90\2.90\python\lib\platform.py", line 1068, in system
    return uname().system
  File "C:\Program Files\Blender Foundation\Blender 2.90\2.90\python\lib\platform.py", line 956, in uname
    node = _node()
  File "C:\Program Files\Blender Foundation\Blender 2.90\2.90\python\lib\platform.py", line 759, in _node
    import socket
  File "C:\Program Files\Blender Foundation\Blender 2.90\2.90\python\lib\socket.py", line 52, in <module>
    import os, sys, io, selectors
ValueError: source code string cannot contain null bytes

location: <unknown location>:-1

System 2 info : Ubuntu 18.04.5 LTS + (no RenderDoc ) Blender 2.91.0 + Python 3.7.7 (within Blender) system_2_info.txt

Complains about a missing filename/false file path, as is it looking for /snap/blender/51/2.91/python/bin/2.91/python/bin/python3.7m although it should probably be /snap/blender/51/2.91/python/bin/python3.7m, as it is in there

pmt18@pmt18:/snap/blender/51/2.91/python/bin$ ls
python3.7m
Python: Traceback (most recent call last):
  File "/home/pmt18/.config/blender/2.91/scripts/addons/MapsModelsImporter/operators.py", line 54, in execute
    importCapture(context, self.filepath, self.max_blocks, pref)
  File "/home/pmt18/.config/blender/2.91/scripts/addons/MapsModelsImporter/google_maps.py", line 272, in importCapture
    captureToFiles(context, filepath, prefix, max_blocks)
  File "/home/pmt18/.config/blender/2.91/scripts/addons/MapsModelsImporter/google_maps.py", line 53, in captureToFiles
    out = subprocess.check_output([python, SCRIPT_PATH, filepath, prefix, str(max_blocks)], stderr=subprocess.STDOUT)
  File "/snap/blender/51/2.91/python/lib/python3.7/subprocess.py", line 411, in check_output
    **kwargs).stdout
  File "/snap/blender/51/2.91/python/lib/python3.7/subprocess.py", line 488, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/snap/blender/51/2.91/python/lib/python3.7/subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "/snap/blender/51/2.91/python/lib/python3.7/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/snap/blender/51/2.91/python/bin/2.91/python/bin/python3.7m': '/snap/blender/51/2.91/python/bin/2.91/python/bin/python3.7m'

location: <unknown location>:-1

System 3 info : Win 10 (another machine) + (RenderDoc v1.11) Blender 2.91.0+ Python 3.7.7 (within Blender) system_3_info.txt

Error similar to the very first post, related to WinError 2, although the files are there.

bpy.context.space_data.system_bookmarks_active = 3
Python: Traceback (most recent call last):
  File "C:\Users\i.tarkanyi\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\MapsModelsImporter\operators.py", line 54, in execute
    importCapture(context, self.filepath, self.max_blocks, pref)
  File "C:\Users\i.tarkanyi\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\MapsModelsImporter\google_maps.py", line 272, in importCapture
    captureToFiles(context, filepath, prefix, max_blocks)
  File "C:\Users\i.tarkanyi\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\MapsModelsImporter\google_maps.py", line 53, in captureToFiles
    out = subprocess.check_output([python, SCRIPT_PATH, filepath, prefix, str(max_blocks)], stderr=subprocess.STDOUT)
  File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\subprocess.py", line 411, in check_output
    **kwargs).stdout
  File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\subprocess.py", line 488, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\subprocess.py", line 1207, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden

location: <unknown location>:-1
cr3you commented 3 years ago

Same error here. On two independent machines with windows 10. Fresh Blender install (v2.91.0) on both computers. Tested on Pumpa.rdc and other examples. Python.exe is in the c:\Program Files\Blender Foundation\Blender 2.91\2.91\python\bin\ directory blenderMapsImportError

fanatikmhd commented 3 years ago

Hi, for my post @eliemichel - I have my Blender on disk "E", but yes, python is here. On C-drive, theres only W10... I try it in many ways, i cannot import rdc file into blender - but when you try it on your machine (screen upper), i see that rdc file is good. So, problem is somewhere in importer. Is there an option, that MapsModelsImporter (MMI) is connected to your tree/subtree where you have your instalation? Like, i need to install Blender in same location (C:\Program Files.....)?

Astrak commented 3 years ago

No clue about the issue from me but as a quick workaround I've been able to make it work again with v0.2.2 for the add-on, v1.1 for renderdoc, and blender 2.83.1.

mpentek commented 3 years ago

Update: the very specific version requirements and recommendations for this plugin do work! https://github.com/eliemichel/MapsModelsImporter/releases/tag/v0.3.3

gembac commented 3 years ago

I had the same error. Worked fine when I installed older versions: Blender 2.90.0 and RenderDoc v1.10

eliemichel commented 3 years ago

Okey I finally figured out: sys.executable used to indicate blender.exe until 2.90, and since 2.91 it points to python.exe so it totally broke the way we were looking for python. It should be fixed by v0.3.4!

robogrow commented 3 years ago

Thank you!

We would like to display proposed autonmous guideway on streets in 3D. aaaaaaaaaaaaais the RDC format documented somewhere so we can display it with some python cloud library?

http://turfrobots.us/media/ag1.mp4

On 12/04/2020 7:42 PM Elie Michel <notifications@github.com> wrote:

Okey I finally figured out: sys.executable used to indicate blender.exe until 2.90, and since 2.91 it points to python.exe so it totally broke the way we were looking for python. It should be fixed by v0.3.4 https://github.com/eliemichel/MapsModelsImporter/releases/tag/v0.3.4 !

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/eliemichel/MapsModelsImporter/issues/112#issuecomment-739092886 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBUBN75J6KOPF565RVL7OLSTF6YTANCNFSM4UC6WFGQ .
eliemichel commented 3 years ago

The Python API for manipulating rdc files is available here: https://renderdoc.org/docs/python_api/index.html But if I understand correctly your point what's wrong with sampling random points on the mesh once imported?

(your mp4 link is down btw)

robogrow commented 3 years ago

Yes, I want to register the RDC point cloud to at least three gps(x,y,z) coordinates and then merge the point could with the guideway mesh(ie. stl) . In a perfect world we would like to use this interface as a real time monitoring control system and guideway traffic simulator. So that means updating many 3D overlay object (pods) at 30 FPS.

Also, I am responding to a smart vity RFP. I'd like to render city streets and display fog point cloud to reflect air pollution and greenhouse gases measured by IOT sensors. The more opaque the fog the higher the measure gas/particulate. Each gas will have a different color. This pilot also will have smart intersection, Noise source location, and multi-model traffic counts so it would be nice to render this on an actual 3D map of the city.

Would you be interested in this work if we get the contract?

Thanks for your support.

On 12/06/2020 5:37 AM Elie Michel <notifications@github.com> wrote:

The Python API for manipulating rdc files is available here: https://renderdoc.org/docs/python_api/index.html
But if I understand correctly your point what's wrong with sampling random points on the mesh once imported?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/eliemichel/MapsModelsImporter/issues/112#issuecomment-739484105 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBUBN7SOOYW4WGDBJDFT4TSTNNILANCNFSM4UC6WFGQ .
robogrow commented 3 years ago

Using renderdoc 1.11 & blender 2.91 still getting this error with new version 3.4

On 12/04/2020 7:42 PM Elie Michel <notifications@github.com> wrote:

Okey I finally figured out: sys.executable used to indicate blender.exe until 2.90, and since 2.91 it points to python.exe so it totally broke the way we were looking for python. It should be fixed by v0.3.4 https://github.com/eliemichel/MapsModelsImporter/releases/tag/v0.3.4 !

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/eliemichel/MapsModelsImporter/issues/112#issuecomment-739092886 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBUBN75J6KOPF565RVL7OLSTF6YTANCNFSM4UC6WFGQ .
robogrow commented 3 years ago

Since I was getting the same missing file error with v3.4, I installed Blender v2.90 and am now getting a Invalid RDC capture file error for both v3.3 and v3.4.

The error instructions say to download a know good capture file to test. I can't find one can you point me to one?

On 12/07/2020 5:33 AM Peter James <just-money@comcast.net> wrote:

Using renderdoc 1.11 & blender 2.91 still getting this error with new version 3.4

    > >         On 12/04/2020 7:42 PM Elie Michel <notifications@github.com> wrote:
    Okey I finally figured out: sys.executable used to indicate blender.exe until 2.90, and since 2.91 it points to python.exe so it totally broke the way we were looking for python. It should be fixed by v0.3.4 https://github.com/eliemichel/MapsModelsImporter/releases/tag/v0.3.4 !

    —
    You are receiving this because you commented.
    Reply to this email directly, view it on GitHub https://github.com/eliemichel/MapsModelsImporter/issues/112#issuecomment-739092886 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBUBN75J6KOPF565RVL7OLSTF6YTANCNFSM4UC6WFGQ .

> 
robogrow commented 3 years ago

Sorry, I must have misstyped url for samples. I downloaded the Funkhaus.rdc sample file and got the same "invalid rdc capture file" error as previously noted using Blender 2.90 and v3.3 map model importer.

On 12/07/2020 11:04 AM Peter James <just-money@comcast.net> wrote:

Since I was getting the same missing file error with v3.4, I installed Blender v2.90 and am now getting a Invalid RDC capture file error for both v3.3 and v3.4.

The error instructions say to download a know good capture file to test. I can't find one can you point me to one?

    > >         On 12/07/2020 5:33 AM Peter James <just-money@comcast.net> wrote:
    Using renderdoc 1.11 & blender 2.91 still getting this error with new version 3.4

        > > >             On 12/04/2020 7:42 PM Elie Michel <notifications@github.com> wrote:
        Okey I finally figured out: sys.executable used to indicate blender.exe until 2.90, and since 2.91 it points to python.exe so it totally broke the way we were looking for python. It should be fixed by v0.3.4 https://github.com/eliemichel/MapsModelsImporter/releases/tag/v0.3.4 !

        —
        You are receiving this because you commented.
        Reply to this email directly, view it on GitHub https://github.com/eliemichel/MapsModelsImporter/issues/112#issuecomment-739092886 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBUBN75J6KOPF565RVL7OLSTF6YTANCNFSM4UC6WFGQ .

    > >