Plugin v1.09 AttributeError error

Blender (Export script developed by yoyoz; Integrated Plugin developed by JimStar)
danilius
Licensed Customer
Posts: 47
Joined: Thu Dec 23, 2010 9:13 pm

Hi,

Yoyoz - belated happy birthday!

Got the following error and am stumped. Um, help?

========================
location:/opt/blender25_r_r35537/2.56/scripts/modules/bpy/ops.py:179
Octane plug-in v1.09 on 2.56.3.35537 : Rendering still image
Octane plug-in v1.09 on 2.56.3.35537 : Output ocs: "/home/dani/tests/test.ocs"
Octane plug-in v1.09 on 2.56.3.35537 : Output obj: "/home/dani/tests/test.obj"
Octane plug-in v1.09 on 2.56.3.35537 : Output mtl: "/home/dani/tests/test.mtl"
Octane plug-in v1.09 on 2.56.3.35537 : Unit Factor (rescaling): 1.0000
Octane plug-in v1.09 on 2.56.3.35537 : Exporting frame #1
Octane plug-in v1.09 on 2.56.3.35537 : Begin OBJ/MTL export
Octane plug-in v1.09 on 2.56.3.35537 : OBJ file: "/home/dani/tests/test.obj.temp"
Traceback (most recent call last):
File "/opt/blender25_r_r35537/2.56/scripts/addons/octanerender/engine.py", line 97, in render
mtl_list = write_obj(objTemp, mtlFile, obj_list, scene, unitFactor)
File "/opt/blender25_r_r35537/2.56/scripts/addons/octanerender/export.py", line 386, in write_obj
me = ob.create_mesh(scene, EXPORT_APPLY_MODIFIERS, 'RENDER')
AttributeError: 'Object' object has no attribute 'create_mesh'

location:/opt/blender25_r_r35537/2.56/scripts/modules/bpy/ops.py:179

location:/opt/blender25_r_r35537/2.56/scripts/modules/bpy/ops.py:179
Ubuntu 11.04, Q6600 2.4GHz 4-core, 4GB RAM, 8800GT & GTX 460 2GB, Blender 2.59, Octane 2.51
User avatar
yoyoz
Licensed Customer
Posts: 451
Joined: Sat Dec 25, 2010 9:59 am
Location: Belgium

Hi Dani,

this is due to an API change that happened yesterday and affects only builds available since this morning. I'll publish a packaged update tomorrow but you can do the following in the meantime:
- edit export.py
- go to line 386
- replace 'create_mesh' with 'to_mesh'
Be carefull not to alter indentation when doing the modification.

Cheers,
Lionel

PS: thanks!
Desktop: Ubuntu 13.04 x64 - i7-3770K @ 3.5GHz - 32GB DDR3 - GTX670 2048MB
Laptop: Linux Mint 11 x64 - i7-2860QM @ 2.5GHz - 16GB DDR3 - Quadro 3000M 2GB
Software: NVidia 319.12 - Cuda 4.2.9 - Blender 2.66a
danilius
Licensed Customer
Posts: 47
Joined: Thu Dec 23, 2010 9:13 pm

Yoyoz, do you ever sleep?

I have no idea how you manage to keep pace with the changes in the API. Your dedication, however, is deeply appreciated; a sentiment which I'm sure every Blender head Octane user would echo.

Awesome stuff. Thanks a million, and more power to your elbow!
Ubuntu 11.04, Q6600 2.4GHz 4-core, 4GB RAM, 8800GT & GTX 460 2GB, Blender 2.59, Octane 2.51
User avatar
steveps3
Licensed Customer
Posts: 1118
Joined: Sat Aug 21, 2010 4:07 pm
Location: England

I did try to see if I could find what was wrong. I couldn't see anything obvious.

Roll on 2.57. At least the API might stabilise then.
(HW) Intel i7 2600k, 16GB DDR3, MSI 560GTX ti (2GB) x 3
(SW) Octane (1.50) Blender (2.70) (exporter 2.02)
(OS) Windows 7(64)
danilius
Licensed Customer
Posts: 47
Joined: Thu Dec 23, 2010 9:13 pm

Hi,

I duly modified the file as instructed, and everything ran hunky dory until the console spat this out:

Code: Select all

Octane plug-in v1.09 on 2.56.3.35537 : Creating dupli_list on <dining table>
Traceback (most recent call last):
  File "/opt/blender25_r_r35537/2.56/scripts/addons/octanerender/engine.py", line 97, in render
    mtl_list = write_obj(objTemp, mtlFile, obj_list, scene, unitFactor)
  File "/opt/blender25_r_r35537/2.56/scripts/addons/octanerender/export.py", line 372, in write_obj
    ob_main.create_dupli_list(scene)
AttributeError: 'Object' object has no attribute 'create_dupli_list'

location:/opt/blender25_r_r35537/2.56/scripts/modules/bpy/ops.py:179

location:/opt/blender25_r_r35537/2.56/scripts/modules/bpy/ops.py:179
Cheers.
Ubuntu 11.04, Q6600 2.4GHz 4-core, 4GB RAM, 8800GT & GTX 460 2GB, Blender 2.59, Octane 2.51
User avatar
yoyoz
Licensed Customer
Posts: 451
Joined: Sat Dec 25, 2010 9:59 am
Location: Belgium

This is same story again... (they're really turning me crazy...)

It should be OK if you do the following:
- go to line 372 of export.py and replace 'create_dupli_list' with 'dupli_list_create'
- in same file, line 702, replace 'free_dupli_list' with 'dupli_list_clear'

Please let me know if it works so I can package the update.
Thanks,
Lionel
Desktop: Ubuntu 13.04 x64 - i7-3770K @ 3.5GHz - 32GB DDR3 - GTX670 2048MB
Laptop: Linux Mint 11 x64 - i7-2860QM @ 2.5GHz - 16GB DDR3 - Quadro 3000M 2GB
Software: NVidia 319.12 - Cuda 4.2.9 - Blender 2.66a
mib2berlin
Licensed Customer
Posts: 1194
Joined: Wed Jan 27, 2010 7:18 pm
Location: Germany

Hi, test your changes and work with Rev: 35575.

THX, mib
Opensuse Leap 42.3/64 i5-3570K 16 GB
GTX 760 4 GB Driver: 430.31
Octane 3.08 Blender Octane
danilius
Licensed Customer
Posts: 47
Joined: Thu Dec 23, 2010 9:13 pm

I am really sorry for the delay - my only excuse being that I am crazy busy at the moment, which always helps.

Just to confirm, your most recent edit works a charm.

How you stay sane with the constant changing and chopping of the API shall presumably remain a mystery.

Many thanks, and cheers!
Ubuntu 11.04, Q6600 2.4GHz 4-core, 4GB RAM, 8800GT & GTX 460 2GB, Blender 2.59, Octane 2.51
User avatar
yoyoz
Licensed Customer
Posts: 451
Joined: Sat Dec 25, 2010 9:59 am
Location: Belgium

Who said I was still sane? :-)
Desktop: Ubuntu 13.04 x64 - i7-3770K @ 3.5GHz - 32GB DDR3 - GTX670 2048MB
Laptop: Linux Mint 11 x64 - i7-2860QM @ 2.5GHz - 16GB DDR3 - Quadro 3000M 2GB
Software: NVidia 319.12 - Cuda 4.2.9 - Blender 2.66a
danilius
Licensed Customer
Posts: 47
Joined: Thu Dec 23, 2010 9:13 pm

I offer my humblest apologies for making such an unwarranted assumption, and will endeavour to refrain from repeating the offence.

Do we, by some splendid coincidence, share hatters?
Ubuntu 11.04, Q6600 2.4GHz 4-core, 4GB RAM, 8800GT & GTX 460 2GB, Blender 2.59, Octane 2.51
Post Reply

Return to “Blender”