We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

shutil.SameFileError

Home Forums Bug Reports and Feature Requests shutil.SameFileError

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1831
    resonance
    Participant

    Hi, when I export .gltf I get this error, and sneakpeek or run application I can’t see textures (Textures are’s in same application folder of .blend file, and preview in verge3d engine is ok)

    Traceback (most recent call last):
    File “E:\verge3d\addons\verge3d\__init__.py”, line 220, in execute
    return gltf2_export.save(self, context, export_settings)
    File “E:\verge3d\addons\verge3d\gltf2_export.py”, line 82, in save
    generate_glTF(operator, context, export_settings, glTF)
    File “E:\verge3d\addons\verge3d\gltf2_generate.py”, line 2913, in generate_glTF
    generate_images(operator, context, export_settings, glTF)
    File “E:\verge3d\addons\verge3d\gltf2_generate.py”, line 2218, in generate_images
    shutil.copyfile(old_path, new_path)
    File “E:\Blender\blender-2.79.0-git.6f633de-windows64\2.79\python\lib\shutil.py”, line 104, in copyfile
    raise SameFileError(“{!r} and {!r} are the same file”.format(src, dst))
    shutil.SameFileError: ‘E:\\verge3d\\applications\\panerai-verge3d\\quadrante-diffuse-linee.png’ and ‘E:\\verge3d\\applications\\panerai-verge3d/quadrante-diffuse-linee.png’ are the same file
    location: <unknown location>:-1

    #1837

    Hi! Can you attach a minimal blend file where the problem is reproduced? Thanks!

    Chief 3D Verger | LinkedIn | Twitter

    #1846
    resonance
    Participant

    hi, here the zipped copy of folder in application;
    I started last year with blender, and never used internal obge, only cycles; I hope to learn to recreate beautiful material, or cycles node support in v3d..
    A couple of question:
    – which engine I have to use when creating mats?
    – I attached also a jpg of project I would like trasform for v3d; at the moment, the generated .bin file is about 20mb.. too heavy?

    #1853

    Hi, there’s two moments that you need to correct: first you need to chose proper UVMap in each Geometry nodes, second is all you texture are not power of two – if the engine see such texture it scale it to power of two image and if texture with alpha channel it will corrupt it- it’s know issue we will fix it’s in the future but now you need to scale your textures to power of two images (512×512 or 1024×1024 and so on). I’ve corrected your blend file a little so it works fine.

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead graphics specialist at Soft8Soft.

    #1893
    resonance
    Participant

    Hi Mikhail,
    I’m doing something wrong.. the error isn’t on mats/textures..
    In applications folder I duplicated the “cube” folder and renamed “cube-copy”, deleted cube.bin and cube.gltf, keeping the original textures, and original cube.blend renamed cube-copy.blend, when I try to export .gltf it always comes with the shutil error (see attachment).

    My workflow is:
    – open Blender
    – launch AppManager
    – choose cube-copy App and click Open Blender File
    – file->export->.gltf

    I’ve had port conflicts with xampp when skype is open, but now they’re both closed; I hope to solve technical problems and focus on creating content.. can you help me?

    #1896

    Hi,

    We were able to reproduce and fix this issue. Try replacing verge3d/addons/verge3d/gltf2_generate.py with the attached file (zip-archived) and see if it works for you.

    Attachments:
    You must be logged in to view attached files.

    Chief 3D Verger | LinkedIn | Twitter

    #8028
    jsteidele
    Participant

    Hey Yuri,

    I had the same problem as the OP, file in the ZIP didn’t fix it. Apparently it happened for me after I buffer pasted a object from another blend file. Also: suddenly transparency isn’t recognized anymore and the HDRI is missing as well… so frustrating

    #8029

    Hi,

    We have just released a new version – can you please update and see if the issues are gone?

    Chief 3D Verger | LinkedIn | Twitter

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.