Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot export in Ubuntu 9.04 in Blender #5

Open
GoogleCodeExporter opened this issue Sep 6, 2015 · 5 comments
Open

Cannot export in Ubuntu 9.04 in Blender #5

GoogleCodeExporter opened this issue Sep 6, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant