Py3.5/windows regression: os.walk does not work anymore with bytes filenames #47018
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#47018
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Blender version: blender-2.76-ef49632-win64 (19.12.2015)
File: http:*graphics.cs.williams.edu/data/meshes/crytek-sponza.zip ( http:*graphics.cs.williams.edu/data/meshes.xml )
blender/blender#47056 was marked as duplicate of this issue
#47053 was marked as duplicate of this issue
Changed status to: 'Open'
Added subscriber: @1vanK
Added subscribers: @ideasman42, @mont29
@ideasman42, this sounds like a python3.5 regression, made a report on their tracker (http://bugs.python.org/issue25911).
Error when import from OBJto Py3.5/windows regression: os.walk does not work anymore with bytes filenamesAdded subscriber: @Sum.Al
Python3.3 deprecated byte-filepath support (only on Windows).
See: https://docs.python.org/3/whatsnew/3.3.html#deprecated-python-modules-functions-and-methods
Looks like we'll need to have code-paths for passing regular strings to file IO functions (and handle encoding issues).
Added subscriber: @PeterBoos
This issue was referenced by
7d832c33d5
Changed status from 'Open' to: 'Resolved'
Is this solved? Does the solution work for 2.76 as well?
Can you please elaborate a little more on what has to be done?
Thanks.
This bug doesn't impact 2.76x official release, since that used Python3.4x.
And you can test the fix in any recent daily build from http://builder.blender.org
The change uses
os.fsdecode
to convert bytes to strings for use as paths.