Projects on mapped network drives fail #60131

Closed
opened 2019-01-03 19:37:16 +01:00 by Sybren A. Stüvel · 5 comments

This line fails when packing a blend file with the project on a mapped network drive. See this stack trace from the Blender Cloud add-on on Windows.

The root cause is that pathlib.Path.resolve() sees mapped network drives such as Q: as a symlink and resolves it to the actual location on the network, such as \\rackstation\bestanden.

[This line](https:*developer.blender.org/source/blender-asset-tracer/browse/master/blender_asset_tracer/pack/__init__.py$220) fails when packing a blend file with the project on a mapped network drive. See [this stack trace from the Blender Cloud add-on](https:*hashb.in/#KIDwxgpgDgLglgewHYAIDuALOAbCKBOArkknEgOYowCGAzgNYBcKA5AIqMA6nAQrkgBMI+ACoRaMbgCUEYehBgBbakgBi2aoohIwCMRICMAOgBmGrToRGARvwEsUAhOJRIEMFBOr4PaODAxWbm58ajkveGRua3EaQW1uFgAoUEhYRFQTfARFFDoATx0MbLdCWio6eiSRUMhrMPoUAApFBAkCCEgkDzBqbGwUDQkASkYklBRVHDwAIgBhLgBVWmFaTjEysnpOAEEoKAARahpOGU0ycl47YUmEYgFjjKvtIXxOACYjAHYATk5aMD4OCwNbUAROJBrWwvYQAfTA2DuAk4BR0sMRCCgRig+RmABpBmQ8O9fgSyChYRJMbDUWBYTQGOMJp4INgTEZafTKkZ8OJCNgYE1hhMAMQoERYcq8gC0oTgK3KKnyKAg4GgkVQCBMVAweAZ9CMTKmuBQ8y4AAVsuRQrljeJnvF8Ld7o8onwYW9Pr9ODiAlFsHBrCjaIUwIhOCZCDBCLzaNjcQSA0hiT8AMxk1Cx/kwJkTOUrFlsoyw1VpDVG6amhacS0Ia2aSbTNbux3OwSupAO14fb5/X0Yf2B4Oh8P6uM4/GE5Mod4AFgMGYpEmguY6tGzKAAvChdNkjAFsmgmqXhhWTWbOMtVusIJskNs9odjtRTghzhQuzdVHd2xrP57e3+QFgRgUFwWQKFrnweFEUIZEzE0bRdE4WFYTIfxUPjSckzwVMAAYADZF05VVOijCBVzuGABDgfACSokxpgJRR5VoC5KTufBIHKbdq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SfvUM+TsFp66jnoykZF9l7X3Xpvbe+Rd77wgIfJA+Rj60IR3CJHV8ho3waDRh+0y9XTdfouWz38rp/wAWJKAwCq6gLruAqBMDcBwIwAgthHCEACKLOghAWCwA4JWxWr2iq3ODbK8NnWlWfTHFoYGNtjCuWZjY+w5BCAuGiN4agleIuTBCKedtI3xwJFSNPOszZyitpqI4NwA5sRpCyHkHos5hi9CxBMa+ixLw7k2PcE87wvgnHvJCA0b5/i/lxD8YkJIQA===) on Windows. The root cause is that `pathlib.Path.resolve()` sees mapped network drives such as `Q:` as a symlink and resolves it to the actual location on the network, such as `\\rackstation\bestanden`.
Author
Member

Added subscribers: @dr.sybren, @joel_nl

Added subscribers: @dr.sybren, @joel_nl

Added subscriber: @Alientrick

Added subscriber: @Alientrick
Author
Member

This is related to D6676.

This is related to [D6676](https://archive.blender.org/developer/D6676).
Author
Member

This should be fixed in e4bf2e8e35.

This should be fixed in e4bf2e8e35.
Author
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sybren A. Stüvel self-assigned this 2020-03-17 17:19:27 +01:00
Sign in to join this conversation.
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-asset-tracer#60131
No description provided.