file path for brush import has double \ #100269

Closed
opened 2022-08-07 18:47:12 +02:00 by J · 4 comments

System Information
Operating system:
Graphics card:

Blender Version
Broken: 3.2

Short description of error
Python: Traceback (most recent call last):

File "D:\Blender\3.2\scripts\addons\io_import_BrushSet.py", line 105, in execute
  LoadBrushSet(self.properties.filepath, self.properties.filename)
File "D:\Blender\3.2\scripts\addons\io_import_BrushSet.py", line 54, in LoadBrushSet
  for file in os.listdir(filepath):

NotADirectoryError: [WinError 267] The directory name is invalid: 'F:\brushPNGs\spatter_brushes_1.png'

The import_BrushSet.py function is doubling the \

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).

Using the brush set import add-on, select any brush alpha to import. this error shows up and the brush is not imported.

**System Information** Operating system: Graphics card: **Blender Version** Broken: 3.2 **Short description of error** Python: Traceback (most recent call last): ``` File "D:\Blender\3.2\scripts\addons\io_import_BrushSet.py", line 105, in execute LoadBrushSet(self.properties.filepath, self.properties.filename) File "D:\Blender\3.2\scripts\addons\io_import_BrushSet.py", line 54, in LoadBrushSet for file in os.listdir(filepath): ``` NotADirectoryError: [WinError 267] The directory name is invalid: 'F:\\brushPNGs\\spatter_brushes_1.png' The import_BrushSet.py function is doubling the \ **Exact steps for others to reproduce the error** Based on the default startup or an attached .blend file (as simple as possible). Using the brush set import add-on, select any brush alpha to import. this error shows up and the brush is not imported.
Author

Added subscriber: @hamiltonjr2

Added subscriber: @hamiltonjr2

Closed as duplicate of blender/blender-addons#86080

Closed as duplicate of blender/blender-addons#86080

Added subscriber: @rjg

Added subscriber: @rjg

The double backslash is just for escaping the backslash character. The actual issue is that the add-on expects a directory to be selected, not a file.

I have merged this ticket with the previous reports. A patch exists but is still awaiting review.

The double backslash is just for escaping the backslash character. The actual issue is that the add-on expects a directory to be selected, not a file. I have merged this ticket with the previous reports. A patch exists but is still awaiting review.
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#100269
No description provided.