io_scene_x3d - WRL import fails when Python 3.11 is used #106210 #104510
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#104510
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?
System Information
Operating system: Linux-6.1.0-6-amd64-x86_64-with-glibc2.36 64 Bits
Graphics card: AMD Radeon RX 580 Series (polaris10, LLVM 15.0.6, DRM 3.49, 6.1.0-6-amd64) AMD 4.6 (Core Profile) Mesa 22.3.6
Blender Version
Broken: version: 3.4.1 - Debian package installed via
apt
on testing distribution ("bookworm")Worked: Official release of Blender 3.4.1 is unaffected.
Short description of error
The
io_scene_x3d
plugin uses a flag which was removed in Python 3.11 when importing WRL files.The soon-to-be-released Debian Bookworm ships with Python 3.11, and when I attempt to import any WRL file, it appears to do nothing. An error is however printed on the command-line,
'ValueError: invalid mode: 'rU'
- full output is attached.Removing the character
U
from the line identified in the stacktrace restored the ability to complete a WRL import for me - diff also attached.Posting this on the assumption that support for newer Python versions is desirable in add-ons - I'm aware that 3.10 is the shipped/supported version of Python for Blender 3.4.
Exact steps for others to reproduce the error
Install blender via the
apt
package manager on Debian bookworm, or switch to a Python 3.11 interpreter in some easier way if possible.Launch from command-line.
From default cube, File -> Import -> X3D Extensible 3D (.x3d/.wrl).
Select the
test.wrl
file attached to this issue. I don't believe this issue is file-specific, but this is a model of an electronic component from the KiCad project, and I've attached a picture FreeCAD opening the file just to indicate that it is not empty/corrupt.Observe nothing happens, and error is printed on command-line.
Apply fix, restart blender, repeat import.
Observe that the model now imports.
Looks like something for @ideasman42 to take a look at, as he keeps new versions of python compatible with Blender.