Something is going wrong now. It gives me this exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Xaralampos Apostolou\CityEngine\Python_Example\scripts\getListData.py", line 38, in <module>
buildingID = int (ce.getAttribute(shape, 'buildingID')) # get building ID
TypeError: int() argument must be a string or a number
at org.python.core.PyException.fillInStackTrace(PyException.java:70)
at java.lang.Throwable.<init>(Throwable.java:181)
at java.lang.Exception.<init>(Exception.java:29)
at java.lang.RuntimeException.<init>(RuntimeException.java:32)
at org.python.core.PyException.<init>(PyException.java:46)
at org.python.core.PyException.<init>(PyException.java:43)
at org.python.core.PyException.<init>(PyException.java:61)
at org.python.core.Py.TypeError(Py.java:195)
at org.python.core.PyInteger.asPyInteger(PyInteger.java:84)
at org.python.core.PyInteger.int_new(PyInteger.java:41)
at org.python.core.PyInteger$exposed___new__.new_impl(Unknown Source)
at org.python.core.PyType.invoke_new_(PyType.java:432)
at org.python.core.PyType.type___call__(PyType.java:1397)
at org.python.core.PyType.__call__(PyType.java:1388)
at org.python.core.PyObject.__call__(PyObject.java:397)
at org.python.core.PyObject.__call__(PyObject.java:401)
at org.python.pycode._pyx70.f$0(C:\Users\Xaralampos Apostolou\CityEngine\Python_Example\scripts\getListData.py:37)
at org.python.pycode._pyx70.call_function(C:\Users\Xaralampos Apostolou\CityEngine\Python_Example\scripts\getListData.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1204)
at org.python.core.Py.exec(Py.java:1248)
at org.python.pycode._pyx73.f$0(<string>:1)
at org.python.pycode._pyx73.call_function(<string>)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1204)
at org.python.core.Py.exec(Py.java:1248)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:172)
at org.python.pydev.jython.JythonPlugin.exec(Unknown Source)
at org.python.pydev.jython.JProcess.run(Unknown Source)