Cannot Read Texture File

Issue #2001 invalid
Curtis Amies created an issue

So I’ve got everything installed both in Daz and Blender that needs to be. I’ve been trying to import a Genesis 8 figure into Blender, both morphed and unmorphed, DBZ file and plain duf file, but no matter what, the same error occurs. The file paths have all been set to paths that exist, but it continues to say that it cannot read a texture file. I’ve checked and even opened said texture, it’s not corrupted, and I’ve even deleted my Genesis 8 files and reinstalled them, still no change. I’ve also tried reinstalling Blender, but again, nothing’s changed there. Curious as to whether anyone else has been getting this issue or if it’s just me.

Comments (9)

  1. Alessandro Padovani

    Of course it’s just you, since the addon works fine for anyone else. If you’re on linux or mac be sure to check “case sensitive“ in the global settings. Otherwise no idea what you could have done wrong, from your description it seems you did all the steps.

    p.s. It may also be that blender doesn’t get permission to access the file, if you installed daz studio as administrator then run blender as standard user.

    p.p.s. I’m not sure what the last line means: “d:\blender 3\“. Did you install blender in a different drive than daz studio ? Usually all applications are installed in “C:\program files\”. If blender is on a different drive then absolute paths are needed to reference anything, and this may be the culprit.

  2. Thomas Larsson repo owner

    I don’t understand why the texture isn’t found. The code has been changed so a more informative error message is shown if you increase the global verbosity setting to 3. Please report back what it says.

  3. Curtis Amies reporter

    Absolute Paths have already been set. I’m also going to get the settings sorted and will send another error message.

  4. Curtis Amies reporter

    Python: Traceback (most recent call last):
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\error.py", line 223, in execute
    self.run(context)
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\main.py", line 774, in run
    self.easyImport(context)
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\main.py", line 783, in easyImport
    bpy.ops.daz.import_daz(
    File "D:\Blender 3\3.6\scripts\modules\bpy\ops.py", line 113, in call
    ret = op_call(self.idname_py(), None, kw)
    RuntimeError: Error: Python: Traceback (most recent call last):
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\error.py", line 223, in execute
    self.run(context)
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\main.py", line 287, in run
    self.loadDazFile(filepath, context)
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\main.py", line 153, in loadDazFile
    asset.build(context)
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\cycles.py", line 89, in build
    self.tree.build()
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\cycles.py", line 330, in build
    self.buildLayers()
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\cycles.py", line 343, in buildLayers
    self.buildLayer("")
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\pbr.py", line 127, in buildLayer
    self.buildBump(uvname)
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\cycles.py", line 652, in buildBump
    self.bumpval,self.bumptex, = self.getColorTex("getChannelBump", "NONE", 0, False)
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\cycles.py", line 903, in getColorTex
    tex = self.addTexImageNode(channel, colorSpace, texslot, isMask)
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\cycles.py", line 1907, in addTexImageNode
    return newTexture(assets[0], maps[0])
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\cycles.py", line 1888, in newTexture
    innode,texnode,outnode,isnew = self.addSingleTexture(col, asset, map, colorSpace)
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\cycles.py", line 1815, in addSingleTexture
    img,imgname = asset.buildImage(colorSpace)
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\material.py", line 838, in buildImage
    self.image = self.map.build()
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\material.py", line 727, in build
    self.image = getImage(self.url)
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\material.py", line 737, in getImage
    return loadImage(url)
    File "C:\Users\520AM\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\import_daz\material.py", line 747, in loadImage
    img = bpy.data.images.load(filepath)
    RuntimeError: Error: Cannot read ‘/Runtime/Textures/DAZ/Characters/Genesis8/FemaleBase/G8FBaseTorsoMapB_1002.jpg': No such file or directory
    Location: D:\Blender 3\3.6\scripts\modules\bpy\ops.py:113

    As far as I can tell, even having changed the global verbose setting to 3, there isn’t any difference with the logs… Personally, I’m curious why it’s trying to find something without going through one of the drives on the computer. All the paths have a drive specified.

  5. Curtis Amies reporter

    Well… just installed the latest dev version and it fixed it. I feel kinda stupid, but hey, I guess these things happen. Thanks for the help.

  6. Log in to comment