External data unpack error. Same file works with current dir method, and not with original location method. #54552

Closed
opened 2018-04-09 11:06:25 +02:00 by Reiner Prokein · 6 comments

System Information
Operating system and graphics card

Windows 7 64 bit, GTX 1060

Blender Version
Broken: (example: 2.69.7 4b206af, see splash screen)
Worked: (optional)

Short description of error

Same file. A hdri. With export method current directory the export works fine. With original location the export fails.

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

Open attached Blend file. Unpack textures with method original location. You will get an error. Unpack textures with method current directory extracts the same file just fine, in a folder called textures.

What is completely confusing here is how the unpack works. Current directory creates a sub folder called textures. And does not extract into the current directory. And nothing can convince Blender then to use textures that are placed besides the blend file. Paths are now nailed to the textures folder. At least i haven't found a way. Make textures relative doesn't do anything.

Original location extracts into the current directory, besides the blend file. And not into the original location. The original location would be the absolute path in the error message. The drive exists, and the label promises me that it gets created when necessary. But the other two textures gets extracted into the current location, most probably since they were relative before packing. Well, here the original location may fit.

What i miss here is a relative extraction method that does not use a textures folder. And i can still not say what method is now the correct one. I am simply confused how it is expected to work. Shouldn't all packed data be relative to the archive?

Trouble file: extractproblem.zip

error.jpg

**System Information** Operating system and graphics card Windows 7 64 bit, GTX 1060 **Blender Version** Broken: (example: 2.69.7 4b206af, see splash screen) Worked: (optional) **Short description of error** Same file. A hdri. With export method current directory the export works fine. With original location the export fails. **Exact steps for others to reproduce the error** Based on a (as simple as possible) attached .blend file with minimum amount of steps Open attached Blend file. Unpack textures with method original location. You will get an error. Unpack textures with method current directory extracts the same file just fine, in a folder called textures. What is completely confusing here is how the unpack works. Current directory creates a sub folder called textures. And does not extract into the current directory. And nothing can convince Blender then to use textures that are placed besides the blend file. Paths are now nailed to the textures folder. At least i haven't found a way. Make textures relative doesn't do anything. Original location extracts into the current directory, besides the blend file. And not into the original location. The original location would be the absolute path in the error message. The drive exists, and the label promises me that it gets created when necessary. But the other two textures gets extracted into the current location, most probably since they were relative before packing. Well, here the original location may fit. What i miss here is a relative extraction method that does not use a textures folder. And i can still not say what method is now the correct one. I am simply confused how it is expected to work. Shouldn't all packed data be relative to the archive? Trouble file: [extractproblem.zip](https://archive.blender.org/developer/F2640841/extractproblem.zip) ![error.jpg](https://archive.blender.org/developer/F2640848/error.jpg)
Author

Added subscriber: @tiles

Added subscriber: @tiles
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Unpack textures with method original location. You will get an error.

In case of the HDRI, this is the main error we have to investigate here

Unpack textures with method current directory extracts the same file just fine, in a folder called textures.

true, intended behaviour

What is completely confusing here is how the unpack works. Current directory creates a sub folder called textures. And does not extract into the current directory. And nothing can convince Blender then to use textures that are placed besides the blend file. Paths are now nailed to the textures folder. At least i haven't found a way. Make textures relative doesn't do anything.

The fact that blender groups unpacked data in 'proper' subfolders is documented in the manual .
If you have the files sitting directly in the folder of you current .blend and don't want to use the ones in the 'textures' subfolder, you can just remove the 'textures' subfolder (making the paths invalid) and use the File > External Data > Find Missing Files operator [just point it to the directory of your current .blend and it will fix all the paths to the files found in there]

Original location extracts into the current directory, besides the blend file. And not into the original location. The original location would be the absolute path in the error message. The drive exists, and the label promises me that it gets created when necessary. But the other two textures gets extracted into the current location, most probably since they were relative before packing. Well, here the original location may fit.

Well yeah, for the relative textures it just works fine as you observed correctly, we still have to find out why blender cant create the hdri in the absolute file path. You were saying the drive exists, can you actually create that folder / save a file from within blender there?

What i miss here is a relative extraction method that does not use a textures folder. And i can still not say what method is now the correct one. I am simply confused how it is expected to work. Shouldn't all packed data be relative to the archive?

Afaik the "Current Directory" method that doesnt use the subfolders doesnt exist ["Original Location" it works though -- well only if blender can actually write that file...]

Can you/blender actually write in the path of the HDRI? Could it be a (write)permission thing?
Marking as incomplete until we know why blender cant write that HDRI in the original location. If there are still questions remaining we can continue after that question is out of the way...

> Unpack textures with method original location. You will get an error. In case of the HDRI, this is the main error we have to investigate here > Unpack textures with method current directory extracts the same file just fine, in a folder called textures. true, intended behaviour > What is completely confusing here is how the unpack works. Current directory creates a sub folder called textures. And does not extract into the current directory. And nothing can convince Blender then to use textures that are placed besides the blend file. Paths are now nailed to the textures folder. At least i haven't found a way. Make textures relative doesn't do anything. The fact that blender groups unpacked data in 'proper' subfolders is documented [in the manual ](https://docs.blender.org/manual/en/dev/data_system/introduction.html?highlight=pack#unpack-data). If you have the files sitting directly in the folder of you current .blend and don't want to use the ones in the 'textures' subfolder, you can just remove the 'textures' subfolder (making the paths invalid) and use the `File > External Data > Find Missing Files` operator [just point it to the directory of your current .blend and it will fix all the paths to the files found in there] > Original location extracts into the current directory, besides the blend file. And not into the original location. The original location would be the absolute path in the error message. The drive exists, and the label promises me that it gets created when necessary. But the other two textures gets extracted into the current location, most probably since they were relative before packing. Well, here the original location may fit. Well yeah, for the relative textures it just works fine as you observed correctly, we still have to find out why blender cant create the hdri in the absolute file path. You were saying the drive exists, can you actually create that folder / save a file from within blender there? > What i miss here is a relative extraction method that does not use a textures folder. And i can still not say what method is now the correct one. I am simply confused how it is expected to work. Shouldn't all packed data be relative to the archive? Afaik the "Current Directory" method that doesnt use the subfolders doesnt exist ["Original Location" it works though -- well only if blender can actually write that file...] Can you/blender actually write in the path of the HDRI? Could it be a (write)permission thing? Marking as incomplete until we know why blender cant write that HDRI in the original location. If there are still questions remaining we can continue after that question is out of the way...
Author

Thanks for explanation. Seems that i have to live with the current behaviour.

And now i see the problem. D: is my dvd drive. And not accessible, since i have no dvd in the drive. The file comes from an external source. And i guess he had this hdri folder in this path at D. Maybe at a dvd ...

Thanks for explanation. Seems that i have to live with the current behaviour. And now i see the problem. D: is my dvd drive. And not accessible, since i have no dvd in the drive. The file comes from an external source. And i guess he had this hdri folder in this path at D. Maybe at a dvd ...
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Philipp Oeser self-assigned this 2018-04-10 09:18:01 +02:00
Member

OK, I think we can close this then

OK, I think we can close this then
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#54552
No description provided.