brlrt / blender-webgl-exporter

Automatically exported from code.google.com/p/blender-webgl-exporter
0 stars 0 forks source link

Cannot export in Ubuntu 9.04 in Blender #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Place python script file in blender's scripts folder
2. Open Blender
3. Select to export as webGL native anywhere
4. Click export file
5. Error message that a python script error will appear

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by perry.br...@gmail.com on 9 Jun 2010 at 3:45

GoogleCodeExporter commented 8 years ago
Please ttell us:

What version of Blender are you using?
What error message appears?

Thanks :-)

Original comment by johnvill...@gmail.com on 25 Apr 2011 at 7:59

GoogleCodeExporter commented 8 years ago
barney@anubis-ubuntu ~/Build/blender-2.57-linux-glibc27-i686
$ ./blender
AL lib: pulseaudio.c:331: PulseAudio returned minreq > tlength/2; expect break 
up
found bundled python: 
/home/barney/Build/blender-2.57-linux-glibc27-i686/2.57/python
Traceback (most recent call last):
  File "/home/barney/Build/blender-2.57-linux-glibc27-i686/2.57/scripts/modules/addon_utils.py", line 207, in enable
    mod = __import__(module_name)
  File "/home/barney/Build/blender-2.57-linux-glibc27-i686/2.57/scripts/addons/io_export_webgl.py", line 47, in <module>
    from bpy_extras.io_utils import ExportHelper
ImportError: No module named bpy_extras.io_utils
Traceback (most recent call last):
  File "/home/barney/Build/blender-2.57-linux-glibc27-i686/2.57/scripts/addons/io_export_webgl.py", line 409, in execute
    return savejson(self, context, **self.as_keywords(ignore=("check_existing", "filter_glob")))
  File "/home/barney/Build/blender-2.57-linux-glibc27-i686/2.57/scripts/addons/io_export_webgl.py", line 367, in savejson
    file.write(export_scene_json(sce, export_binary).encode('utf-8'))
  File "/home/barney/Build/blender-2.57-linux-glibc27-i686/2.57/scripts/addons/io_export_webgl.py", line 349, in export_scene_json
    outp['objs'] = [object_to_dict(scene, obj, binary) for obj in scene.objects if (obj.type == 'MESH') and (obj.select)]
  File "/home/barney/Build/blender-2.57-linux-glibc27-i686/2.57/scripts/addons/io_export_webgl.py", line 349, in <listcomp>
    outp['objs'] = [object_to_dict(scene, obj, binary) for obj in scene.objects if (obj.type == 'MESH') and (obj.select)]
  File "/home/barney/Build/blender-2.57-linux-glibc27-i686/2.57/scripts/addons/io_export_webgl.py", line 284, in object_to_dict
    reduce(lambda x,y: max(x,y), [grp.group for v in me.vertices for grp in v.groups])
TypeError: reduce() of empty sequence with no initial value

location:<unknown location>:-1

location:<unknown location>:-1
Saved session recovery to /tmp/quit.blend

Blender quit

Original comment by djbar...@djbarney.org on 29 Jul 2011 at 6:40

GoogleCodeExporter commented 8 years ago
I also had to copy the bpy_io lib across from 2.58a

Original comment by djbar...@djbarney.org on 29 Jul 2011 at 6:41

GoogleCodeExporter commented 8 years ago
Perhaps this is a linux issue only?
Here (Ubuntu 10.04 64bit, Blender 2.58a) some python imports live in a 
different folder.

e.g. io_utils lived in "modules", now it lives in "modules/bpy_extras"
therefore import lines must be adjusted from "io_utils" to 
"bpy_extras.io_utils".
(same with other imports?!)

-> Don't know if this will persist.

Original comment by radiok...@gmx.de on 10 Aug 2011 at 10:32

GoogleCodeExporter commented 8 years ago
Maybe it's a linux only thing... i'm actively maintaining another exporter 
which is only based around JSON (and my Binary JSON format) at 
http://code.google.com/p/blender-machete/ maybe that could help... give it a 
shot and tell me how it works

Original comment by johnvill...@gmail.com on 30 Aug 2011 at 12:18