Hello,

I want to generate python code for the COLLADA XML format (COLLADA 1.5.0 
Schema<http://www.khronos.org/files/collada_schema_1_5>).
I've got a fresh python 2.7 installation on mac, and lxml 
(xml-2.3beta1-py2.7-macosx-10.6-intel.egg ) installed.
However, I get the following error on running generateDS.py:

generateDS.py -o collada.py -s colladasubs.py collada_schema_1_5.xsd
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/generateDS.py", 
line 5, in <module>
    pkg_resources.run_script('generateDS==2.3b', 'generateDS.py')
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",
 line 489, in run_script
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py",
 line 1214, in run_script
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/generateDS-2.3b-py2.7.egg/EGG-INFO/scripts/generateDS.py",
 line 4667, in <module>

  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/generateDS-2.3b-py2.7.egg/EGG-INFO/scripts/generateDS.py",
 line 4661, in main

  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/generateDS-2.3b-py2.7.egg/EGG-INFO/scripts/generateDS.py",
 line 4392, in parseAndGenerate

  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/generateDS-2.3b-py2.7.egg/EGG-INFO/scripts/process_includes.py",
 line 38, in process_include_files

  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/generateDS-2.3b-py2.7.egg/EGG-INFO/scripts/process_includes.py",
 line 165, in prep_schema_doc

  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/generateDS-2.3b-py2.7.egg/EGG-INFO/scripts/process_includes.py",
 line 127, in collect_inserts

  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/generateDS-2.3b-py2.7.egg/EGG-INFO/scripts/process_includes.py",
 line 143, in collect_inserts_aux

  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/generateDS-2.3b-py2.7.egg/EGG-INFO/scripts/process_includes.py",
 line 127, in collect_inserts

  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/generateDS-2.3b-py2.7.egg/EGG-INFO/scripts/process_includes.py",
 line 143, in collect_inserts_aux

  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/generateDS-2.3b-py2.7.egg/EGG-INFO/scripts/process_includes.py",
 line 127, in collect_inserts

  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/generateDS-2.3b-py2.7.egg/EGG-INFO/scripts/process_includes.py",
 line 132, in collect_inserts_aux

  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/generateDS-2.3b-py2.7.egg/EGG-INFO/scripts/process_includes.py",
 line 77, in resolve_ref

  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", 
line 83, in split
    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'

Any idea what goes wrong?

Thank you a lot,

Stefan
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to