OBJ file isn't importing #60135

Closed
opened 2019-01-03 23:25:07 +01:00 by Jacob H · 13 comments

System Information
Operating system: Windows 10 1803
Graphics card: Vega 10 (2700U APU)

Blender Version
Broken: 2.79b, Date: 2018-03-22 14:10, Hash: f4dc9f9d68
Worked: Well, this is the only version I've used

Short description of error
So I was trying to import an obj file that I exported from Tinkercad, and it kept making Blender throw up an error. I tried searching it, and I found someone saying that it had to do with protected folders, so I moved it to my Desktop. Still no dice.

The error that came up for me was:

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_scene_obj\__init__.py", line 148, in execute
    return import_obj.load(context, **keywords)
  File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_scene_obj\import_obj.py", line 1261, in load
    unique_material_images, use_image_search, use_cycles, float_func)
  File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_scene_obj\import_obj.py", line 429, in create_materials
    illum = int(line_split[1])
ValueError: invalid literal for int() with base 10: b'0.0'

location: <unknown location>:-1

Car.blend

tinker.obj

obj.mtl

Exact steps for others to reproduce the error
You just need to go through the normal import steps: Files, Import, click Waveform (.obj), and then go the location of the downloaded obj file, and try to import it.

**System Information** Operating system: Windows 10 1803 Graphics card: Vega 10 (2700U APU) **Blender Version** Broken: 2.79b, Date: 2018-03-22 14:10, Hash: f4dc9f9d68b Worked: Well, this is the only version I've used **Short description of error** So I was trying to import an obj file that I exported from Tinkercad, and it kept making Blender throw up an error. I tried searching it, and I found someone saying that it had to do with protected folders, so I moved it to my Desktop. Still no dice. The error that came up for me was: ``` Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_scene_obj\__init__.py", line 148, in execute return import_obj.load(context, **keywords) File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_scene_obj\import_obj.py", line 1261, in load unique_material_images, use_image_search, use_cycles, float_func) File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_scene_obj\import_obj.py", line 429, in create_materials illum = int(line_split[1]) ValueError: invalid literal for int() with base 10: b'0.0' location: <unknown location>:-1 ``` [Car.blend](https://archive.blender.org/developer/F6164657/Car.blend) [tinker.obj](https://archive.blender.org/developer/F6164742/tinker.obj) [obj.mtl](https://archive.blender.org/developer/F6164740/obj.mtl) **Exact steps for others to reproduce the error** You just need to go through the normal import steps: Files, Import, click Waveform (.obj), and then go the location of the downloaded obj file, and try to import it.
Author

Added subscriber: @BitUniverse

Added subscriber: @BitUniverse
Author

Sorry, don't use that .obj file, use this one. I made a change to that one that had the line: b 0 0 0 because I thought that it was asking for base coordinates in the error message

tinker.obj

Sorry, don't use that .obj file, use this one. I made a change to that one that had the line: b 0 0 0 because I thought that it was asking for base coordinates in the error message [tinker.obj](https://archive.blender.org/developer/F6165904/tinker.obj)

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Campbell Barton self-assigned this 2019-01-04 01:20:43 +01:00

This is fixed in master & blender2.7 branches.

This is fixed in master & blender2.7 branches.

Added subscriber: @mansiag

Added subscriber: @mansiag

@ideasman42 I am still having the same issue. I get the following error: ValueError: invalid literal for int() with base 10: b'1.0' . I have checked with blender versions 2.76, 2.79 and the latest version 2.8 too. iter29000_inst3_pred.obj

iter29000_inst3_pred.mtl

@ideasman42 I am still having the same issue. I get the following error: ValueError: invalid literal for int() with base 10: b'1.0' . I have checked with blender versions 2.76, 2.79 and the latest version 2.8 too. [iter29000_inst3_pred.obj](https://archive.blender.org/developer/F7670682/iter29000_inst3_pred.obj) [iter29000_inst3_pred.mtl](https://archive.blender.org/developer/F7670683/iter29000_inst3_pred.mtl)

The error with these files is in vertex indices, I don't think it's reasonable to support vertex indices written as floats, it would be better to report a bug to tinkercad.

The error with these files is in vertex indices, I don't think it's reasonable to support vertex indices written as floats, it would be better to report a bug to tinkercad.

Okay Thanks. understood the issue.

Okay Thanks. understood the issue.

Added subscriber: @stinkhawk

Added subscriber: @stinkhawk

I am having the same issue in 2.8... how did you fix it?

I am having the same issue in 2.8... how did you fix it?

Added subscriber: @rjg

Added subscriber: @rjg

@stinkhawk Please create a new bug report (Help > Report a Bug in Blender), fill in the requested information in the submission template. Also add the particular error message you're getting and a minimal example .obj that allows us to reproduce the issue.

@stinkhawk Please create a new bug report (*Help > Report a Bug* in Blender), fill in the requested information in the submission template. Also add the particular error message you're getting and a minimal example .obj that allows us to reproduce the issue.
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
5 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#60135
No description provided.