HD import fails

Issue #64 resolved
Noname created an issue

Error when importing G8F HD character:

ERROR:
JSON error while reading zipped file
"G:\DAZ 3D Scenes\G8F.dbz"
Expecting property name enclosed in double quotes: line 956145 column 5 (char 76688722)
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-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 70, in getMainAsset
    fitToFile(filepath, main.nodes)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-9ba4cff98646\objfile.py", line 217, in fitToFile
    dbz = loadDbzFile(filepath)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-9ba4cff98646\objfile.py", line 124, in loadDbzFile
    struct = loadJson(filepath)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-9ba4cff98646\load_json.py", line 70, in loadJson
    reportError(msg, trigger=trigger)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-9ba4cff98646\error.py", line 92, in reportError
    raise DazError(msg)

File contains G8F custom character plus some clothes.

Strangely G3F Lilith test file imports correctly with dbz (resaved dbz file using latest version - works fine)

Regards

Comments (9)

  1. Thomas Larsson repo owner

    I cannot reproduce this error. However, I have messed with the HD export script and may have introduced some bugs, but they don’t seem to be there now. Reexport the dbz file from DS with the latest HD exporter, and hopefully things should work out.

  2. Noname reporter

    This happens with latest version.

    Importing without dbz works fine.

    Model is Apryl but I did changed materials etc. but still this shouldn’t cause issue ?

  3. Noname reporter

    Retested using latest version 404a874, error, from daz_importer_errors.txt:

    ERROR:
    JSON error while reading zipped file
    "G:\Scenes\G8F.dbz"
    Expecting property name enclosed in double quotes: line 1184894 column 5 (char 95090897)
    For details see
    'c:\Dokuments\daz_importer_errors.txt'
    
    TRACEBACK:
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-404a874fb883\error.py", line 233, in execute
        self.run(context)
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-404a874fb883\daz.py", line 47, in run
        getMainAsset(self.filepath, context, self)
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-404a874fb883\main.py", line 70, in getMainAsset
        fitToFile(filepath, main.nodes)
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-404a874fb883\objfile.py", line 231, in fitToFile
        dbz = loadDbzFile(filepath)
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-404a874fb883\objfile.py", line 133, in loadDbzFile
        struct = loadJson(filepath)
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-404a874fb883\load_json.py", line 70, in loadJson
        reportError(msg, trigger=trigger)
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-404a874fb883\error.py", line 115, in reportError
        raise DazError(msg)
    

    Import without dbz works fine.

  4. Thomas Larsson repo owner

    I was using a different version of the HD export script myself for another project, so I didn’t notice any errors in the committed version. It has now been replaced by the working version.

  5. Noname reporter

    Unfortunately it seams like it doesn’t work, error is still there:

    TRACEBACK:
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-52d1ce51e4a9\error.py", line 233, in execute
        self.run(context)
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-52d1ce51e4a9\daz.py", line 47, in run
        getMainAsset(self.filepath, context, self)
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-52d1ce51e4a9\main.py", line 70, in getMainAsset
        fitToFile(filepath, main.nodes)
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-52d1ce51e4a9\objfile.py", line 231, in fitToFile
        dbz = loadDbzFile(filepath)
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-52d1ce51e4a9\objfile.py", line 133, in loadDbzFile
        struct = loadJson(filepath)
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-52d1ce51e4a9\load_json.py", line 70, in loadJson
        reportError(msg, trigger=trigger)
      File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Diffeomorphic-import-daz-52d1ce51e4a9\error.py", line 115, in reportError
        raise DazError(msg)
    

    PS. What I did:

    • update plugin in Blender
    • make sure that Daz plugins are up to date
    • delete old json / dbz
    • export json dbz using latest versions
    • import in Blender using latest

  6. Thomas Larsson repo owner

    I forgot about this issue, but today I had the same problem. It arose when you have a geograft with a geometry shell. Fixed now.

  7. Log in to comment