Page MenuHome

Error import obj file
Closed, DuplicatePublic

Description

System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce GTX 960/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 418.81

Blender Version
Broken: version: 2.80 (sub 72), branch: blender2.7, commit date: 2019-05-29 18:17, hash: rBfee600f47980
Worked: (optional)

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

File "D:\Soft\blender_2.8\30_05_2019_blender-2.80\2.80\scripts\addons\io_scene_obj\__init__.py", line 145, in execute
  return import_obj.load(context, **keywords)
File "D:\Soft\blender_2.8\30_05_2019_blender-2.80\2.80\scripts\addons\io_scene_obj\import_obj.py", line 1241, in load
  dataname,
File "D:\Soft\blender_2.8\30_05_2019_blender-2.80\2.80\scripts\addons\io_scene_obj\import_obj.py", line 689, in create_mesh
  faces_ma_index = tuple(material_mapping[context_material] for (_, _, _, context_material, _, _, _) in faces)
File "D:\Soft\blender_2.8\30_05_2019_blender-2.80\2.80\scripts\addons\io_scene_obj\import_obj.py", line 689, in <genexpr>
  faces_ma_index = tuple(material_mapping[context_material] for (_, _, _, context_material, _, _, _) in faces)

KeyError: None

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

Details

Type
Bug

Event Timeline

Bastien Montagne (mont29) triaged this task as Needs Information from User priority.

Please follow our submission template and guidelines, also read these tips about bug reports, and make a complete, valid bug report, with required info, precise description of the issue (only ONE issue per report!), precise steps to reproduce it, small and simple .blend and/or other files to do so if needed, etc.