Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > COG sample code problem

Reply
Thread Tools

COG sample code problem

 
 
Mark Hahn
Guest
Posts: n/a
 
      11-12-2003
I'm running COG 0.5 with python 2.3.2 windows build #49. When I ran the
sample code benchmark.py I got this error:

while saving <cog.registry.Registry object at 0x008EAB50>
Traceback (most recent call last):
File "C:\Python23\lib\site-packages\cog\db.py", line 368, in save_objects
self.io.save_obj(obj, oid, self)
File "C:\Python23\lib\site-packages\cog\io.py", line 252, in save_obj
pickler.dump(obj.__class__)
PicklingError: Can't pickle <class 'cog.registry.Registry'>: it's not the
same object as cog.registry.Registry

Has anyone seen this problem before? Can anyone give me a hand?

I'm trying out COG because pickle was not able to handle the task of
pickling my object graph. Now I'm getting a pickle error in COG. It's as
if pickle is out to get me.

I wonder if COG is going to have the same recursion limit pickle had since
it uses pickle.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about how to use cog as a preprocessor :-( Steven W. Orr Python 0 07-18-2007 10:02 PM
looking for asp.net sample with vb.net backend sample is there one? Jake ASP .Net 0 02-09-2006 10:44 PM
Sample Code That Instruments Java Byte Code? CHANGE username to westes Java 1 10-14-2003 06:10 AM
Code review of cross platform code sample Otto Wyss C++ 5 09-07-2003 02:06 PM



Advertisments