OBJ export fail on latest Blender 2.80 builds #64792

Closed
opened 2019-05-18 12:10:37 +02:00 by Radu · 15 comments

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: 03672e7783
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: :-1


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

**System Information** Operating system: Windows-10-10.0.17134 64 Bits Graphics card: Quadro [P2000](https://archive.blender.org/developer/P2000.txt)/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: `03672e7783` 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.
Author

Added subscriber: @RaduCoc

Added subscriber: @RaduCoc

Added subscriber: @happyrobot

Added subscriber: @happyrobot

Hi,

Having a similar error with KitOps, very latest 2.8 builds

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

location: :-1"

Just FYI

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

Added subscriber: @MaciejJutrzenka

Added subscriber: @MaciejJutrzenka

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)

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) ```

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brecht Van Lommel self-assigned this 2019-05-18 13:34:31 +02:00

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

@RaduCoc, 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
@happyrobot that add-on is not maintained by the Blender project, the author will need to update it. @RaduCoc, 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

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

Added subscriber: @JCPalmer2

Added subscriber: @JCPalmer2

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.

I work on the exporter for [BabylonJS](https://github.com/BabylonJS/Exporters/tree/master/Blender). 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?

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?
The API was changed: https://devtalk.blender.org/t/20-may-2019/7242
Author

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

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

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

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'
Author

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

Works well now, needed to delete all .config directories and made a fresh install of Blender.
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#64792
No description provided.