DXF Import Error - TypeError '<' not supported between instances of 'tuple' and 'NoneType' #84936
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#84936
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: Mac OS 10.15.7
Blender Version
Broken: 2.83.1
Addon Information
Name: Import AutoCAD DXF Format (.dxf) (0, 9, 6)
Author: Lukas Treyer, Manfred Moitzi (support + dxfgrabber library), Vladimir Elistratov, Bastien Montagne, Remigiusz Fiedler (AKA migius)
Short description of error
Importing a certain DXF file fails with the error:
Exact steps for others to reproduce the error
test_blender_import.dxf
I managed to fix this error in /Applications/Blender.app/Contents/Resources/2.83/scripts/addons/io_import_dxf/dxfimport/groupsort.py
by changing this line 86 (https://developer.blender.org/diffusion/BA/browse/master/io_import_dxf/dxfimport/groupsort.py$86)
from:
to:
Added subscriber: @salim-1
Added subscriber: @mano-wii
This is so since the original code (
82a00ee2
)The proposed fix seems harmless since the function is used only as a key for sort.
But why should the
None
extrusion
be(0.0, 0.0, 1.0)
and not()
?Is the result of the sort really as expected?
We may have to contact the original authors of the addon :\
I didn't notice issues with the result, then again, I might miss some minor details. However
()
would make more sense. It also works for me.I wasn't sure where else I can report this. Is there a separate repository from the original authors?
Added subscriber: @cnd
The problem is that we cannot apply this correction blindly.
Either the original author needs to take a look or these questions need to be studied and answered:
None
extrusion
be(0.0, 0.0, 1.0)
?Indeed, I agree. My suggestion is just to avoid the complete failure during import. I can't confirm that the expected result is 100% correct. However, I didn't notice any obvious issue myself.
Perhaps @cnd, the author of (
82a00ee2
) can take a look at this issue?Since none of the original authors gave their opinion, and the proposed correction appears to be harmless, I will step forward and commit the solution.
I will also add a comment explaining that it is a workaround.
It is better than leaving the import failing.
Thanks, I think that it's better to go with your suggestion of using
()
, so the code would become:where the last 2 lines are the addition. I tested it and got the same results.
This issue was referenced by
efbcbb2665
Changed status from 'Needs Triage' to: 'Confirmed'
Changed status from 'Confirmed' to: 'Resolved'