Mesh import fails
Issue #66
resolved
Importing custom mesh fails with:
Traceback (most recent call last):
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-9ba4cff98646\error.py", line 187, in execute
self.run(context)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-9ba4cff98646\daz.py", line 48, in run
getMainAsset(self.filepath, context, self)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-9ba4cff98646\main.py", line 63, in getMainAsset
main = parseAssetFile(struct, toplevel=True)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-9ba4cff98646\files.py", line 273, in parseAssetFile
return asset.parse(struct)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-9ba4cff98646\files.py", line 124, in parse
asset.parse(mstruct)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-9ba4cff98646\material.py", line 96, in parse
Asset.parse(self, struct)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-9ba4cff98646\asset.py", line 319, in parse
self.id = getId(struct["id"], self.fileref)
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-9ba4cff98646\asset.py", line 417, in getId
if id[0] == "/":
IndexError: string index out of range
location: <unknown location>:-1
Nothing is imported.
Comments (4)
-
repo owner -
reporter Tested using e66c482
Still errors out:
Traceback (most recent call last): File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\error.py", line 187, in execute self.run(context) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\daz.py", line 48, in run getMainAsset(self.filepath, context, self) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\main.py", line 63, in getMainAsset main = parseAssetFile(struct, toplevel=True) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\files.py", line 273, in parseAssetFile return asset.parse(struct) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\files.py", line 124, in parse asset.parse(mstruct) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\material.py", line 96, in parse Asset.parse(self, struct) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\asset.py", line 319, in parse self.id = getId(struct["id"], self.fileref) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\asset.py", line 417, in getId if id[0] == "/": IndexError: string index out of range location: <unknown location>:-1
-
reporter Increased verbosity to 5 and now error is:
ERROR: Did not find path: "name:/@selection:" Ref:"name%3A/%40selection%3A" For details see 'C:\Documents\daz_importer_errors.txt' TRACEBACK: File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\error.py", line 187, in execute self.run(context) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\daz.py", line 48, in run getMainAsset(self.filepath, context, self) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\main.py", line 63, in getMainAsset main = parseAssetFile(struct, toplevel=True) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\files.py", line 273, in parseAssetFile return asset.parse(struct) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\files.py", line 105, in parse asset = self.parseUrlAsset(nstruct) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\asset.py", line 177, in parseUrlAsset asset.update(struct) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\node.py", line 598, in update Asset.update(self, struct) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\asset.py", line 365, in update self.parent = self.caller.getAsset(struct["parent"]) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\asset.py", line 110, in getAsset return self.getNewAsset(id, ref, strict) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\asset.py", line 118, in getNewAsset filepath = getDazPath(fileref) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\asset.py", line 582, in getDazPath reportError(msg, trigger=(3,4)) File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-e66c4827e077\error.py", line 92, in reportError raise DazError(msg)
-
reporter - changed status to resolved
Closing this because... I forgot file that I tested. Will reopen when I track down that file.
- Log in to comment
This error message should not appear in latest commit. However, there seems to be something wrong with some of the daz files that you try to load. Every asset should have an id field, but this asset does not seem to have it.