Page MenuHome

Blender 2.77a fails to import .obj
Closed, ArchivedPublic

Description

System Information
Win 7 Quadro K620

Blender Version
Broken: 2.77a
Worked: 2.76b

Short description of error
Trying to import an .obj raises error re 'context' in line 147
which on investigation is: return import_obj.load(context, **keywords)

This has changed from previous release which was line 149

return import_obj.load(self, context, **keywords)

i.e. 'self,' has gone missing. If this is restored the import works again.

Event Timeline

Neil Larsen (Big_Fan) raised the priority of this task from to 90.
Neil Larsen (Big_Fan) updated the task description. (Show Details)
Neil Larsen (Big_Fan) edited a custom field.

sorry should have said this error is in the __init__.py

Bastien Montagne (mont29) changed the task status from Unknown Status to Archived.May 22 2016, 6:48 PM
Bastien Montagne (mont29) claimed this task.

thanks for the report, but there is no bug here, you simply have somehow a messed script (probably two different versions of the same OBJ import addon, one with blender installation itself and one within your 'userdata' .blender directory or something similar). Current code in import_obj.py, load() func is def load(context, filepath, *, etc. - no more need for self (aka operator) parameter.

My apologies. This is true I forgot I do have a custom .obj importer. I need to update this obviously. I see now in the release notes there is a small note of 'Added limited support for MTL texture mapping options' which I missed seeing however it is not really clear to an artist user from this documentation that recent work done would make older versions incompatible. In this case I mistakenly report a bug in good faith and again I apologise for that but perhaps there can be addition to release notes about the possibility of incompatibility of scripts rather than just 'added support'.
Anyway I am sorry to waste your time you do many great things for Blender we are very grateful for ;)