Crystal Space
Welcome, Guest. Please login or register.
October 21, 2014, 10:30:05 am

Login with username, password and session length
Search:     Advanced search
9010 Posts in 2044 Topics by 8773 Members
Latest Member: Betuls
* Home Help Search Login Register
+  Crystal Space
|-+  Associate Projects
| |-+  CrystalBlend Discussion
| | |-+  blender2crystal export on mac
« previous next »
Pages: [1] Print
Author Topic: blender2crystal export on mac  (Read 8531 times)
Penwriter
Newbie
*
Posts: 9


View Profile Email
« on: October 27, 2008, 09:15:02 pm »

Hi, I'm sure this is answered somewhere else, but I can't seem to find it. I'm running on an intel iMac running osx 10.5. I've downloaded and installed CS1.2.1. My Blender is at 2.48a with python 2.5 and I installed the latest blender2crystal python scripts. Just as a proof of concept, I am trying to export the default (cube, light, camera) blender setup. When I try to run the export script, here is what shows up on the console:
Code:
Compiled with Python version 2.5.2.
 Checking for installed Python... got it!
 W:----------------------------------------------------
 W:ATTENTION: 4Suite not Found!! Using xml.dom.minidom.
 W:ATTENTION: Perfomance will be degraded, please install python-4suite.
 W:ATTENTION: You can download it from http://www.4suite.org/
 W:ATTENTION: or install for your favourite linux distribution.
 W:----------------------------------------------------
 Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "/Library/Blender/scripts/crystalspace_export.py", line 46, in <module>
     import b2cs
   File "/Library/Blender/scripts/bpymodules/b2cs/__init__.py", line 49, in <module>
     import defaults
   File "/Library/Blender/scripts/bpymodules/b2cs/defaults.py", line 5, in <module>
     import b2cs.metadata
   File "/Library/Blender/scripts/bpymodules/b2cs/metadata.py", line 475, in <module>
     b2cs.prop.wid_keys = UiProperties()
   File "/Library/Blender/scripts/bpymodules/b2cs/metadata.py", line 444, in __init__
     self.Refresh()
   File "/Library/Blender/scripts/bpymodules/b2cs/metadata.py", line 447, in Refresh
     self.loadFromMetadata()
   File "/Library/Blender/scripts/bpymodules/b2cs/metadata.py", line 450, in loadFromMetadata
     for wid in world_metadata.getNodes():
   File "/Library/Blender/scripts/bpymodules/b2cs/metadata.py", line 234, in getNodes
     sect = self.getSection()
   File "/Library/Blender/scripts/bpymodules/b2cs/metadata.py", line 228, in getSection
     root = self.getRoot()
   File "/Library/Blender/scripts/bpymodules/b2cs/metadata.py", line 206, in getRoot
     propval = xpath(self.internalroot,"//prop[@name='metadata_file']/@value")
   File "/Library/Blender/scripts/bpymodules/b2cs/xmlutils.py", line 56, in xml_xpath
     
 nodes = node.xpath(xpath)
 AttributeError: Element instance has no attribute 'xpath'

What am I doing wrong, please?
Logged
Vincent
Full Member
***
Posts: 191


View Profile WWW
« Reply #1 on: November 03, 2008, 10:22:56 pm »

I think you miss the Python XML support, generally solved by installing PyXML or 4Suite.
No idea which is the recommended/easier to install on Mac, but any of the two should do.
If one doesn't work, try the other.
Logged
Penwriter
Newbie
*
Posts: 9


View Profile Email
« Reply #2 on: November 03, 2008, 11:57:53 pm »

Thanks for your response, Vincent. I'll look for PyXML and see what that does. I do have 4Suite installed, but for some reason, it isn't being recognized. I haven't been able to figure out why that is.
Logged
Vincent
Full Member
***
Posts: 191


View Profile WWW
« Reply #3 on: November 04, 2008, 08:51:06 pm »

If 4Suite is installed in a custom location, you'd need to set PYTHONPATH (at least on Linux it's named like that) environment variable to point to that location.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.149 seconds with 17 queries.