archiving in python
Hi,
Is archiving set up in python?
I added the following piece of code to SuperWalker.py at line 388:
self.t += 1
if self.t == 100:
self.controller.saveAsXml('testdemo.xml')
and I get errors that look like this:
...
Dearchiving of this object will fail.
Warning: object encoding and decoding not implemented for this language frontend
.
Dearchiving of this object will fail.
Could not convert breve internal type "13" to a Python type
Traceback (most recent call last):
File "lib/classes\breve\Shape.py", line 21, in archive
self.shapeData = self.getDataForShape()
File "lib/classes\breve\Shape.py", line 37, in getDataForShape
return breve.breveInternalFunctionFinder.dataForShape( self, self.shapePoint
er )
File "C:\breve_windows_2.7.2\breve_2.7.2\lib\classes\breve\__init__.py", line
139, in __call__
return breveInternal.callInternalFunction( self.function, args )
SystemError: error return without exception set
archive of "Cube" instance (0334D1A0) failed [0]: "archive" method did not execu
te successfully
Warning: object encoding and decoding not implemented for this language frontend
.
Dearchiving of this object will fail.
Warning: object encoding and decoding not implemented for this language frontend
.
Dearchiving of this object will fail.
Could not convert breve internal type "13" to a Python type
Traceback (most recent call last):
File "lib/classes\breve\Shape.py", line 21, in archive
self.shapeData = self.getDataForShape()
File "lib/classes\breve\Shape.py", line 37, in getDataForShape
return breve.breveInternalFunctionFinder.dataForShape( self, self.shapePoint
er )
File "C:\breve_windows_2.7.2\breve_2.7.2\lib\classes\breve\__init__.py", line
139, in __call__
return breveInternal.callInternalFunction( self.function, args )
SystemError: error return without exception set
archive of "Cube" instance (0208E9A0) failed [0]: "archive" method did not execu
te successfully
Could not convert breve internal type "13" to a Python type
...
Then when I try
C:\breve_windows_2.7.2\breve_2.7.2>bin\breve -a "testdemo.xml" demos\Physics-Exa
mples\SuperWalker.py
breve crashes.
I am on windows XP using 2.7.2
Any ideas on what I might be doing wrong?
Thanks,
Jonathan

Coming for 2.8
Sorry about this -- as the comments indicate, archiving isn't yet implemented for Python, but it should be for the next release.
- jon
Archiving needed..(urgent)
Hi,
I'm actually improving breveCreatures in python for a class project (have to be in python) and I really need the possibility of archiving creatures in python. Without it I can't show the results to the professor.
Do you already have it done? If I can help tell me..
Alternatively there are any other way of saving creatures in python?
Another information that you might be interested in is that I solved two bugs in python version of breveCreatures.
Best regards,
Rui 'In a hurry' Costa