Page MenuHome

OBJ export fail on latest Blender 2.80 builds
Closed, InvalidPublic

Description

System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: Quadro P2000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.17

Blender Version
Broken: version: 2.80 (sub 69), branch: blender2.7, commit date: 2019-05-17 23:36, hash: rB03672e77836d
Worked: (optional)

Short description of error
Blender 2.80 refuses to export in OBJ file format with the following error message:

Traceback (most recent call last):

File "C:\Users\Alex\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\io_scene_obj\__init__.py", line 310, in execute
  return export_obj.save(context, **keywords)
File "C:\Users\Alex\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\io_scene_obj\export_obj.py", line 797, in save
  EXPORT_PATH_MODE=path_mode,
File "C:\Users\Alex\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\io_scene_obj\export_obj.py", line 689, in _write
  depsgraph = context.depsgraph

AttributeError: 'Context' object has no attribute 'depsgraph'

location: <unknown location>:-1

Exact steps for others to reproduce the error
Just press the File/Export/Wavefront(obj) and I get the above error message.

Event Timeline

Hi,

Having a similar error with KitOps, very latest 2.8 builds

"AttributeError: 'Context' object has no attribute 'depsgraph'

location: <unknown location>:-1"

Just FYI

can't reproduce on

*System Information**
Operating system: Linux-4.15.0-50-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce 610M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.116


**Blender Version**
Broken: version: 2.80 (sub 69), branch: blender2.7, commit date: 2019-05-17 21:54, hash: `rB3b8ae2c08f5c`
Worked: (optional)
Brecht Van Lommel (brecht) changed the task status from Unknown Status to Unknown Status.May 18 2019, 1:34 PM
Brecht Van Lommel (brecht) claimed this task.

@HappyRobot (happyrobot) that add-on is not maintained by the Blender project, the author will need to update it.

@Radu (zohozer), somehow you have installed the OBJ add-on, rather than using the one that comes with Blender. So you're running an outdated version. It's not clear how you go into that state, but you should remove this folder:

C:\Users\Alex\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\io_scene_obj

Thanks Brecht, yes indeed it is 3rd party, will check it out with dev

I work on the exporter for BabylonJS. It is (or was fully updated for 2.80). I refreshed my Blender yesterday ( windows 64 bit), and I get the same issue. Do not think this should be closed unless the api has changed for getting a depsgraph someplace other than the context.

After running GLTF successfully & looking at their source, they were not passing a desgraph in to_mesh(). Checked API, there are now no args to to_mesh().

Took out mine & it now runs, but there was also an arg to get modifiers applied. Is this happening?

Downloaded the latest 2.80 Beta Windows 64 bit build from today, May 22, 01:38:00 - 0f98c05c8b86

The problem still persist. Seems that has something to do with depsgraph:

depsgraph = context.depsgraph
AttributeError: 'Context' object has no attribute 'depsgraph'

Works well now, needed to delete all .config directories and made a fresh install of Blender.