Error for import FBX ASCII from Unity 3D #102810

Closed
opened 2022-11-27 15:53:37 +01:00 by Cătălin George Feștilă · 14 comments

System Information
Operating system: Windows 10
Graphics card: NVIDIA GeForce GT 730

Blender Version
version: 3.5.0 Alpha, branch: master, commit date: 2022-11-24 17:05, hash: 412642865d1c, type: release
build date: 2022-11-27, 02:49:41
platform: 'Windows-10-10.0.19045-SP0'

Short description of error
I export with Unity package FBX exporter a fbx ascii file with animation
and I got this error :

Python: Traceback (most recent call last):
  File "E:\blender-3.5.0-alpha+master.412642865d1c-windows.amd64-release\3.5\scripts\addons\io_scene_fbx\__init__.py", line 207, in execute
    if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}:
  File "E:\blender-3.5.0-alpha+master.412642865d1c-windows.amd64-release\3.5\scripts\addons\io_scene_fbx\import_fbx.py", line 2404, in load
    operator.report({'ERROR'}, tip_("ASCII FBX files are not supported %r") % filepath) NameError: name 'tip_' is not defined

This is FBX file exported from Unity 3D :
001IdleFBX.fbx
Exact steps for others to reproduce the error

add a simple animation from mixamo website into the Unity 3D editor
use Package Manager to install FBX Exporter
drag the animation into Hierarchy in Unity 3D Editor, right-click to Export to FBX...
image.png
Select ASCII
image.png
Use Blender 3D to import it
image.png

**System Information** Operating system: Windows 10 Graphics card: NVIDIA GeForce GT 730 **Blender Version** version: 3.5.0 Alpha, branch: master, commit date: 2022-11-24 17:05, hash: 412642865d1c, type: release build date: 2022-11-27, 02:49:41 platform: 'Windows-10-10.0.19045-SP0' **Short description of error** I export with Unity package FBX exporter a fbx ascii file with animation and I got this error : ``` Python: Traceback (most recent call last): File "E:\blender-3.5.0-alpha+master.412642865d1c-windows.amd64-release\3.5\scripts\addons\io_scene_fbx\__init__.py", line 207, in execute if import_fbx.load(self, context, filepath=path, **keywords) == {'FINISHED'}: File "E:\blender-3.5.0-alpha+master.412642865d1c-windows.amd64-release\3.5\scripts\addons\io_scene_fbx\import_fbx.py", line 2404, in load operator.report({'ERROR'}, tip_("ASCII FBX files are not supported %r") % filepath) NameError: name 'tip_' is not defined ``` This is FBX file exported from Unity 3D : [001IdleFBX.fbx](https://archive.blender.org/developer/F13973276/001IdleFBX.fbx) **Exact steps for others to reproduce the error** add a simple animation from mixamo website into the Unity 3D editor use Package Manager to install FBX Exporter drag the animation into Hierarchy in Unity 3D Editor, right-click to Export to FBX... ![image.png](https://archive.blender.org/developer/F13973266/image.png) Select ASCII ![image.png](https://archive.blender.org/developer/F13973269/image.png) Use Blender 3D to import it ![image.png](https://archive.blender.org/developer/F13973271/image.png)

Added subscriber: @mythcat

Added subscriber: @mythcat
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'
Member

Hi, thanks for the report. AFAICS, fbx import in blender is not supporting files in ASCII format

    if is_ascii:
        operator.report({'ERROR'}, tip_("ASCII FBX files are not supported %r") % filepath)
        return {'CANCELLED'}

Similar report has been reported previously and got closed because this is not a bug. see:


The issue reported here is a request for modified/improved behavior and not a bug in current behavior. Closing as this bug tracker is only for bugs and errors.
For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests
For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug

Hi, thanks for the report. AFAICS, fbx import in blender is not supporting files in ASCII format ``` if is_ascii: operator.report({'ERROR'}, tip_("ASCII FBX files are not supported %r") % filepath) return {'CANCELLED'} ``` - - - Similar report has been reported previously and got closed because this is not a bug. see: - #79960 (FBX are not supported !) - blender/blender#96171 (blender does not import .fbx file) - - - The issue reported here is a request for modified/improved behavior and not a bug in current behavior. Closing as this bug tracker is only for bugs and errors. For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug
Member

Changed status from 'Archived' to: 'Needs Triage'

Changed status from 'Archived' to: 'Needs Triage'

Added subscriber: @scurest

Added subscriber: @scurest

@PratikPB2123 It's still a bug that it fails to report the error. According to the traceback the operator.report isn't being run because tip_ isn't defined.

  File "E:\blender-3.5.0-alpha+master.412642865d1c-windows.amd64-release\3.5\scripts\addons\io_scene_fbx\import_fbx.py", line 2404, in load
    operator.report({'ERROR'}, tip_("ASCII FBX files are not supported %r") % filepath) NameError: name 'tip_' is not defined
@PratikPB2123 It's still a bug that it fails to report the error. According to the traceback the operator.report isn't being run because tip_ isn't defined. ``` File "E:\blender-3.5.0-alpha+master.412642865d1c-windows.amd64-release\3.5\scripts\addons\io_scene_fbx\import_fbx.py", line 2404, in load operator.report({'ERROR'}, tip_("ASCII FBX files are not supported %r") % filepath) NameError: name 'tip_' is not defined ```
Member

@scurest hi, thanks for the information.
I've reverted the status already after LazyDodo said the same thing in #blender-triagers

@scurest hi, thanks for the information. I've reverted the status already after LazyDodo said the same thing in `#blender-triagers`
Member

Added subscriber: @mont29

Added subscriber: @mont29
Member

@mont29 , can you check?

@mont29 , can you check?
Member

Added subscribers: @pioverfour, @EAW

Added subscribers: @pioverfour, @EAW
Member

@pioverfour it seems you forgot to add
from bpy.app.translations import pgettext_tip as tip_ to import_fbx.py in D16373

@pioverfour it seems you forgot to add `from bpy.app.translations import pgettext_tip as tip_` to `import_fbx.py` in [D16373](https://archive.blender.org/developer/D16373)

This issue was referenced by b83a135675

This issue was referenced by b83a135675f2e9b4b9cd7923d86c3afb0f1fce1b
Member

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Damien Picard self-assigned this 2022-11-29 22:28:57 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
6 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-addons#102810
No description provided.